-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Build linux binary on an older version of debian/ubuntu instead of us…
…ing staticx
- Loading branch information
Showing
1 changed file
with
6 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -269,12 +269,9 @@ jobs: | |
rm -rf dist* | ||
for VER in "$VERSION" "$FINAL_VERSION"; do | ||
echo "version_string = '$VER'" > tile_generator/version.py | ||
if [ $1 == 'staticx' ]; then | ||
./pyinstaller/build-binaries.sh --staticx | ||
else | ||
./pyinstaller/build-binaries.sh | ||
fi | ||
if [ $1 != 'skip_sdist' ]; then | ||
./pyinstaller/build-binaries.sh | ||
if [ -z "$SKIP_SDIST" ]; then | ||
echo "Building SDist" | ||
python setup.py sdist | ||
# Setuptools normalizes versions and does not support semver. | ||
# See https://github.com/pypa/setuptools/issues/308 | ||
|
@@ -285,22 +282,23 @@ jobs: | |
} | ||
|
||
function build-remote(){ | ||
SKIP_SDIST='true' | ||
HEAD="$HEAD" | ||
ssh -oStrictHostKeyChecking=no -i mac_ssh_key -t [email protected] "$(typeset -f build) | ||
VERSION="$VERSION" | ||
FINAL_VERSION="$FINAL_VERSION" | ||
cd tile-generator | ||
git fetch origin | ||
git reset --hard "$HEAD" | ||
build skip_sdist | ||
build | ||
rm -rf dist/ | ||
" | ||
scp -oStrictHostKeyChecking=no -i mac_ssh_key -r [email protected]:tile-generator/dist* . | ||
} | ||
|
||
VERSION=`cat ../version/version` | ||
FINAL_VERSION=`cat ../final-version/version` | ||
build staticx | ||
build | ||
HEAD=`git log --pretty=format:'%h' -n 1` | ||
build-remote | ||
|
||
|