1848d0c796
Infrastructure (P0): deployed nostr-rs-relay (wss://nrelay.us-ea.st) and the goblin-nip05d NIP-05 service (goblin.st) on us-ea.st with TLS + DNS. Brand & theme (P1): Goblin name/icon/data-dir (.goblin); three-theme token system (light/dark/yellow) in gui/theme.rs with colors.rs remapped as a shim; Geist + Geist Mono fonts; AppConfig theme/density/last_wallet_id. Nostr subsystem (P2-P3): src/nostr/ with NIP-06 identity (seed-derived, NIP-49 encrypted), per-wallet rkv archive, guarded ingest policy (never auto-pays Invoice1; binds replies to the stored counterparty npub), NIP-17 send/receive pipeline, NIP-05 client. Relay traffic routed over the embedded arti Tor client via a custom WebSocketTransport. Wired into Wallet lifecycle and the task handler. 26 unit tests pass. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
49 lines
1.1 KiB
Bash
Executable File
49 lines
1.1 KiB
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
|
|
case $1 in
|
|
x86_64|arm|universal)
|
|
;;
|
|
*)
|
|
echo "Usage: release_macos.sh [platform] [version]\n - platform: 'x86_64', 'arm', 'universal'" >&2
|
|
exit 1
|
|
esac
|
|
|
|
if [[ "$OSTYPE" != "darwin"* ]]; then
|
|
if [ -z ${SDKROOT+x} ]; then
|
|
echo "MacOS SDKROOT is not set"
|
|
exit 1
|
|
else
|
|
echo "Use MacOS SDK: ${SDKROOT}"
|
|
fi
|
|
fi
|
|
|
|
# Setup build directory
|
|
BASEDIR=$(cd $(dirname $0) && pwd)
|
|
cd ${BASEDIR}
|
|
cd ..
|
|
|
|
# Setup platform
|
|
[[ $1 == "x86_64" ]] && arch+=(x86_64-apple-darwin)
|
|
[[ $1 == "arm" ]] && arch+=(aarch64-apple-darwin)
|
|
|
|
rustup target add x86_64-apple-darwin
|
|
rustup target add aarch64-apple-darwin
|
|
[[ $1 == "universal" ]]; arch+=(universal2-apple-darwin)
|
|
cargo install cargo-zigbuild
|
|
cargo zigbuild --release --target ${arch}
|
|
|
|
rm -f .intentionally-empty-file.o
|
|
|
|
yes | cp -rf target/${arch}/release/goblin macos/Goblin.app/Contents/MacOS
|
|
|
|
# Sign .app resources on change:
|
|
#rcodesign generate-self-signed-certificate
|
|
#rcodesign sign --pem-file cert.pem macos/Goblin.app
|
|
|
|
# Create release package
|
|
FILE_NAME=goblin-v$2-macos-$1.zip
|
|
cd macos
|
|
zip -r ${FILE_NAME} Goblin.app
|
|
mv ${FILE_NAME} ../target/${arch}/release
|