Skip to content

Commit

Permalink
added tools necessary to bundle a mac app
Browse files Browse the repository at this point in the history
  • Loading branch information
Wang Yu committed Feb 20, 2016
1 parent 8dd8a86 commit 94fe8f0
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 0 deletions.
Binary file added mDrawGui/mac_dist/avrdude
Binary file not shown.
5 changes: 5 additions & 0 deletions mDrawGui/mac_dist/bundle.sh
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 added mDrawGui/mac_dist/mDraw.icns
Binary file not shown.
Binary file added mDrawGui/mac_dist/potrace
Binary file not shown.
24 changes: 24 additions & 0 deletions mDrawGui/mac_dist/setup.py
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'],
)

0 comments on commit 94fe8f0

Please sign in to comment.