5 Commits
Author SHA1 Message Date
David YoungandClaude Opus 5.5 a88f09a1cd Move radio's detection into radio-detect.sh, for HamPackServer to share
check / lint-and-test (push) Failing after 4m21s
check / packages (push) Successful in 24s
Finding the radios, their ports, sound cards and CM108 pins, probing them
and looking them up in radios.conf move, unchanged, from radio into
radio-detect.sh, which radio sources. It needs nothing else of HamPack
(it has parse_conf itself where lib.sh isn't loaded), so HamPackServer's
configure can keep a copy. The messages that named radio's commands take
them from RADIO_PROGRAM, RADIO_CONFIGURE and RADIO_CM108_ACCESS, whose
defaults say what they said before.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 14:13:18 -07:00
David YoungandClaude Opus 5.5 6c76f94ac6 Add radio, which finds radios on USB, and put you in the uucp group
check / lint-and-test (push) Successful in 2m2s
check / packages (push) Successful in 23s
`radio` lists each radio plugged into USB: its serial ports, the sound
card that came with it (the same USB device, or behind the radio's own
hub), and its model and Hamlib model number. Icoms are recognised by
their USB serial number. `radio detect --probe` asks the others with the
CAT ID; command or Icom's CI-V transceiver ID, at the usual baud rates,
on ports no other program has open; `radio probe PORT` asks one port.
It drops DTR and RTS as soon as a port opens. The radios it knows are
in radios.conf.

update.sh links ~/.local/bin/radio to the clone, unless a different
radio is already there, and adds you to uucp, which owns serial ports on
Arch. hampackremove removes the link, and takes you out of uucp only if
HamPack put you in.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 12:12:31 -07:00
David YoungandClaude Opus 5.5 e8fbe256df Add a smoketest, run on CoreDesktop's with coredesktop-dev
check / lint-and-test (push) Successful in 1m37s
check / packages (push) Successful in 23s
`coredesktop-dev smoketest run --with HamPack` installs HamPack on a VM with
CoreDesktop and checks a fresh install, an update with nothing to do, a
one-app rebuild, a failing build and hampackremove, with smoketest/health
checking every package, Flatpak and app is in place.

HAMPACK_SKIP_WINDOWS_APPS skips the Windows installers, which the test VMs'
desktop would start with no one to click through them; smoketest/setup sets
it in each VM.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 10:15:11 -07:00
David YoungandClaude Opus 5.5 8023b04024 Check packages upstream, test hampackcheck and the conf files, add CI
`hampackcheck packages` (and `make check-packages`) checks that every
package in packages.conf is in the repos or on the AUR and every Flatpak
is on Flathub, and fails if any is missing or couldn't be checked. Names
only provided by another package pass with a note.

New tests cover hampackcheck's version comparisons and package check, and
check compile.conf, binaries.conf, packages.conf and the desktop files for
missing or misspelt fields and paths that don't exist.

A Gitea workflow runs lint and tests on every push and pull request, and
the package check on those and weekly.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 09:46:29 -07:00
David YoungandClaude Opus 5.5 0b471c9771 Harden install, update and uninstall; add shared lib and tests
Updates
- install-compiled.sh never prompts: unknown versions rebuild, a missing
  version= fails
- Detect VARA Terminal by "VARA Terminal.exe" in drive_c/VARA, not by
  the folder VARA HF also uses
- install-windows-apps.sh checks first: nothing is downloaded and
  winetricks doesn't run unless a product is missing, and installers
  only run with a desktop session
- Flatpaks install system-wide from flathub and honor skip-packages
- Rewrite desktop files on every run so icon paths stay right; add the
  missing QtTermTCP desktop file
- Build steps can't read the rest of the conf through stdin

Uninstall
- update.sh records the packages and Flatpaks HamPack itself installed;
  hampackremove removes only those that nothing else needs, and lists
  the rest
- Read package lists from packages.conf instead of copies, remove
  files from install manifests, conf install paths and older builds,
  and revert the Wine Decorated setting

Security
- Replace the NOPASSWD sudoers file with a sudo keepalive, and delete a
  leftover /etc/sudoers.d/hampack
- Verify binaries.conf downloads against sha256=; pin dx.py to a commit
- Graywolf's web UI listens on 127.0.0.1; update.sh manages its unit
- Install direwolf and kiwix through a staging directory with
  install_staged, so nothing in ~/.local ends up owned by root; hand
  back any root-owned files left by older builds
- Use private temp directories instead of fixed /tmp paths

Code quality
- Shared lib.sh: conf parser, variable expansion, version records,
  install tracking, staged installs, sudo keepalive
- bats tests covering first install and update paths, Makefile with
  lint/test/hooks, pre-commit hook
- patch-potacat.sh uses jq; drop stale kiwix version entries

README: fill in what gets installed, uninstall and graywolf notes,
development section, typo and Matrix link fixes

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-08 09:55:13 -07:00