-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage-macos.sh
More file actions
executable file
·37 lines (29 loc) · 1.18 KB
/
package-macos.sh
File metadata and controls
executable file
·37 lines (29 loc) · 1.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/bin/bash
# Package SecureVault Browser for macOS
echo "=================================================="
echo "SecureVault Browser - macOS Packaging"
echo "=================================================="
if [ ! -d "src/out/SecureVault/Chromium.app" ]; then
echo "Error: Build output not found. Run build-macos.sh first"
exit 1
fi
cd src/out/SecureVault
echo "Renaming app bundle..."
cp -R Chromium.app SecureVault.app
# Update Info.plist
/usr/libexec/PlistBuddy -c "Set :CFBundleName SecureVault Browser" SecureVault.app/Contents/Info.plist
/usr/libexec/PlistBuddy -c "Set :CFBundleDisplayName SecureVault Browser" SecureVault.app/Contents/Info.plist
/usr/libexec/PlistBuddy -c "Set :CFBundleIdentifier com.securevault.browser" SecureVault.app/Contents/Info.plist
echo "Creating DMG..."
cd ../../../
# Create DMG
hdiutil create -volname "SecureVault Browser" \
-srcfolder src/out/SecureVault/SecureVault.app \
-ov -format UDZO \
securevault-browser-macos-x64.dmg
echo ""
echo "=================================================="
echo "macOS package created!"
echo "=================================================="
echo "Output: securevault-browser-macos-x64.dmg"
echo ""