Skip to content

Commit fbd1741

Browse files
Add Ubuntu deb release artifact
1 parent cb8015a commit fbd1741

4 files changed

Lines changed: 14 additions & 3 deletions

File tree

‎.github/workflows/release.yml‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,11 @@ jobs:
194194
platform: linux
195195
target: AppImage
196196
arch: x64
197+
- label: Ubuntu .deb x64
198+
runner: blacksmith-32vcpu-ubuntu-2404
199+
platform: linux
200+
target: deb
201+
arch: x64
197202
- label: Windows x64
198203
runner: blacksmith-32vcpu-windows-2025
199204
platform: win
@@ -318,6 +323,7 @@ jobs:
318323
"release/*.dmg" \
319324
"release/*.zip" \
320325
"release/*.AppImage" \
326+
"release/*.deb" \
321327
"release/*.exe" \
322328
"release/*.blockmap" \
323329
"release/*.yml"; do
@@ -485,6 +491,7 @@ jobs:
485491
release-assets/*.dmg
486492
release-assets/*.zip
487493
release-assets/*.AppImage
494+
release-assets/*.deb
488495
release-assets/*.exe
489496
release-assets/*.blockmap
490497
release-assets/*.yml
@@ -505,6 +512,7 @@ jobs:
505512
release-assets/*.dmg
506513
release-assets/*.zip
507514
release-assets/*.AppImage
515+
release-assets/*.deb
508516
release-assets/*.exe
509517
release-assets/*.blockmap
510518
release-assets/*.yml

‎docs/release.md‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,11 @@ This document covers the unified release workflow for stable and nightly desktop
1010
- scheduled nightly at `09:00 UTC`
1111
- manual `workflow_dispatch` for either channel
1212
- Runs quality gates first: lint, typecheck, test.
13-
- Builds four artifacts in parallel for both channels:
13+
- Builds five artifacts in parallel for both channels:
1414
- macOS `arm64` DMG
1515
- macOS `x64` DMG
1616
- Linux `x64` AppImage
17+
- Ubuntu `x64` `.deb`
1718
- Windows `x64` NSIS installer
1819
- Publishes one GitHub Release with all produced files.
1920
- Stable tags with a suffix after `X.Y.Z` (for example `1.2.3-alpha.1`) are published as GitHub prereleases.
@@ -58,6 +59,7 @@ This document covers the unified release workflow for stable and nightly desktop
5859
- the app forwards it as an `Authorization: Bearer <token>` request header for updater HTTP calls.
5960
- Required release assets for updater:
6061
- platform installers (`.exe`, `.dmg`, `.AppImage`, plus macOS `.zip` for Squirrel.Mac update payloads)
62+
- Ubuntu `.deb` packages are published for direct installation, but Linux auto-update metadata still targets the AppImage build only.
6163
- channel metadata: `latest*.yml` for stable releases, `nightly*.yml` for nightly releases
6264
- `*.blockmap` files (used for differential downloads)
6365
- macOS metadata note:

‎package.json‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@
5050
"dist:desktop:dmg:arm64": "node scripts/build-desktop-artifact.ts --platform mac --target dmg --arch arm64",
5151
"dist:desktop:dmg:x64": "node scripts/build-desktop-artifact.ts --platform mac --target dmg --arch x64",
5252
"dist:desktop:linux": "node scripts/build-desktop-artifact.ts --platform linux --target AppImage --arch x64",
53+
"dist:desktop:deb": "node scripts/build-desktop-artifact.ts --platform linux --target deb --arch x64",
5354
"dist:desktop:win": "node scripts/build-desktop-artifact.ts --platform win --target nsis",
5455
"dist:desktop:win:arm64": "node scripts/build-desktop-artifact.ts --platform win --target nsis --arch arm64",
5556
"dist:desktop:win:x64": "node scripts/build-desktop-artifact.ts --platform win --target nsis --arch x64",

‎scripts/build-desktop-artifact.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -774,7 +774,7 @@ const buildDesktopArtifact = Effect.fn("buildDesktopArtifact")(function* (
774774
options.verbose,
775775
);
776776

777-
// electron-builder is filtering out stageResourcesDir directory in the AppImage for production
777+
// electron-builder filters this directory out of Linux bundles, so stage a copy that packaged builds can read.
778778
yield* fs.copy(stageResourcesDir, path.join(stageAppDir, "apps/desktop/prod-resources"));
779779

780780
const stagePackageJson: StagePackageJson = {
@@ -896,7 +896,7 @@ const buildDesktopArtifactCli = Command.make("build-desktop-artifact", {
896896
),
897897
target: Flag.string("target").pipe(
898898
Flag.withDescription(
899-
"Artifact target, for example dmg/AppImage/nsis (env: T3CODE_DESKTOP_TARGET).",
899+
"Artifact target, for example dmg/AppImage/deb/nsis (env: T3CODE_DESKTOP_TARGET).",
900900
),
901901
Flag.optional,
902902
),

0 commit comments

Comments
 (0)