-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·38 lines (33 loc) · 1012 Bytes
/
Copy pathinstall.sh
File metadata and controls
executable file
·38 lines (33 loc) · 1012 Bytes
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
38
#!/bin/bash
set -e
cargo build --release -p growterm-app
APP="/Applications/growTerm.app"
mkdir -p "$APP/Contents/MacOS" "$APP/Contents/Resources"
cp target/release/growterm "$APP/Contents/MacOS/growterm"
cp assets/icon.icns "$APP/Contents/Resources/AppIcon.icns"
cat > "$APP/Contents/Info.plist" << 'EOF'
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleExecutable</key>
<string>growterm</string>
<key>CFBundleIdentifier</key>
<string>com.juniqlim.growterm</string>
<key>CFBundleName</key>
<string>growTerm</string>
<key>CFBundleVersion</key>
<string>0.1.0</string>
<key>CFBundleShortVersionString</key>
<string>0.1.0</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleIconFile</key>
<string>AppIcon</string>
<key>NSHighResolutionCapable</key>
<true/>
</dict>
</plist>
EOF
codesign --force --sign - "$APP"
echo "Installed to $APP"