build.sh for RPM builds

This commit is contained in:
vyvir
2024-11-20 21:54:57 +02:00
parent 4b215071ee
commit 2c14773644
+17
View File
@@ -0,0 +1,17 @@
#!/bin/bash
cd "$(dirname "$0")" || exit
if [ -d "./althea/usr/lib" ]; then
rm -rf "./AltServer/usr/lib"
fi
if [ -d "./dist" ]; then
rm -rf "./dist"
fi
pyinstaller althea.spec --clean
cp -R ./resources ./dist/althea
mkdir -p "./althea/usr/lib"
cp -R ./dist/althea ./althea/usr/lib
chmod -R 0775 althea