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>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
ebda32d567
commit
0b471c9771
+18
-3
@@ -1,19 +1,25 @@
|
||||
# binaries.conf - Pre-built binaries to download and install
|
||||
#
|
||||
# Fields:
|
||||
# version= - version string for update checking
|
||||
# url= - direct download URL for the binary
|
||||
# install= - destination path (e.g. $HOME/.local/bin/appname)
|
||||
# version= - version string for update checking (required). Changing it
|
||||
# downloads the binary again on the next update
|
||||
# url= - direct download URL for the binary (required)
|
||||
# sha256= - SHA-256 of the download. A download that doesn't match isn't
|
||||
# installed. Update it along with url= and version=
|
||||
# install= - destination path, e.g. $HOME/.local/bin/appname (required)
|
||||
# exec= - command for the .desktop Exec= field (defaults to install path if omitted)
|
||||
# gui=true - set if a .desktop file should be generated. No .desktop file is created if false
|
||||
# comment= - description for the .desktop file
|
||||
# icon= - icon theme name (e.g. wsjtx) or path to icon file (e.g. $HAMPACK_DIR/desktop/icons/wsjtx.png)
|
||||
# categories= - desktop categories (default: HamRadio;)
|
||||
#
|
||||
# $HOME, $HAMPACK_DIR and $USER are expanded in every field.
|
||||
#
|
||||
# Example:
|
||||
# [wsjtx]
|
||||
# version=2.7.0
|
||||
# url=https://example.com/wsjtx-2.7.0-x86_64.AppImage
|
||||
# sha256=0123456789abcdef...
|
||||
# install=$HOME/.local/bin/wsjtx
|
||||
# gui=true
|
||||
# comment=Weak signal digital modes for amateur radio
|
||||
@@ -24,12 +30,14 @@
|
||||
[ardop]
|
||||
version=1.0.4.1.3
|
||||
url=https://github.com/pflarue/ardop/releases/download/1.0.4.1.3/ardopcf_amd64_Linux_64
|
||||
sha256=caf256ca1138ea992323bf8c6729a06aaaacb1b62181d0a7b2abba3dffaa9ad8
|
||||
install=$HOME/.local/bin/ardopcf_amd64_Linux_64
|
||||
gui=false
|
||||
|
||||
[paracon]
|
||||
version=1.3.0
|
||||
url=https://github.com/mfncooper/paracon/releases/download/v1.3.0/paracon_1.3.0.pyz
|
||||
sha256=44679cedff613c0c52c1691cf0c047796345ac54890c6a8325afb4d31885999b
|
||||
install=$HOME/.local/bin/paracon.pyz
|
||||
gui=true
|
||||
comment=Packet radio terminal
|
||||
@@ -37,3 +45,10 @@ exec=python $HOME/.local/bin/paracon.pyz
|
||||
icon=$HAMPACK_DIR/desktop/icons/paracon.png
|
||||
categories=HamRadio;
|
||||
|
||||
# dx.py has no releases, so it's pinned to a commit; version= is that commit
|
||||
[dx.py]
|
||||
version=8c742c5f5d37c0a4af26e9b3f9d4be27164c108f
|
||||
url=https://raw.githubusercontent.com/HB9VQQ/dx.py/8c742c5f5d37c0a4af26e9b3f9d4be27164c108f/dx.py
|
||||
sha256=98510e407f64e5ebcf7754ef29265a163756c585e7b3f89c803a43bc8834b68e
|
||||
install=$HOME/.local/bin/dx.py
|
||||
gui=false
|
||||
|
||||
Reference in New Issue
Block a user