-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.sh
More file actions
executable file
·31 lines (26 loc) · 811 Bytes
/
build.sh
File metadata and controls
executable file
·31 lines (26 loc) · 811 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
#!/bin/sh
# Build, sign and package ChargeMon as a DMG file for release
# this requires create-dmg: `brew install create-dmg` to install
# --background "installer_background.png" \
# build with py2app
echo "Running py2app"
test -d dist && rm -rf dist/
test -d build && rm -rf build/
python setup.py py2app
# sign with adhoc certificate
echo "Signing with codesign"
codesign --force --deep -s - dist/ChargeMon.app
# create installer DMG
echo "Creating DMG"
test -f ChargeMon-Installer.dmg && rm ChargeMon-Installer.dmg
create-dmg \
--volname "ChargeMon Installer" \
--volicon "icon.icns" \
--window-pos 200 120 \
--window-size 800 400 \
--icon-size 100 \
--icon "ChargeMon.app" 200 190 \
--hide-extension "ChargeMon.app" \
--app-drop-link 600 185 \
"ChargeMon-Installer.dmg" \
"dist/"