-
-
Notifications
You must be signed in to change notification settings - Fork 53
Expand file tree
/
Copy pathpackage.sh
More file actions
executable file
·19 lines (14 loc) · 641 Bytes
/
Copy pathpackage.sh
File metadata and controls
executable file
·19 lines (14 loc) · 641 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/bash
# Ensure the build directory exists
[ ! -d "./build" ] && mkdir "./build"
# Ensure we have a TmpDisk.app in the folder
if [ ! -d "./TmpDisk.app" ]; then
echo "Error: TmpDisk.app not found in the current directory"
exit 1
fi
# Package the TmpDisk.app into the dmg
npx appdmg@latest ./appdmg.json ./build/TmpDisk.dmg
# Find the sparkle-project folder
sparkle=$(find ~/Library/Developer/Xcode/DerivedData -maxdepth 1 -type d -print | grep -m1 'TmpDisk-')
# Generate appcast (uses EdDSA key from Keychain; import via keys/sparkle-keys.sh)
"$sparkle"/SourcePackages/artifacts/sparkle/Sparkle/bin/generate_appcast ./build