Skip to content

feat: add multi-channel distribution via GoReleaser + nfpm#1247

Open
eleboucher wants to merge 42 commits into
SableClient:hazre/feat/add-mise-supportfrom
eleboucher:feat/add-distribution-channels
Open

feat: add multi-channel distribution via GoReleaser + nfpm#1247
eleboucher wants to merge 42 commits into
SableClient:hazre/feat/add-mise-supportfrom
eleboucher:feat/add-distribution-channels

Conversation

@eleboucher

@eleboucher eleboucher commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

Description

GoReleaser + nfpm multi-format packaging

  • .goreleaser.yaml — single config publishing to AUR, Homebrew Cask, Snap, Flatpak, winget, Scoop, and Nix, plus deb/rpm/apk/archlinux/ipk via nfpm with per-format dependency overrides. Secrets: AUR_KEY, HOMEBREW_TAP_GITHUB_TOKEN, SNAPCRAFT_STORE_CREDENTIALS.
  • nfpm.yaml — standalone nfpm config for deb/rpm/apk/archlinux/ipk builds with the same dependency matrix.
  • packaging/ — AUR sable-nightly-bin PKGBUILD + .install, Flatpak desktop/metainfo (moe.sable.Sable).
  • scripts/obtainium-generate.js — emits obtainium.json for one-tap Android sideload.

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings

AI disclosure:

  • Partially AI assisted (clarify which code was AI assisted and briefly explain what it does).
  • Fully AI generated (explain what all the generated code does in moderate detail).

hazre and others added 19 commits July 23, 2026 12:11
Signed-off-by: hazre <mail@haz.re>
Signed-off-by: hazre <mail@haz.re>
Signed-off-by: hazre <mail@haz.re>
Signed-off-by: hazre <mail@haz.re>
- Add nfpm.yaml declarative config with contents, deps, per-packager overrides
- Replace fpm CLI invocations in package.sh with nfpm pkg
- Manage appimagetool and nfpm via mise file task tools
- Remove manual appimagetool download + sha256 verification
- Fix stale paths from scripts/cef/ move (ROOT, copy-libs reference, usage)
- Add version extraction guard and appimagetool availability check

Signed-off-by: hazre <mail@haz.re>
Signed-off-by: hazre <mail@haz.re>
Signed-off-by: hazre <mail@haz.re>
Signed-off-by: hazre <mail@haz.re>
Signed-off-by: hazre <mail@haz.re>
Signed-off-by: hazre <mail@haz.re>
Signed-off-by: hazre <mail@haz.re>
Signed-off-by: hazre <mail@haz.re>
Signed-off-by: hazre <mail@haz.re>
Signed-off-by: hazre <mail@haz.re>
Signed-off-by: hazre <mail@haz.re>
Signed-off-by: hazre <mail@haz.re>
@eleboucher
eleboucher requested review from 7w1 and hazre as code owners July 23, 2026 12:27
@eleboucher
eleboucher force-pushed the feat/add-distribution-channels branch from e6c39ae to d8ff704 Compare July 23, 2026 13:04
@7w1 7w1 added the internal label Jul 23, 2026
@eleboucher
eleboucher force-pushed the feat/add-distribution-channels branch from d8ff704 to 174c324 Compare July 23, 2026 17:36
hazre added 5 commits July 23, 2026 19:51
Signed-off-by: hazre <mail@haz.re>
Signed-off-by: hazre <mail@haz.re>
Signed-off-by: hazre <mail@haz.re>
Signed-off-by: hazre <mail@haz.re>
hazre and others added 14 commits July 23, 2026 19:51
- Add nfpm.yaml declarative config with contents, deps, per-packager overrides
- Replace fpm CLI invocations in package.sh with nfpm pkg
- Manage appimagetool and nfpm via mise file task tools
- Remove manual appimagetool download + sha256 verification
- Fix stale paths from scripts/cef/ move (ROOT, copy-libs reference, usage)
- Add version extraction guard and appimagetool availability check

Signed-off-by: hazre <mail@haz.re>
Signed-off-by: hazre <mail@haz.re>
Signed-off-by: hazre <mail@haz.re>
Signed-off-by: hazre <mail@haz.re>
Signed-off-by: hazre <mail@haz.re>
Signed-off-by: hazre <mail@haz.re>
Signed-off-by: hazre <mail@haz.re>
Signed-off-by: hazre <mail@haz.re>
Signed-off-by: hazre <mail@haz.re>
Signed-off-by: hazre <mail@haz.re>
Signed-off-by: hazre <mail@haz.re>
Signed-off-by: hazre <mail@haz.re>
@hazre
hazre force-pushed the hazre/feat/add-mise-support branch from 2d3b972 to eb27198 Compare July 23, 2026 17:51

@hazre hazre left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also merge conflicts :/

Comment thread .github/workflows/tauri-build.yml Outdated
Comment thread .github/workflows/tauri-build.yml Outdated
Comment thread .github/workflows/tauri-build.yml Outdated
- name: Download nightly .deb and compute checksum
shell: bash
run: |
curl -fsSL "https://github.com/${{ github.repository }}/releases/download/${TAG}/Sable-${VERSION}-linux-x86_64.deb" -o sable.deb

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we not use artifacts to pass stuff around instead? https://docs.github.com/en/actions/tutorials/store-and-share-data

Comment thread packaging/flatpak/moe.sable.Sable.metainfo.xml
Comment thread .goreleaser.yaml
Comment thread .goreleaser.yaml Outdated
@hazre

hazre commented Jul 23, 2026

Copy link
Copy Markdown
Member

Another thing is. I don't like that tauri ci stuff is massive monolith file. can we split it up into multiple workflows/actions? and also its hella messey, we should move any scripting stuff into dedicated js scripts under .github/workflows/scripts to abstract away the complexity.

@hazre

hazre commented Jul 23, 2026

Copy link
Copy Markdown
Member

also ideally sable and nightly setup are identical and we just have a thing that at start of the workflow detects if its a nightly or sable release. to avoid DRY

@eleboucher

Copy link
Copy Markdown
Contributor Author

Agreed on both points. The line-level comments are addressed in the latest push (mise bootstrap, pinned actions, artifacts, winget fork, nix skipped).

The monolith split + script extraction is a bigger structural refactor. I'll tackle it in a follow-up to keep this PR reviewable — splitting tauri-build.yml into per-concern workflows (e.g. build-desktop.yml, build-mobile.yml, distribute.yml) and extracting the inline bash scripts into .github/scripts/*.mjs like the existing set-tauri-version.mjs and build-updater-manifest.mjs pattern.

Comment thread .github/workflows/tauri-build.yml Outdated
@7w1
7w1 force-pushed the hazre/feat/add-mise-support branch from eb27198 to f6c5fec Compare July 24, 2026 02:53
@eleboucher
eleboucher requested a review from hazre July 24, 2026 06:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants