Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
-Adding a shell script to build a distributable app for OSX. -Updating py2app script to use icon, set title etc. -Removing build generated files from repo and ignoring in .gitignore. -Couple of minor issues on OSX. --multiprocessing.Queue.qwait isn't implemented for some unix platforms, so using multiprocessing.Queue.empty instead. --use correct path on OSX to load images.
- Loading branch information
Showing
14 changed files
with
84 additions
and
628 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -1 +1,2 @@ | ||
*.pyc | ||
*.pyc | ||
osx_build/ |
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,10 @@ | ||
#!/usr/bin/env bash | ||
|
||
cd plumbing | ||
python py2app_setup.py py2app | ||
|
||
# workaround for now to strip out 64 bit libs as wxPython only supports 32 bit | ||
cd ../../osx_dist | ||
mv PythonTurtle.app PythonTurtle64.app | ||
ditto --rsrc --arch i386 PythonTurtle64.app PythonTurtle.app | ||
rm -rf PythonTurtle64.app |
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,22 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>CFBundleDisplayName</key> | ||
<string>PythonTurtle</string> | ||
<key>CFBundleExecutable</key> | ||
<string>PythonTurtle</string> | ||
<key>CFBundleIdentifier</key> | ||
<string>org.pythonmac.unspecified.pythonturtle</string> | ||
<key>CFBundleName</key> | ||
<string>PythonTurtle</string> | ||
<key>CFBundleShortVersionString</key> | ||
<string>0.1</string> | ||
<key>CFBundleVersion</key> | ||
<string>0.1</string> | ||
<key>LSArchitecturePriority</key> | ||
<array> | ||
<string>i386</string> | ||
</array> | ||
</dict> | ||
</plist> |
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
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,15 @@ | ||
import os | ||
|
||
def smart_join(*args): | ||
temp = os.path.join(*args) | ||
optimized = os.path.realpath(temp) | ||
return str(optimized) # to convert from unicode to ascii | ||
|
||
def data_files(resources_dir): | ||
data_files=[] | ||
for file in os.listdir(resources_dir): | ||
f1 = smart_join(resources_dir, file) | ||
if os.path.isfile(f1): # skip directories | ||
f2 = 'resources', [f1] | ||
data_files.append(f2) | ||
return data_files |
This file was deleted.
Oops, something went wrong.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
137 changes: 0 additions & 137 deletions
137
src/dist/pythonturtle.app/Contents/Resources/__boot__.py
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.