go app fixes

This commit is contained in:
David Young
2026-03-31 15:09:05 -06:00
parent a649fdd1e2
commit 1ff38b34e4
4 changed files with 19 additions and 3 deletions

View File

@@ -0,0 +1,8 @@
{
"permissions": {
"allow": [
"WebFetch(domain:github.com)",
"WebSearch"
]
}
}

View File

@@ -3,6 +3,6 @@ module hampack-manager
go 1.22
require (
github.com/diamondburned/gotk4-adw v0.0.0-20240804043422-6b76e90f99ef
github.com/diamondburned/gotk4/pkg/core v0.3.1
github.com/diamondburned/gotk4-adwaita/pkg v0.0.0-20250703085708-8e7f01e2c815
github.com/diamondburned/gotk4/pkg v0.3.2-0.20250703063411-16654385f59a
)

View File

@@ -12,7 +12,7 @@ import (
"sort"
"strings"
"github.com/diamondburned/gotk4-adw/pkg/adw"
"github.com/diamondburned/gotk4-adwaita/pkg/adw"
"github.com/diamondburned/gotk4/pkg/glib/v2"
"github.com/diamondburned/gotk4/pkg/gtk/v4"
)

View File

@@ -77,6 +77,14 @@ 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
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 .
cd ~/.local/share/HamPack
sudo rm /etc/sudoers.d/hampack
echo "HamPack is installed. You may want to restart existing applications when convenient."