-
Notifications
You must be signed in to change notification settings - Fork 30
Expand file tree
/
Copy pathrelease_mac.sh
More file actions
executable file
·25 lines (21 loc) · 960 Bytes
/
release_mac.sh
File metadata and controls
executable file
·25 lines (21 loc) · 960 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
#!/bin/sh
rm -r ../pathomx/dist/
#python setup.installers.py bdist_mac --qt-menu-nib=/usr/local/Cellar/qt5/5.2.1/plugins/platforms/
python setup.mac.py py2app
# https://bitbucket.org/ronaldoussoren/py2app/issue/26/bundled-python-executable-not-working
cp /Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python ./dist/Pathomx.app/Contents/MacOS/python
install_name_tool -change /Library/Frameworks/Python.framework/Versions/2.7/Python @executable_path/../Frameworks/Python.framework/Versions/2.7/Python dist/Pathomx.app/Contents/MacOS/python
#https://github.com/andreyvit/yoursway-create-dmg
create-dmg \
--volname "Pathomx" \
--volicon "./pathomx/static/icon.icns" \
--window-pos 200 120 \
--window-size 800 400 \
--icon-size 100 \
--icon Pathomx.app 200 190 \
--hide-extension Pathomx.app \
--app-drop-link 600 185 \
Pathomx.dmg \
./dist/
mv Pathomx.dmg ./dist/Pathomx.dmg
#--background "installer_background.png" \