Skip to content

Commit

Permalink
fix(packaging): fix ubuntu packaging
Browse files Browse the repository at this point in the history
Closes #5.
  • Loading branch information
millerjs committed Aug 10, 2015
1 parent 61c5546 commit ef53c7b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
Binary file modified bin/gdc-client
Binary file not shown.
15 changes: 10 additions & 5 deletions bin/package_ubuntu.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
#!/usr/bin/env bash

set -e

# Make sure the correct version of pyinstall is installed
pip install 'PyInstaller==2.1'
pip install https://github.com/pyinstaller/pyinstaller/archive/develop.zip


# Get version
VERSION=$(python -c """
Expand All @@ -12,8 +15,10 @@ print gdc_client.version.__version__
# Create binary
pyinstaller --clean --noconfirm --onefile -c gdc-client

APPNAME="gdc-client"
SOURCE="dist/gdc-client"

# Zip dist
zip "gdc-client_${VERSION}_Ubuntu14.04_x64.zip" "${SOURCE}"
SOURCE_DIR='dist'
SOURCE="gdc-client"
ZIP_DIR="${PWD}"
cd "${SOURCE_DIR}"

zip "${ZIP_DIR}/gdc-client_${VERSION}_Ubuntu14.04_x64.zip" "${SOURCE}"

0 comments on commit ef53c7b

Please sign in to comment.