mirror of
https://github.com/PR0M3TH3AN/VoxVera.git
synced 2025-09-09 15:38:43 +00:00
Add Electron GUI and packaging scripts
This commit is contained in:
30
packaging/build_appimage.sh
Executable file
30
packaging/build_appimage.sh
Executable 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"
|
12
packaging/chocolatey/tools/chocolateyInstall.ps1
Normal file
12
packaging/chocolatey/tools/chocolateyInstall.ps1
Normal file
@@ -0,0 +1,12 @@
|
||||
$toolsDir = Split-Path -Parent $MyInvocation.MyCommand.Definition
|
||||
$url = 'https://github.com/PR0M3TH3AN/VoxVera/releases/latest/download/voxvera.exe'
|
||||
|
||||
$packageArgs = @{
|
||||
packageName = 'voxvera'
|
||||
fileType = 'exe'
|
||||
url = $url
|
||||
silentArgs = '/S'
|
||||
validExitCodes = @(0)
|
||||
}
|
||||
|
||||
Install-ChocolateyPackage @packageArgs
|
12
packaging/chocolatey/voxvera.nuspec
Normal file
12
packaging/chocolatey/voxvera.nuspec
Normal file
@@ -0,0 +1,12 @@
|
||||
<?xml version="1.0"?>
|
||||
<package>
|
||||
<metadata>
|
||||
<id>voxvera</id>
|
||||
<version>0.1.0</version>
|
||||
<title>VoxVera</title>
|
||||
<authors>VoxVera</authors>
|
||||
<description>Generate flyers with QR codes</description>
|
||||
<projectUrl>https://github.com/PR0M3TH3AN/VoxVera</projectUrl>
|
||||
<tags>voxvera flyers</tags>
|
||||
</metadata>
|
||||
</package>
|
15
packaging/homebrew/voxvera.rb
Normal file
15
packaging/homebrew/voxvera.rb
Normal file
@@ -0,0 +1,15 @@
|
||||
class Voxvera < Formula
|
||||
desc "Generate QR-coded flyers"
|
||||
homepage "https://github.com/PR0M3TH3AN/VoxVera"
|
||||
url "https://github.com/PR0M3TH3AN/VoxVera/releases/latest/download/voxvera"
|
||||
version "0.1.0"
|
||||
sha256 "<insert-sha256>"
|
||||
|
||||
def install
|
||||
bin.install "voxvera"
|
||||
end
|
||||
|
||||
test do
|
||||
system "#{bin}/voxvera", "--help"
|
||||
end
|
||||
end
|
Reference in New Issue
Block a user