Skip to content

Commit

Permalink
ci: use different directories for deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
paulmueller committed Jul 2, 2019
1 parent 94f4384 commit 8d6031a
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ deploy:
api_key:
secure: "nseHIkNTOVWrPZRKwda/Argolb454PnUW36wtihr/Mk739ayRx36RzT6LW6CPCV6GIsNVftv2kAvvkVp4wpy/eXPQExIUqTHeNAYDvdaO4H5JL9cJ8p5oBtKqvpaIlpWdmPlkXF/73DIznVNY0eyK0bAvQ1EjK/7i+9HvwYi6X4I5cDSB5kmOdPj801QKMwF902kgExB9IuLkPEpGSBxjgXEftDY3PZ4EjwVSgC85rIdzfP1fRFqYhSbt8FvcRrTNWOFFub0aQGSMUZNuOQU72/HHlH6y98WYgXlK4RXs2ZbdAwhW4jSNqJs7J0munZJLRU//r9qvJOGFVlHv8EZTQao2YsBgf1/dj+Y7Olhq23ren2sr2Q3PPph4VBiCzFBlbagZnySsTu5pNkfylMVcMKPjVfuJZFH1kmBwn2iux0aikN+QSDYYxNc24uYX8oKWXKhiy5rX5hr2G4n14Qrdtn+hGqQ9HSN391gBxK1vPPlusT8vYzJu28i7UR7yMHDMPlzWsM7IkbdxgToj8LBKcX+CD6+n32zmWmjyq84zmhUIwv79ptZtTtVPGDgaLRTtPO9O7qSM/lVR9eh3FXiVvcB6eQHFyGNSSXND1Bzwhlwlqlt9SF+PyAa7MNjnrfjK+77CwbcOpXkxOaNoZlqRtcgKL2VRG4nz6CFgGOozH8="
file_glob: true
file: "dist/*.dmg"
file: "dist_app/*.dmg"
skip_cleanup: true
on:
tags: true
Expand Down
12 changes: 9 additions & 3 deletions .travis/osx_build_app.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,19 @@ fi
NAME=$1
# append "App" to avoid naming conflicts with python library
SCRIPT=".travis/${1}App.py"
APP="./dist/${1}App.app"
DMG="./dist/${1}.dmg"
TMP="./dist/pack.temp.dmg"
APP_DIST="./dist_app/${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

# create temporary DMG
hdiutil create -srcfolder "${APP}" -volname "${NAME}" -fs HFS+ \
-fsargs "-c c=64,a=16,e=16" -format UDRW "${TMP}"
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.0a2
2.0.0a4
- test deployment for macOS
2.0.0a1
- first preview

0 comments on commit 8d6031a

Please sign in to comment.