Files
lune/desktop/build.sh
Adnan Zahir 6cb85004fb Milestone 7: the app normal people install (macOS)
A Tauri menu-bar app runs the same sync engine as `lunesync run`. It
connects from the website with no code typed (lune://join and
lune://pair links), shows status in the menu bar, and lets a person
resolve held secrets, held big changes and kept-both notes side by
side. Uninstall shares and hands over first, then removes only what
Lune created.

Releases are signed on the hub that holds the key (`lunehub release
keygen/publish`); other hubs `release import` them. Apps verify the
signature and the signed version. Clients older than the previous
release are asked to update and keep saving locally.

A device can now be on several hubs at once (own and workplace), each
with its own key; the CLI takes --team when it matters. The supervisor
and status summary moved into core, shared by the CLI and the app.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-29 11:47:35 +07:00

19 lines
929 B
Bash
Executable File

#!/bin/sh
# Builds Lune for the Mac: desktop/build.sh <version> [extra tauri --config ...]
# Makes the .dmg people download and the .app.tar.gz the updater installs; then publish both on the hub that holds
# the signing key: lunehub release publish <version> <app.tar.gz> <dmg>
set -eu
cd "$(dirname "$0")"
v=${1:?usage: desktop/build.sh <version>}
shift
if grep -q '"pubkey": ""' tauri.conf.json; then
echo "note: no update key in tauri.conf.json yet — this build won't accept updates (run lunehub release keygen)" >&2
fi
npx tauri build --bundles app,dmg --config "{\"version\":\"$v\"}" "$@"
b=../target/release/bundle
# macOS tar would add ._ resource-fork entries that the updater can't unpack.
COPYFILE_DISABLE=1 tar --no-mac-metadata -czf "$b/Lune_${v}_aarch64.app.tar.gz" -C "$b/macos" Lune.app
echo "Built:"
echo " $(cd "$b" && pwd)/dmg/Lune_${v}_aarch64.dmg"
echo " $(cd "$b" && pwd)/Lune_${v}_aarch64.app.tar.gz"