feat(packaging): build .deb and .rpm packages#2466
Draft
gantoine wants to merge 1 commit into
Draft
Conversation
Add MakerDeb and MakerRpm to the Electron Forge config so Linux releases also produce .deb and .rpm packages alongside the AppImage and zip. Both declare mimeType x-scheme-handler/posthog-code, so installing registers the posthog-code:// deep-link handler system-wide via the generated .desktop file and the package manager's update-desktop-database trigger. The package name/bin yield /usr/bin/posthog-code, consistent with the AUR package. The publish-linux CI job (x64 + arm64) now installs fakeroot (maker-deb) and rpm (maker-rpm), so both arches are built and uploaded automatically. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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
Adds
.deband.rpmLinux packages to the release, alongside the existing AppImage and zip.forge.config.ts: addMakerDebandMakerRpm. Both declaremimeType: ["x-scheme-handler/posthog-code"], so installing registers theposthog-code://deep-link handler system-wide via the generated.desktopfile + the package manager'supdate-desktop-databasetrigger (the same mechanism VS Code's deb/rpm use). Packagename/binyield/usr/bin/posthog-code, consistent with the AUR package.package.json/ lockfile: add@electron-forge/maker-deband@electron-forge/maker-rpm.code-release.yml: thepublish-linuxjob (x64 + arm64) now installsfakeroot(maker-deb) andrpm(maker-rpm), so both arches build and upload automatically.scripts/build-linux-docker.sh: installfakeroot+rpmso localpnpm --filter code make:linuxdoesn't break on the new makers, and add optional--target/--targets(aliases:deb,rpm,zip,appimage, or a full maker package name) to build a subset.Why
Native Arch/Debian/Fedora-style installs that also register the URL scheme handler at install time, so the browser can launch the app after login without runtime registration.
Testing / validation
forge.config.tstypechecks against the real maker types (no errors from the new blocks).libgconf/GConf2dep is excluded for our Electron — packages should be installable with default deps on modern Ubuntu/Debian/Fedora.build-linux-docker.shtarget parser validated under bash across flag/=/comma/env forms (case-insensitive, rejects unknowns).apt-get install ./*.deb/dnf install ./*.rpmandxdg-mime query default x-scheme-handler/posthog-code.Notes
georges/linux-publish-aur).🤖 Generated with Claude Code