-
Notifications
You must be signed in to change notification settings - Fork 149
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added tools necessary to bundle a mac app
- Loading branch information
Wang Yu
committed
Feb 20, 2016
1 parent
8dd8a86
commit 94fe8f0
Showing
5 changed files
with
29 additions
and
0 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/bin/sh | ||
python3 setup.py py2app | ||
cp -r /Users/wangyu/Qt5.3.2/5.3/clang_64/plugins dist/mDraw.app//Contents/PlugIns | ||
/Users/wangyu/Qt5.3.2/5.3/clang_64/bin/macdeployqt dist/mDraw.app | ||
|
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
""" | ||
This is a setup.py script generated by py2applet | ||
Usage: | ||
python setup.py py2app | ||
""" | ||
|
||
from setuptools import setup | ||
|
||
APP = ['../mDraw.py'] | ||
DATA_FILES = ['./avrdude','../avrdude.conf','./potrace','../XY.hex','../mScara.hex','../mSpider.hex','../mEggBot.hex','../mCar.hex'] | ||
OPTIONS = { | ||
'argv_emulation': True, | ||
'iconfile':'mDraw.icns', | ||
"includes" : ["sip"], | ||
"packages" : ["PyQt5", "importlib"] | ||
} | ||
|
||
setup( | ||
app=APP, | ||
data_files=DATA_FILES, | ||
options={'py2app': OPTIONS}, | ||
setup_requires=['py2app'], | ||
) |