mirror of
https://github.com/GAM-team/GAM.git
synced 2026-07-04 12:51:36 +00:00
dist
This commit is contained in:
@@ -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..."
|
echo "RUNNING: apt update..."
|
||||||
sudo apt-get --yes update > /dev/null
|
sudo apt-get --yes update > /dev/null
|
||||||
echo "RUNNING: apt dist-upgrade..."
|
echo "RUNNING: apt dist-upgrade..."
|
||||||
sudo apt-get --yes dist-upgrade > /dev/null
|
sudo apt-get --yes dist-upgrade > /dev/null
|
||||||
echo "Installing build tools..."
|
echo "Installing build tools..."
|
||||||
sudo apt-get --yes install build-essential
|
sudo apt-get --yes install build-essential
|
||||||
echo "Installing StaticX deps..."
|
|
||||||
sudo apt-get --yes install binutils patchelf
|
|
||||||
echo "Installing deps for python3"
|
echo "Installing deps for python3"
|
||||||
sudo cp -v /etc/apt/sources.list /tmp
|
sudo cp -v /etc/apt/sources.list /tmp
|
||||||
chmod a+rwx /tmp/sources.list
|
chmod a+rwx /tmp/sources.list
|
||||||
@@ -20,14 +21,6 @@ echo "My Path is $mypath"
|
|||||||
cpucount=$(nproc --all)
|
cpucount=$(nproc --all)
|
||||||
echo "This device has $cpucount CPUs for compiling..."
|
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
|
# Compile latest OpenSSL
|
||||||
OPENSSL_VER=1.1.1b
|
OPENSSL_VER=1.1.1b
|
||||||
@@ -64,6 +57,18 @@ pip=~/python/bin/pip3
|
|||||||
|
|
||||||
$python -V
|
$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
|
cd $whereibelong
|
||||||
|
|
||||||
echo "Upgrading pip packages..."
|
echo "Upgrading pip packages..."
|
||||||
|
|||||||
@@ -12,7 +12,6 @@ echo "PyInstaller GAM info:"
|
|||||||
du -h gam/gam
|
du -h gam/gam
|
||||||
time gam/gam version extended
|
time gam/gam version extended
|
||||||
|
|
||||||
dist=$(lsb_release --codename --short)
|
|
||||||
if [[ "$dist" == "precise" ]]; then
|
if [[ "$dist" == "precise" ]]; then
|
||||||
GAM_LEGACY_ARCHIVE=gam-$GAMVERSION-$GAMOS-$PLATFORM-legacy.tar.xz
|
GAM_LEGACY_ARCHIVE=gam-$GAMVERSION-$GAMOS-$PLATFORM-legacy.tar.xz
|
||||||
$python -OO -m staticx gam/gam gam/gam-staticx
|
$python -OO -m staticx gam/gam gam/gam-staticx
|
||||||
|
|||||||
Reference in New Issue
Block a user