-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathmkapp.sh
More file actions
33 lines (31 loc) · 1.01 KB
/
Copy pathmkapp.sh
File metadata and controls
33 lines (31 loc) · 1.01 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
#!/bin/bash
rm -Rf ./xmolview.app
mkdir ./xmolview.app
mkdir ./xmolview.app/Contents
mkdir ./xmolview.app/Contents/Resources
mkdir ./xmolview.app/Contents/MacOS
echo APPLnone > ./xmolview.app/Contents/PkgInfo
iconutil -c icns ./res/xmolview.iconset/
cp ./src/xmolview ./xmolview.app/Contents/MacOS
cp ./res/xmolview.icns ./xmolview.app/Contents/Resources/
chmod 755 ./xmolview.app/Contents/MacOS/xmolview
cat << EOF > ./xmolview.app/Contents/info.plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist SYSTEM "file://localhost/System/Library/DTDs/PropertyList.dtd">
<plist version="0.9">
<dict>
<key>CFBundleName</key>
<string>xmolview</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleVersion</key>
<string>59</string>
<key>CFBundleShortVersionString</key>
<string>1.1</string>
<key>CFBundleIconFile</key>
<string>xmolview.icns</string>
<key>CFBundleSignature</key>
<string>none</string>
</dict>
</plist>
EOF