-
Notifications
You must be signed in to change notification settings - Fork 296
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
there was one bug that was genuinely ours: by moving the extensions into ext/, but keeping them (in gentle.spec) in Resources/, shelling out to them failed. fine. i've fixed that by moving the entire ext/ folder to Resources/. as a hack, ffmpeg is in there too, so the get_binary function adds ext/ if we're frozen. i have no idea why pyinstaller all of a sudden (using the python.org python) decided to put the entire gentle/ directory into the bundle. there's an egregious hack in make_dmg.sh to work around that.
- Loading branch information
Robert M Ochshorn
authored and
Robert M Ochshorn
committed
Dec 1, 2015
1 parent
77d24a9
commit da5253a
Showing
3 changed files
with
32 additions
and
15 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
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,17 @@ | ||
pyinstaller gentle.spec | ||
|
||
# For unknown reasons, pyinstaller suddenly started dumping this | ||
# entire root directory into the folder (ie. once I changed the system | ||
# python from homebrew to python.org). This makes zero sense. But in | ||
# lieu of tracking down the bug, let's just go in and delete some of | ||
# the nastier, offending files. | ||
cd dist/gentle.app/Contents/Resources | ||
rm -rf COPYING Dockerfile *.sh examples *.spec include lib tests *.pyc gentle *.py *.bkp webdata \ | ||
.git* .travis.yml .DS_Store \ | ||
ext/kaldi ext/*.dSYM ext/Makefile ext/*.cc | ||
cd ../MacOS | ||
rm COPYING Dockerfile *.sh examples *.spec include lib tests *.pyc gentle *.py *.bkp webdata \ | ||
.git* .travis.yml .DS_Store | ||
cd ../../../../ | ||
|
||
hdiutil create dist/gentle.dmg -volname "Gentle" -srcfolder dist/gentle.app/ |