Skip to content
This repository has been archived by the owner on May 16, 2019. It is now read-only.

Commit

Permalink
Change Windows filenames
Browse files Browse the repository at this point in the history
Mac fixes

Fix Windows upload links
  • Loading branch information
hoffmabc committed Oct 28, 2016
1 parent 39d0fe3 commit a2eefd3
Show file tree
Hide file tree
Showing 5 changed files with 46 additions and 16 deletions.
6 changes: 4 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ install:
- pip install -r test_requirements.txt
script:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo bash travis-linux.sh; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then sudo bash travis-osx.sh; fi
after_success:
- coveralls
before_deploy:
Expand All @@ -24,7 +25,8 @@ deploy:
file:
- dist/openbazaard-linux32
- dist/openbazaard-linux64
- dist/openbazaard.exe
- dist/openbazaard-windows32.exe
- dist/openbazaard-windows64.exe
skip_cleanup: true
on:
all_branches: true
Expand All @@ -33,7 +35,7 @@ deploy:
api_key: "$GITHUB_TOKEN"
file_glob: true
file:
- dist/openbazaard-osx*
- dist/openbazaard-osx
skip_cleanup: true
on:
all_branches: true
Expand Down
29 changes: 29 additions & 0 deletions .travis/openbazaard.mac.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# -*- mode: python -*-

block_cipher = None


a = Analysis(['./OpenBazaar-Server/openbazaard.py'],
pathex=['./OpenBazaar-Server'],
binaries=None,
datas=None,
hiddenimports=['zmq', 'cryptography', 'cffi', 'packaging'],
hookspath=None,
runtime_hooks=None,
excludes=None,
win_no_prefer_redirects=None,
win_private_assemblies=None,
cipher=block_cipher)
a.datas += [('ob.cfg', 'ob.cfg', 'DATA'),('bitcointools/english.txt','env/lib/python2.7/site-packages/bitcointools/english.txt','DATA')]
pyz = PYZ(a.pure, a.zipped_data,
cipher=block_cipher)
exe = EXE(pyz,
a.scripts,
a.binaries,
a.zipfiles,
a.datas,
name='openbazaard-osx',
debug=True,
strip=None,
upx=True,
console=True)
4 changes: 2 additions & 2 deletions travis-linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ sudo chmod 777 dist/openbazaard-linux32
sudo chmod a+x dist/openbazaard-linux32
sudo chmod 777 dist/openbazaard-linux64
sudo chmod a+x dist/openbazaard-linux64
ls -alg dist/openbazaard-linux64
sudo chmod 777 dist/openbazaard.exe
sudo chmod 777 dist/openbazaard-windows64.exe
sudo chmod 777 dist/openbazaard-windows32.exe
12 changes: 0 additions & 12 deletions travis-linux.sh~

This file was deleted.

11 changes: 11 additions & 0 deletions travis-osx.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/bash

virtualenv env
. env/bin/activate
pip install --upgrade pip
pip install --ignore-installed -r requirements.txt
pip install --ignore-installed pyinstaller==3.1
pip install setuptools==19.1
env/bin/pyinstaller -F -n openbazaard-osx -i osx/tent.icns --osx-bundle-identifier=com.openbazaar.openbazaard .travis/openbazaard.mac.spec
echo 'Completed building OpenBazaar-Server binary...'

0 comments on commit a2eefd3

Please sign in to comment.