feat(packaging): a per-user Windows installer, a universal macOS app and dmg, desktop entries with the icon (P15 C1)
Windows: a hand-written NSIS script (per user, no administrator prompt, installs under the profile's Programs folder; one program file; a Start Menu entry named Wanderbooks with the icon; an uninstaller listed in Settings > Apps that removes only what the installer put in its own folder and never names the data folder). The installer asks the person to quit the app fully before it replaces or removes the program. An optional Authenticode signing step runs only when its secrets exist. macOS: the .app is assembled by a script (Info.plist with the bundle identifier, version, name, Documents-folder purpose string; the one program at Contents/MacOS/wanderbooks; the licences), signed with the hardened runtime and an empty entitlements file that says why, put in a dmg with an Applications shortcut, notarized and stapled when the owner's Apple identity is given and skipped with a notice when not. The program is one universal binary (lipo of the two release builds). Linux: both desktop entries name the window's app id and the icon; the rpm now installs the icon; the deb, the pacman tarball and the rpm all carry LICENSE-MIT and LICENSE-APACHE beside the notices. One version: deploy/packaging/version.sh reads crates/ledger-cli's Cargo.toml; every script takes it from there. Tests read the scripts and build a bundle with a stand-in program. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
1 parent
90f663ed54
commit
8e3db472fa
19 files changed
+1110
-86
No files matched your search
@@ -591,10 +591,23 @@ package-linux version="" formats="deb,appimage,pacman":
|
||||
cargo build --release -p ledger-cli
|
||||
deploy/packaging/build-linux.sh {{version}} {{formats}}
|
||||
|
||||
# Build the unsigned macOS .dmg (on a Mac; CI does it on a tag or dispatch)
|
||||
# The macOS app and its universal .dmg (on a Mac; CI does it on a tag or
|
||||
# dispatch). Signs and notarizes only with WB_SIGN_IDENTITY and WB_NOTARY_*
|
||||
# in the environment (deploy/packaging/macos/build-macos.sh says which).
|
||||
# Build the universal macOS .dmg
|
||||
package-macos version="":
|
||||
rustup target add aarch64-apple-darwin x86_64-apple-darwin
|
||||
cargo build --release -p ledger-cli --target aarch64-apple-darwin
|
||||
cargo build --release -p ledger-cli --target x86_64-apple-darwin
|
||||
deploy/packaging/macos/build-macos.sh {{version}}
|
||||
|
||||
# The per-user Windows installer (in Git Bash on Windows, with NSIS: choco
|
||||
# install nsis; CI does it on a tag or dispatch). Unsigned unless the
|
||||
# release workflow signs it.
|
||||
# Build the Windows installer
|
||||
package-windows version="":
|
||||
cargo build --release -p ledger-cli
|
||||
deploy/packaging/build-macos.sh {{version}}
|
||||
deploy/packaging/windows/build-windows.sh {{version}}
|
||||
|
||||
# A release folder on this machine signed with a throwaway key; then
|
||||
# `wanderbooks update --feed file://DIR/manifest.json --trusted-key DIR/release.pub`
|
||||
|
||||
Reference in new issue
Block a user