mirror of
https://github.com/GAM-team/GAM.git
synced 2026-07-03 12:21:35 +00:00
more build stuff
This commit is contained in:
@@ -8,14 +8,15 @@ echo "Installing StaticX deps..."
|
|||||||
sudo apt-get --yes install binutils patchelf
|
sudo apt-get --yes install binutils patchelf
|
||||||
|
|
||||||
mypath=$HOME
|
mypath=$HOME
|
||||||
|
cpucount=$(nproc --all)
|
||||||
# Compile latest OpenSSL
|
# Compile latest OpenSSL
|
||||||
OPENSSL_VER=1.1.1b
|
OPENSSL_VER=1.1.1b
|
||||||
wget https://www.openssl.org/source/openssl-$OPENSSL_VER.tar.gz
|
wget https://www.openssl.org/source/openssl-$OPENSSL_VER.tar.gz
|
||||||
tar xf openssl-$OPENSSL_VER.tar.gz
|
tar xf openssl-$OPENSSL_VER.tar.gz
|
||||||
cd openssl-$OPENSSL_VER
|
cd openssl-$OPENSSL_VER
|
||||||
./config shared --prefix=$mypath/ssl
|
./config shared --prefix=$mypath/ssl
|
||||||
make
|
make -j$cpucount > /dev/null
|
||||||
make install
|
make install > /dev/null
|
||||||
cd ~
|
cd ~
|
||||||
|
|
||||||
# Compile latest Python
|
# Compile latest Python
|
||||||
@@ -24,9 +25,9 @@ wget https://www.python.org/ftp/python/$PYTHON_VER/Python-$PYTHON_VER.tar.xz
|
|||||||
tar xf Python-$PYTHON_VER.tar.xz
|
tar xf Python-$PYTHON_VER.tar.xz
|
||||||
cd Python-$PYTHON_VER
|
cd Python-$PYTHON_VER
|
||||||
./configure --with-openssl=$mypath/ssl --enable-optimizations --enable-shared \
|
./configure --with-openssl=$mypath/ssl --enable-optimizations --enable-shared \
|
||||||
--prefix=$mypath/python --with-ensurepip=upgrade
|
--prefix=$mypath/python --with-ensurepip=upgrade > /dev/null
|
||||||
make
|
make -j$cpucount > /dev/null
|
||||||
make install
|
make install > /dev/null
|
||||||
cd ~
|
cd ~
|
||||||
|
|
||||||
export LD_LIBRARY_PATH=~/ssl/lib:~/python/lib
|
export LD_LIBRARY_PATH=~/ssl/lib:~/python/lib
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
cd src
|
cd src
|
||||||
pyinstaller --clean --debug -F --distpath=gam $GAMOS-gam.spec
|
$python -OO -m PyInstaller --clean --debug -F --distpath=gam $GAMOS-gam.spec
|
||||||
gam/gam version
|
gam/gam version
|
||||||
export GAMVERSION=`gam/gam version simple`
|
export GAMVERSION=`gam/gam version simple`
|
||||||
cp LICENSE gam
|
cp LICENSE gam
|
||||||
|
|||||||
Reference in New Issue
Block a user