Repository navigation
feat(packaging): phishkit desktop cask + phishkit-cli formula - #19
Closed
adamsiwiec1 wants to merge 1 commit into
Closed
adamsiwiec1 wants to merge 1 commit into
adamsiwiec1 wants to merge 1 commit into
Conversation
…hkit-cli formula phishkit is now a cask for the full Tauri desktop app (.dmg on macOS, AppImage on Linux), and phishkit-cli is a formula that builds the CLI only (phishkit + phishkit_ctl). The desktop .dmg/AppImage are not built yet, so the cask carries placeholder shas until a desktop build/sign job ships them. The CLI formula uses the real v0.1.1-alpha.1 source tarball sha. README and release.yml updated to match.
Contributor
Author
|
Closing as superseded — the live packaging on What landed since this branch was cut (merge-base
The cask/CLI split, two install lines, and automated tap bump this PR aimed for all shipped through |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this does
Splits the single Homebrew file into two packages, one per surface:
phishkitis now a cask that installs the full Tauri desktop app (phishkit.appon macOS, AppImage on Linux). Install withbrew install --cask openhat-security/tap/phishkit.phishkit-cliis a formula that builds the CLI only withcargo install --path apps/cliand installs bothphishkitandphishkit_ctl, plus the bundled phishlets. Install withbrew install openhat-security/tap/phishkit-cli.The old
packaging/homebrew/phishkit.rbwas a CLI formula. It is repurposed: the CLI formula moves topackaging/homebrew/phishkit-cli.rb, andphishkit.rbbecomes the desktop cask.Status of the artifacts
The CLI formula uses the real source tarball for
v0.1.1-alpha.1:url:.../archive/refs/tags/v0.1.1-alpha.1.tar.gzsha256:02d932e97cdba099c9f2640f83041241b793e8d0f298be748224b9888c1418a9The desktop cask carries placeholder shas. The release workflow only builds the CLI right now, so there is no
.dmgor AppImage on the release yet. Those artifacts have to be built and signed first (the pending desktop signed-updater build job) before the cask can resolve. The placeholders are markedREPLACE_ME_DESKTOP_*and the cask header documents the expected Tauri bundle names.Tap repo
openhat-security/homebrew-tapalready exists and has aCasks/dir. Its currentCasks/phishkit.rbactually installs the CLI binaries, so to match this split the tap needs:Formula/phishkit-cli.rbadded (the CLI, from this PR's file)Casks/phishkit.rbswapped to the desktop cask once the.dmg/AppImage artifacts existI left both ruby files under
packaging/homebrew/so they are ready to copy into the tap. I did not overwrite the tap's working CLI cask, since replacing it with a desktop placeholder now would break the currentbrew install --cask openhat-security/tap/phishkit.Also
Updated
release.ymlso the packaging job regeneratesphishkit-cli.rb(classPhishkitCli, both bins) instead of clobbering the new cask on the next tag, and updated the READMEs to show the two install lines and what each gives you.Test steps
@seth-stitik if you want to sanity check:
brew install openhat-security/tap/phishkit-clithenphishkit --helpandphishkit_ctl --help.dmg/AppImage ship, which is expected.