Skip to content

Commit

Permalink
ci: tell pyinstaller to work in a different directory than pypi
Browse files Browse the repository at this point in the history
  • Loading branch information
paulmueller committed Jul 2, 2019
1 parent 3c7936b commit 9fa6818
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
10 changes: 3 additions & 7 deletions .travis/osx_build_app.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,14 @@ fi
NAME=$1
# append "App" to avoid naming conflicts with python library
SCRIPT=".travis/${1}App.py"
APP_DIST="./dist/${1}App.app"
APP="./dist_app/${1}App.app"
DMG="./dist_app/${1}.dmg"
TMP="./dist_app/pack.temp.dmg"
pip install pyinstaller

pyinstaller -w -y --additional-hooks-dir=".travis" $SCRIPT

# Work in a different directory, otherwise PyPI deployment on travis-CI
# tries to upload *.dmg files
mkdir -p ./dist_app
mv $APP_DIST $APP
# Work in a different directory (./dist_app instead of ./dist),
# otherwise PyPI deployment on travis-CI tries to upload *.dmg files.
pyinstaller -w -y --distpath="./dist_app" --additional-hooks-dir=".travis" $SCRIPT

# create temporary DMG
hdiutil create -srcfolder "${APP}" -volname "${NAME}" -fs HFS+ \
Expand Down
2 changes: 1 addition & 1 deletion CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
2.0.0a4
2.0.0a6
- test deployment for macOS
2.0.0a1
- first preview

0 comments on commit 9fa6818

Please sign in to comment.