hampack app fixes

This commit is contained in:
David Young
2026-04-02 09:27:22 -06:00
parent 5afd4c077d
commit 453e7a7a9c
4 changed files with 17 additions and 5 deletions

View File

@@ -77,14 +77,26 @@ echo "Installing dx.py..."
wget -q https://raw.githubusercontent.com/HB9VQQ/dx.py/main/dx.py -O "$HOME/.local/bin/dx.py"
chmod +x "$HOME/.local/bin/dx.py"
echo "Building HamPack Manager..."
cd ~/.local/share/HamPack/hampack-manager-src
echo "Building HamPack..."
cd ~/.local/share/HamPack/hampack-src
go get github.com/diamondburned/gotk4-adwaita/pkg/adw@latest
go get github.com/diamondburned/gotk4/pkg/gtk/v4@latest
go mod tidy
go build -o ~/.local/bin/hampack-manager .
go build -o ~/.local/bin/hampack .
cd ~/.local/share/HamPack
echo "Installing HamPack desktop file..."
mkdir -p ~/.local/share/applications
cat > ~/.local/share/applications/hampack.desktop << EOF
[Desktop Entry]
Type=Application
Name=HamPack
Exec=$HOME/.local/bin/hampack
Icon=$HOME/.local/share/HamPack/desktop/icons/ham.png
Comment=Manage HamPack amateur radio software
Categories=HamRadio;
EOF
sudo rm /etc/sudoers.d/hampack
echo "HamPack is installed. You may want to restart existing applications when convenient."