Skip to content

Commit

Permalink
Updated to work with latest PyInstaller
Browse files Browse the repository at this point in the history
  • Loading branch information
matvey83 committed Jan 3, 2013
1 parent 50322c4 commit 9eb067d
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 3 deletions.
11 changes: 8 additions & 3 deletions README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,20 @@ NOTE: Only step 4 will need to be performed for subsequent builds.

How to compile on Mac OS X:

1) Install PyInstaller
1) pip install pyinstaller

2) CD into the "softchord" directory.

3) Run "python mac_combile.py"

3) Copy the newly installed "pyinstaller" directory into the softchord
directory

4) python pyinstaller/pyinstaller.py src/softchord.py --onefile --windowed --noconfirm --name "softChord X.Y.Z"

5) cp src/Info.plist dist/softChord\ 0.9.1.app/Contents/Info.plist

6) Copy the database into the dir dist/ directory


See:
http://tech.xster.net/tips/deploy-pyqt-applications-on-mac-os-x-with-pyinstaller/

45 changes: 45 additions & 0 deletions src/Info.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDocumentTypes</key>
<array>
<dict>
<key>CFBundleTypeExtensions</key>
<array>
<string>songbook</string>
</array>
<key>CFBundleTypeIconFile</key>
<string>application.icns</string>
<key>CFBundleTypeMIMETypes</key>
<array>
<string>application/x-softChordSongbook</string>
</array>
<key>CFBundleTypeName</key>
<string>softChord song book</string>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>LSIsAppleDefaultForType</key>
<true/>
</dict>
</array>


<key>CFBundleShortVersionString</key>
<string>0.0.0</string>
<key>CFBundleExecutable</key>
<string>MacOS/softChord 0.9.1</string>
<key>CFBundleName</key>
<string>softChord 0.9.1</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleDisplayName</key>
<string>softChord 0.9.1</string>
<key>CFBundleIconFile</key>
<string>icon-windowed.icns</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>LSBackgroundOnly</key>
<string>1</string>
</dict>
</plist>

0 comments on commit 9eb067d

Please sign in to comment.