This commit is contained in:
Jay Lee
2019-04-23 20:00:39 -04:00
parent 2b58539588
commit 90c51a2d51
2 changed files with 16 additions and 12 deletions

View File

@@ -1,12 +1,13 @@
whereibelong=$(pwd)
export whereibelong=$(pwd)
export dist=$(lsb_release --codename --short)
echo "We are running on Ubuntu $dist"
echo "RUNNING: apt update..."
sudo apt-get --yes update > /dev/null
echo "RUNNING: apt dist-upgrade..."
sudo apt-get --yes dist-upgrade > /dev/null
echo "Installing build tools..."
sudo apt-get --yes install build-essential
echo "Installing StaticX deps..."
sudo apt-get --yes install binutils patchelf
echo "Installing deps for python3"
sudo cp -v /etc/apt/sources.list /tmp
chmod a+rwx /tmp/sources.list
@@ -20,14 +21,6 @@ echo "My Path is $mypath"
cpucount=$(nproc --all)
echo "This device has $cpucount CPUs for compiling..."
# Compile patchelf (no ubuntu package till Xenial)
PATCHELF_VER=0.10
wget https://nixos.org/releases/patchelf/patchelf-$PATCHELF_VER/patchelf-$PATCHELF_VER.tar.bz2
tar xf patchelf-$PATCHELF_VER.tar.bz2
cd patchelf-$PATCHELF_VER
./configure
make
sudo make install
# Compile latest OpenSSL
OPENSSL_VER=1.1.1b
@@ -64,6 +57,18 @@ pip=~/python/bin/pip3
$python -V
if [[ "$dist" == "precise" ]]; then
echo "Installing patchelf for StaticX..."
# Compile patchelf (no ubuntu package till Xenial)
PATCHELF_VER=0.10
wget https://nixos.org/releases/patchelf/patchelf-$PATCHELF_VER/patchelf-$PATCHELF_VER.tar.bz2
tar xf patchelf-$PATCHELF_VER.tar.bz2
cd patchelf-$PATCHELF_VER
./configure
make
sudo make install
fi
cd $whereibelong
echo "Upgrading pip packages..."

View File

@@ -12,7 +12,6 @@ echo "PyInstaller GAM info:"
du -h gam/gam
time gam/gam version extended
dist=$(lsb_release --codename --short)
if [[ "$dist" == "precise" ]]; then
GAM_LEGACY_ARCHIVE=gam-$GAMVERSION-$GAMOS-$PLATFORM-legacy.tar.xz
$python -OO -m staticx gam/gam gam/gam-staticx