package: Add source archive and minor change.

mesh
Pierre-Antoine Rouby 2023-06-13 14:34:25 +02:00
parent 76c455864d
commit 75503628b3
2 changed files with 33 additions and 5 deletions

View File

@ -3,17 +3,27 @@
echo " *** RM OLD ENV"
rm dist/ -rf
rm pamhyrBuild -rf
rm linux-pamhyr-venv -rf
echo " *** SETUP ENV"
python3 -m venv pamhyrBuild
. pamhyrBuild/bin/activate
python3 -m venv linux-pamhyr-venv
. linux-pamhyr-venv/bin/activate
pip3 install -r ../requirements.txt
echo " *** PYINSTALL"
pyinstaller -y --paths pamhyrBuild/lib/python3.8/site-packages ../src/pamhyr.py
pyinstaller -y \
--paths linux-pamhyr-venv/lib/python3.8/site-packages \
../src/pamhyr.py
echo " *** MAKE QM"
# Update TS and build QM files
OLD_PWD=$PWD
cd ../src/lang/
./create_ts.sh
cd $OLD_PWD
echo " *** COPY DATA"
@ -25,7 +35,17 @@ cp -r ../src/View/ui/*.ui dist/pamhyr/View/ui/
mkdir -p dist/pamhyr/lang
cp -r ../src/lang/*.qm dist/pamhyr/lang/
echo " *** MAKE PACKAGE"
echo " *** MAKE SRC PACKAGE"
OLD_PWD=$PWD
cd ../
git archive --format=tar.gz -o pamhyr-src.tar.gz HEAD
cd $OLD_PWD
mv ../pamhyr-src.tar.gz ./
echo " *** MAKE BIN PACKAGE"
OLD_PWD=$PWD
cd dist/
@ -33,3 +53,5 @@ tar --xz -cf pamhyr-gnulinux-amd64.tar.xz pamhyr --checkpoint=.100
cd $OLD_PWD
mv dist/pamhyr-gnulinux-amd64.tar.xz ./
echo " *** DONE"

View File

@ -60,6 +60,12 @@ cp -r ../src/View/ui/ressources/ dist/pamhyr/View/ui/
cp -r ../src/View/ui/Widgets/*.ui dist/pamhyr/View/ui/
cp -r ../src/View/ui/*.ui dist/pamhyr/View/ui/
# Update TS and build QM files
OLD_PWD=$PWD
cd ../src/lang/
./create_ts.sh
cd $OLD_PWD
mkdir -p dist/pamhyr/lang
cp -r ../src/lang/*.qm dist/pamhyr/lang/