mirror of https://gitlab.com/pamhyr/pamhyr2
package: Minor change on linux and some fixes on wine.
parent
f105c00f89
commit
76c455864d
|
|
@ -29,7 +29,7 @@ echo " *** MAKE PACKAGE"
|
||||||
|
|
||||||
OLD_PWD=$PWD
|
OLD_PWD=$PWD
|
||||||
cd dist/
|
cd dist/
|
||||||
tar --xz -cf pamhyr-gnulinux-amd64.tar.xz pamhyr
|
tar --xz -cf pamhyr-gnulinux-amd64.tar.xz pamhyr --checkpoint=.100
|
||||||
cd $OLD_PWD
|
cd $OLD_PWD
|
||||||
|
|
||||||
mv dist/pamhyr-gnulinux-amd64.tar.xz ./
|
mv dist/pamhyr-gnulinux-amd64.tar.xz ./
|
||||||
|
|
|
||||||
|
|
@ -7,10 +7,17 @@ export WINARCH=win64
|
||||||
if [ -z $WINEPREFIX ];
|
if [ -z $WINEPREFIX ];
|
||||||
then
|
then
|
||||||
# FIXME Not tested yet...
|
# FIXME Not tested yet...
|
||||||
export WINEPREFIX=./wine-pamhyr-build
|
export WINEPREFIX=$(realpath ./wine-pamhyr-build)
|
||||||
|
|
||||||
|
if [ ! -f python-3.8.10-amd64.exe ];
|
||||||
|
then
|
||||||
wget https://www.python.org/ftp/python/3.8.10/python-3.8.10-amd64.exe
|
wget https://www.python.org/ftp/python/3.8.10/python-3.8.10-amd64.exe
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ ! -f nsis-3.08-setup.exe ];
|
||||||
|
then
|
||||||
wget https://freefr.dl.sourceforge.net/project/nsis/NSIS%203/3.08/nsis-3.08-setup.exe
|
wget https://freefr.dl.sourceforge.net/project/nsis/NSIS%203/3.08/nsis-3.08-setup.exe
|
||||||
|
fi
|
||||||
|
|
||||||
# Dummy display
|
# Dummy display
|
||||||
Xvfb :42 -screen 0 1024x768x16 &
|
Xvfb :42 -screen 0 1024x768x16 &
|
||||||
|
|
@ -22,14 +29,28 @@ then
|
||||||
7zip \
|
7zip \
|
||||||
win10
|
win10
|
||||||
|
|
||||||
DISPLAY=:42.0 wine cmd /c python-3.8.10-amd64.exe /quiet PrependPath=1
|
echo " *** PYTHON INSTALL"
|
||||||
|
if [ ! -f $WINEPREFIX/drive_c/Program Files/Python38/python.exe ];
|
||||||
|
then
|
||||||
|
#DISPLAY=:42.0 wine cmd /c python-3.8.10-amd64.exe /quiet PrependPath=1
|
||||||
|
wine cmd /c python-3.8.10-amd64.exe PrependPath=1
|
||||||
wine python $WINEPREFIX/drive_c/Program\ Files/Python38/Tools/scripts/win_add2path.py
|
wine python $WINEPREFIX/drive_c/Program\ Files/Python38/Tools/scripts/win_add2path.py
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo " *** PIP UPGRADE AND DEPENDENCIES"
|
||||||
|
wine python -m pip install --upgrade pip
|
||||||
wine python -m pip install pyinstaller
|
wine python -m pip install pyinstaller
|
||||||
DISPLAY=:42.0 wine cmd /c nsis-3.08-setup.exe /quiet
|
|
||||||
|
echo " *** NSIS INSTALL"
|
||||||
|
if [ ! -f $WINEPREFIX/drive_c/Program\ Files\ \(x86\)/NSIS/makensis.exe ];
|
||||||
|
then
|
||||||
|
wine cmd /c nsis-3.08-setup.exe
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo " *** PYINSTALL"
|
echo " *** PYINSTALL"
|
||||||
|
|
||||||
|
wine python -m pip install -r $(realpath ../requirements.txt)
|
||||||
wine pyinstaller ../src/pamhyr.py -y
|
wine pyinstaller ../src/pamhyr.py -y
|
||||||
|
|
||||||
echo " *** COPY DATA"
|
echo " *** COPY DATA"
|
||||||
|
|
@ -48,7 +69,7 @@ echo " TAR pamhyr-win-amd64.tar.xz"
|
||||||
|
|
||||||
OLD_PWD=$PWD
|
OLD_PWD=$PWD
|
||||||
cd dist/
|
cd dist/
|
||||||
tar --xz -cf pamhyr-win-amd64.tar.xz pamhyr
|
tar --xz -cf pamhyr-win-amd64.tar.xz pamhyr --checkpoint=.100
|
||||||
cd $OLD_PWD
|
cd $OLD_PWD
|
||||||
mv dist/pamhyr-win-amd64.tar.xz ./
|
mv dist/pamhyr-win-amd64.tar.xz ./
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue