Skip to content

feat(packaging): phishkit desktop cask + phishkit-cli formula - #19

Closed
adamsiwiec1 wants to merge 1 commit into
mainfrom
feat/brew-desktop-cask-and-cli
Closed

adamsiwiec1 wants to merge 1 commit into
mainfrom
feat/brew-desktop-cask-and-cli

Conversation

@adamsiwiec1

Copy link
Copy Markdown
Contributor

What this does

Splits the single Homebrew file into two packages, one per surface:

  • phishkit is now a cask that installs the full Tauri desktop app (phishkit.app on macOS, AppImage on Linux). Install with brew install --cask openhat-security/tap/phishkit.
  • phishkit-cli is a formula that builds the CLI only with cargo install --path apps/cli and installs both phishkit and phishkit_ctl, plus the bundled phishlets. Install with brew install openhat-security/tap/phishkit-cli.

The old packaging/homebrew/phishkit.rb was a CLI formula. It is repurposed: the CLI formula moves to packaging/homebrew/phishkit-cli.rb, and phishkit.rb becomes 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.gz
  • sha256: 02d932e97cdba099c9f2640f83041241b793e8d0f298be748224b9888c1418a9

The desktop cask carries placeholder shas. The release workflow only builds the CLI right now, so there is no .dmg or 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 marked REPLACE_ME_DESKTOP_* and the cask header documents the expected Tauri bundle names.

Tap repo

openhat-security/homebrew-tap already exists and has a Casks/ dir. Its current Casks/phishkit.rb actually installs the CLI binaries, so to match this split the tap needs:

  • Formula/phishkit-cli.rb added (the CLI, from this PR's file)
  • Casks/phishkit.rb swapped to the desktop cask once the .dmg/AppImage artifacts exist

I 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 current brew install --cask openhat-security/tap/phishkit.

Also

Updated release.yml so the packaging job regenerates phishkit-cli.rb (class PhishkitCli, 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-cli then phishkit --help and phishkit_ctl --help
  • The desktop cask will fail to fetch until the signed .dmg/AppImage ship, which is expected.

…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.

Copy link
Copy Markdown
Contributor Author

Closing as superseded — the live packaging on main and in the tap has moved past this PR, and merging it would regress a working setup.

What landed since this branch was cut (merge-base 2b02a01):

  • release.yml (ci(release): build desktop .dmg and auto-bump the Homebrew tap on tag #22, plus follow-ups d5cec11 / 2d82ddf): main now builds the desktop .dmg (macOS arm64 + x86_64) with Tauri, installs the Go toolchain for the vendored evilginx, publishes the CLI archives, and opens an automated PR on openhat-security/homebrew-tap that bumps both the phishkit and phishkit-cli casks. This PR's release.yml only regenerates a phishkit-cli.rb formula and would conflict with / undo that.
  • Tap is already live and real: openhat-security/homebrew-tap has Casks/phishkit.rb (desktop app, app "phishkit.app", depends on the CLI cask) and Casks/phishkit-cli.rb (prebuilt phishkit + phishkit_ctl binaries), both at v0.1.1-alpha.4 with real sha256s that resolve today. This PR's phishkit.rb carries REPLACE_ME_DESKTOP_* placeholder shas and phishkit-cli.rb is a cargo-build-from-source formula — swapping either into the tap would break the current brew install --cask openhat-security/tap/phishkit.
  • README: this PR's wording ("desktop builds from source for now, signed .dmg/AppImage still being set up") is now inaccurate — the desktop .dmg ships on the release and the cask resolves.

The cask/CLI split, two install lines, and automated tap bump this PR aimed for all shipped through main and releases up to v0.1.1-alpha.5, with a better design (prebuilt-binary cask instead of a source formula). Nothing unique remains to salvage, so closing rather than force-merging obsolete packaging.

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