Skip to content

feat: source-based install and greywall update command#37

Closed
Joyce-O wants to merge 2 commits into
GreyhavenHQ:mainfrom
Joyce-O:feat/source-install-and-update-cmd
Closed

feat: source-based install and greywall update command#37
Joyce-O wants to merge 2 commits into
GreyhavenHQ:mainfrom
Joyce-O:feat/source-install-and-update-cmd

Conversation

@Joyce-O
Copy link
Copy Markdown
Contributor

@Joyce-O Joyce-O commented Mar 20, 2026

feat: source-based install and greywall update command

Replaces the pre-built binary download with a source build, and adds a greywall update command to keep both tools up to date.
greywall setup

  • Now builds greyproxy from source (git clone + go build + greyproxy install --force) instead of downloading a release asset — works on Linux and any architecture without a published binary

greywall update

  • New command: fetches the latest stable tags for both greyproxy and greywall, rebuilds each from source
  • --beta flag to target pre-release tags
  • updateSelf — clones greywall at the target tag, runs make build-ci, atomically replaces the running binary (falls back to copy if cross-filesystem rename fails)

Internal

  • Added CheckLatestTag / CheckLatestTagFor for GitHub API tag resolution (stable and pre-release)
  • Replaced InstallOptions with SourceBuildOptions (TagBetaOutput)
  • Removed dead Install and helpers (resolveAssetURLdownloadAssetextractTarGz)

@Joyce-O Joyce-O marked this pull request as ready for review March 20, 2026 15:22
@Joyce-O
Copy link
Copy Markdown
Contributor Author

Joyce-O commented Mar 20, 2026

Moved update-cmd and fix-setup-and-docs

@Joyce-O Joyce-O closed this Mar 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant