mirror of
https://github.com/GAM-team/GAM.git
synced 2026-06-24 08:01:36 +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
|
||||
|
||||
mypath=$HOME
|
||||
cpucount=$(nproc --all)
|
||||
# Compile latest OpenSSL
|
||||
OPENSSL_VER=1.1.1b
|
||||
wget https://www.openssl.org/source/openssl-$OPENSSL_VER.tar.gz
|
||||
tar xf openssl-$OPENSSL_VER.tar.gz
|
||||
cd openssl-$OPENSSL_VER
|
||||
./config shared --prefix=$mypath/ssl
|
||||
make
|
||||
make install
|
||||
make -j$cpucount > /dev/null
|
||||
make install > /dev/null
|
||||
cd ~
|
||||
|
||||
# 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
|
||||
cd Python-$PYTHON_VER
|
||||
./configure --with-openssl=$mypath/ssl --enable-optimizations --enable-shared \
|
||||
--prefix=$mypath/python --with-ensurepip=upgrade
|
||||
make
|
||||
make install
|
||||
--prefix=$mypath/python --with-ensurepip=upgrade > /dev/null
|
||||
make -j$cpucount > /dev/null
|
||||
make install > /dev/null
|
||||
cd ~
|
||||
|
||||
export LD_LIBRARY_PATH=~/ssl/lib:~/python/lib
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
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
|
||||
export GAMVERSION=`gam/gam version simple`
|
||||
cp LICENSE gam
|
||||
|
||||
Reference in New Issue
Block a user