Skip to content

Commit

Permalink
Build linux binary on an older version of debian/ubuntu instead of us…
Browse files Browse the repository at this point in the history
…ing staticx
  • Loading branch information
keshto committed Oct 21, 2019
1 parent 0de772f commit edbc213
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions ci/pipeline.yml.jinja2
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

Expand Down

0 comments on commit edbc213

Please sign in to comment.