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

BIN
desktop/icons/ham.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

View File

@@ -1,4 +1,4 @@
module hampack-manager
module hampack
go 1.22

View File

@@ -584,7 +584,7 @@ func (w *mainWin) onApply() {
// ── Main ──────────────────────────────────────────────────────────────────────
func main() {
app := adw.NewApplication("computer.young.HamPackManager", 0)
app := adw.NewApplication("computer.young.HamPack", 0)
app.ConnectActivate(func() {
newMainWin(app).Present()
})

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."