diff options
Diffstat (limited to 'bin/build-dist')
| -rwxr-xr-x | bin/build-dist | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/bin/build-dist b/bin/build-dist index 78e42430..a96b7506 100755 --- a/bin/build-dist +++ b/bin/build-dist @@ -19,13 +19,13 @@ fi # above! pyinstaller_args+="--hidden-import gi.repository.Gtk " -# mac and windows build seem to miss wx and libembroidery import -pyinstaller_args+="--hidden-import wx --hidden-import libembroidery " +# mac and windows build seem to miss wx import +pyinstaller_args+="--hidden-import wx " -if [ -d windows-libembroidery ]; then - pyinstaller_args+="-p windows-libembroidery " -else - pyinstaller_args+="-p embroidermodder/experimental/python/binding " +# We need to use the precompiled bootloader linked with graphical Mac OS X +# libraries if we develop a GUI application for Mac: +if [ "$TRAVIS_OS_NAME" = "osx" ]; then + pyinstaller_args+="--windowed " fi # This lets pyinstaller see inkex.py, etc. @@ -51,6 +51,11 @@ mkdir dist/bin mv dist/inkstitch/* dist/bin mv dist/bin dist/inkstitch +# on Mac, pyinstaller creates a .app version as well, but we don't need that +if [ "$TRAVIS_OS_NAME" = "osx" ]; then + rm -rf dist/inkstitch.app/ +fi + # Inkscape doesn't let us run native binaries as extensions(?!). Instead we # add this stub script which executes the binary that pyinstaller creates. cp stub.py dist/inkstitch.py |
