Add Electron GUI and packaging scripts

This commit is contained in:
thePR0M3TH3AN
2025-06-19 13:04:11 -04:00
parent 52f243ab26
commit b54b051405
11 changed files with 167 additions and 0 deletions

30
packaging/build_appimage.sh Executable file
View File

@@ -0,0 +1,30 @@
#!/usr/bin/env bash
set -e
if [ ! -f dist/voxvera ]; then
echo "Run PyInstaller first" >&2
exit 1
fi
APPDIR=dist/AppDir
mkdir -p "$APPDIR/usr/bin"
cp dist/voxvera "$APPDIR/usr/bin/voxvera"
chmod +x "$APPDIR/usr/bin/voxvera"
cat > "$APPDIR/voxvera.desktop" <<EOD
[Desktop Entry]
Type=Application
Name=VoxVera
Exec=voxvera
Icon=voxvera
Categories=Utility;
EOD
touch "$APPDIR/voxvera.png"
wget -q https://github.com/AppImage/AppImageKit/releases/latest/download/appimagetool-x86_64.AppImage -O appimagetool
chmod +x appimagetool
./appimagetool "$APPDIR" dist/VoxVera.AppImage
rm appimagetool
echo "AppImage created at dist/VoxVera.AppImage"