Skip to content
Snippets Groups Projects
Commit 1d26217b authored by Holger Nahrstaedt's avatar Holger Nahrstaedt
Browse files

Add building of pyinstaller to macos

parent 43eea686
No related branches found
No related tags found
No related merge requests found
......@@ -57,11 +57,14 @@ before_install:
- pip install --upgrade wheel
# Set numpy version first, other packages link against it
- pip install six nose coverage codecov tox-travis pytest pytest-cov coveralls codacy-coverage parameterized secp256k1 cryptography scrypt
- pip install pycryptodomex pyyaml appdirs pylibscrypt
- pip install ecdsa requests future websocket-client pytz six Click events prettytable
script:
- tox
after_success:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then bash util/package-osx.sh; fi
- coveralls
# - codecov
# - python-codacy-coverage -r coverage.xml
......@@ -85,6 +85,7 @@ after_test:
- ps: | # generate sha256 hashes
(get-filehash $env:BUILD -algorithm SHA256).Hash | out-file ("{0}.sha256" -f $env:BUILD) -encoding ascii
type ("{0}.sha256" -f $env:BUILD)
#(get-filehash beempy.zip -algorithm SHA256).Hash | out-file "beempy.zip.sha256" -encoding ascii
......
......@@ -45,4 +45,12 @@ coll = COLLECT(
name='beempy',
strip=False,
upx=False
)
\ No newline at end of file
)
if platform.system() == 'Darwin':
info_plist = {'NSHighResolutionCapable': 'True', 'NSPrincipalClass': 'NSApplication'}
app = BUNDLE(exe,
name='beempy.app',
icon='beempy.ico',
bundle_identifier=None
)
\ No newline at end of file
......@@ -38,3 +38,11 @@ exe = EXE(pyz,
console=True,
icon='beempy.ico',
)
if platform.system() == 'Darwin':
info_plist = {'NSHighResolutionCapable': 'True', 'NSPrincipalClass': 'NSApplication'}
app = BUNDLE(exe,
name='beempy.app',
icon='beempy.ico',
bundle_identifier=None
)
\ No newline at end of file
#!/usr/bin/env bash
if [ -z "$CI_BUILD_TAG" ]
then
python setup.py patch_version --platform=osx
fi
VERSION=$(python -c 'import beem; print(beem.__version__)')
rm -rf dist build locale
pip install
python setup.py clean
python setup.py build_ext
python setup.py build_locales
pip install pyinstaller
pyinstaller beempy-onedir.spec
cd dist
ditto -rsrc --arch x86_64 'beempy.app' 'beempy.tmp'
rm -r 'beempy.app'
mv 'beempy.tmp' 'beempy.app'
hdiutil create -volname "beempy $VERSION" -srcfolder 'beempy.app' -ov -format UDBZ "beempy $VERSION.dmg"
if [ -n "$UPLOAD_OSX" ]
then
curl --upload-file "beempy $VERSION.dmg" https://transfer.sh/
# Required for a newline between the outputs
echo -e "\n"
md5 -r "beempy $VERSION.dmg"
fi
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment