Skip to content

feat: #5695 ship Linux arm64 packages in releases - #5778

Merged
Jocs merged 2 commits into
marktext:developfrom
kukirin-ui:linux-arm64-builds
Oct 18, 2026
Merged

Jocs merged 2 commits into
marktext:developfrom
kukirin-ui:linux-arm64-builds

Conversation

@kukirin-ui

Copy link
Copy Markdown
Contributor

Closes #5695

Summary

Releases only ship x86_64 Linux packages, while Windows and macOS already get arm64 builds. This adds a linux-arm64 entry to the release matrix (ubuntu-22.04-arm, same Ubuntu version as the x64 release job) and to the PR build matrix (ubuntu-24.04-arm). Both are native arm64 runners, so electron-rebuild builds the native modules for arm64 without any cross-compiling.

  • New build:linux:x64 and build:linux:arm64 scripts, like the existing per-arch mac and win scripts. build:linux is unchanged for local builds.
  • The arm64 build makes AppImage, deb, rpm and tar.gz, named marktext-linux-arm64-<version>.<ext>. The x64 file names stay exactly the same, so existing download links keep working.
  • snap is left out on arm64. electron-builder only has its prebuilt snap template for x64, and an arm64 snap would need snapcraft on the runner.
  • merge-release-artifacts.py now also checks latest-linux-arm64.yml (the file the AppImage updater reads on arm64) the same way it already checks latest-linux.yml.
  • RELEASE.md is updated for the 6-entry matrix and the new asset count (29).

Type of change

  • Bug fix (non-breaking, fixes an issue)
  • New feature (non-breaking, adds functionality)
  • Breaking change (causes existing functionality to change)
  • Documentation update

Test plan

  • New tests added (or explain why not needed)
  • Manually tested on: Linux (GitHub Actions runners, details below)

There is no test suite for the workflows or the merge script, so we tested it like this:

Notes for reviewers

We did not run the tag-triggered release workflow itself, since it publishes a release. We tested the same build steps through the PR build. The arm64 smoke test ran on GitHub Actions arm64 runners with a virtual display (Xvfb), not on a physical arm64 machine or a desktop session. The reporter offered to test it on Kylin and Ubuntu arm64 hardware.


By submitting this pull request, I confirm that my contribution is made under the terms of the MIT license.

@Jocs

Jocs commented Oct 18, 2026

Copy link
Copy Markdown
Member

@kukirin-ui By the way, have you built and tested it on Linux ARM64? I don't have a Linux machine available for testing.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

The only remaining finding is a non-blocking documentation-index nit.

No open issues 🎉

What changed in this PR

Adds native Linux arm64 release builds while preserving existing x64 packages.

Changes:

  • Adds architecture-specific Linux build scripts and workflow jobs.
  • Produces arm64 AppImage, deb, rpm, and tar.gz packages.
  • Validates arm64 updater metadata and updates release documentation.
File Summary
scripts/​merge-release-artifacts.py Validates and merges arm64 Linux metadata.
packages/​website/​content/​docs/​dev/​RELEASE.md Documents the expanded release matrix; nit: regenerate the stale docs index.
packages/​desktop/​package.json Adds architecture-specific Linux build commands.
package.json Exposes the new Linux build scripts.
.github/​workflows/​release.yml Adds native Linux x64 and arm64 release jobs.
.github/​workflows/​build.yml Adds Linux arm64 PR build validation.

Review effort: Lite

@kukirin-ui

Copy link
Copy Markdown
Contributor Author

@Jocs Yes, on two setups.

GitHub's native arm64 runners (ubuntu-24.04-arm and ubuntu-22.04-arm): the deb installs with apt, marktext --version reports OS: Linux arm64, and both the installed app and the AppImage open a .md file and show the window. Run with screenshots and logs: https://github.com/kukirin-ui/marktext/actions/runs/39000909285

Real arm64 hardware: a Samsung Galaxy S26 (aarch64) running Ubuntu in proot with Termux:X11 as the display. The deb from this PR's build installs with apt, marktext --version shows v0.22.0-dev, Electron 42.1.0, OS: Linux arm64, and the editor opens a file, takes input and saves it back to disk. It needs --no-sandbox there, which comes from proot, not from the package.

One thing we noticed on the device: the first launch failed with libasound.so.2: cannot open shared object file until libasound2t64 was installed, so the deb may be missing an ALSA dependency. That would apply to the x64 deb too, so it is outside this PR. We can look at it separately if you like.

@Jocs
Jocs merged commit d2e1877 into marktext:develop Oct 18, 2026
13 checks passed
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.

[Feature] Provide Linux ARM64 (.deb) release builds

3 participants