Commit Graph

5 Commits

Author SHA1 Message Date
CanbiZ (MickLesk)
a72a5e051e Refactor Companion: apt-get to apt, remove pre-installed jq from deps 2026-03-27 14:12:53 +01:00
Grant Labutis
7970b1b9e0 fix: address coderabbitai and CrazyWolf13 review feedback
- Remove inline comments from var_ declarations in ct/companion.sh
- Replace dual python3 JSON calls with single jq query parsing both
  RELEASE and ASSET_URL from the same package object, preventing
  version/URL mismatch across different package entries
- Add validation for both RELEASE and ASSET_URL (previously only
  ASSET_URL was checked in install script)
- Move version file from /opt/companion_version.txt to ~/.companion
  per project convention
- Use fetch_and_deploy_from_url framework helper instead of manual
  curl/tar/rm in both update_script and install script
- Remove redundant dependencies (curl, sudo, mc, python3); add jq
- Reload udev rules after copying (udevadm control --reload-rules &&
  udevadm trigger) so USB permissions apply immediately
- Replace manual apt-get autoremove/autoclean with cleanup_lxc
2026-03-23 14:31:46 -04:00
Grant Labutis
5987230f99 fix: parse API JSON by package object to ensure version/URL stay in sync 2026-03-16 18:55:10 -04:00
Grant Labutis
2d96d881c2 fix: align with contribution standards 2026-03-16 13:39:41 -04:00
Grant Labutis
6fa8bc3d0c feat: add Bitfocus Companion install script 2026-03-16 13:36:47 -04:00