Skip to content

AI-native knowledge base & Evernote/Obsidian alternative with instant sync & native MCP. Free on Cloudflare or self-hosted via Docker.

feat(desktop): add Linux AppImage preview

tianma-if26ee127e90af
diff --git a/.github/workflows/desktop-build.yml b/.github/workflows/desktop-build.yml
index 476780fa..4eaa3548 100644
--- a/.github/workflows/desktop-build.yml
+++ b/.github/workflows/desktop-build.yml
@@ -4,7 +4,7 @@ on:
workflow_dispatch:
inputs:
release_tag:
- description: "Prepare macOS and Windows assets on this existing Draft Release (optional)"
+ description: "Prepare macOS, Windows, and Linux assets on this existing Draft Release (optional)"
required: false
type: string
release:
@@ -131,8 +131,10 @@ jobs:
--pattern 'latest-windows.json' \
--pattern 'latest-windows.json.sig' \
--pattern 'SHA256SUMS-windows.txt' \
+ --pattern 'EdgeEver-*-linux-x64.AppImage' \
+ --pattern 'SHA256SUMS-linux.txt' \
--dir "$RUNNER_TEMP/native-assets"
- test "$(find "$RUNNER_TEMP/native-assets" -type f | wc -l | tr -d ' ')" = "14"
+ test "$(find "$RUNNER_TEMP/native-assets" -type f | wc -l | tr -d ' ')" = "16"
gh release upload "$CURRENT_TAG" "$RUNNER_TEMP/native-assets/"* \
--repo "$GITHUB_REPOSITORY" \
--clobber
@@ -462,13 +464,136 @@ jobs:
if-no-files-found: error
retention-days: 14
+ linux:
+ needs: release-plan
+ if: >-
+ ${{
+ always() &&
+ github.repository == 'tianma-if/edgeever' &&
+ (
+ (github.event_name == 'workflow_dispatch' && inputs.release_tag == '') ||
+ (
+ github.event_name == 'workflow_dispatch' &&
+ inputs.release_tag != '' &&
+ needs.release-plan.result == 'success' &&
+ needs.release-plan.outputs.asset_ready == 'false' &&
+ needs.release-plan.outputs.rebuild == 'true'
+ )
+ )
+ }}
+ name: Linux x64 AppImage Preview
+ # The Rust sidecar is dynamically linked. Pinning the oldest supported
+ # Ubuntu runner keeps its glibc requirement at or below 2.35.
+ runs-on: ubuntu-22.04
+ steps:
+ - name: Check out source
+ uses: actions/checkout@v5
+
+ - name: Set up Bun
+ uses: oven-sh/setup-bun@v2
+
+ - name: Set up Rust
+ uses: dtolnay/rust-toolchain@stable
+
+ - name: Cache Bun dependencies
+ uses: actions/cache@v5
+ with:
+ path: ~/.bun/install/cache
+ key: ${{ runner.os }}-x64-bun-${{ hashFiles('bun.lock') }}
+
+ - name: Cache Rust dependencies and sidecar builds
+ uses: actions/cache@v5
+ with:
+ path: |
+ ~/.cargo/registry
+ ~/.cargo/git
+ crates/desktop-sidecar/target
+ key: ${{ runner.os }}-x64-rust-${{ hashFiles('crates/desktop-sidecar/Cargo.lock', 'crates/desktop-sidecar/**/*.rs') }}
+ restore-keys: |
+ ${{ runner.os }}-x64-rust-
+
+ - name: Cache Electron downloads
+ uses: actions/cache@v5
+ with:
+ path: |
+ ~/.cache/electron
+ ~/.cache/electron-builder
+ key: ${{ runner.os }}-x64-electron-${{ hashFiles('bun.lock', 'apps/desktop/package.json') }}
+
+ - name: Install dependencies
+ run: |
+ for attempt in 1 2 3; do
+ if bun install --frozen-lockfile; then
+ exit 0
+ fi
+ if [[ "$attempt" = "3" ]]; then
+ exit 1
+ fi
+ sleep "$((15 * attempt))"
+ done
+
+ - name: Build Web renderer
+ env:
+ EDGE_EVER_DESKTOP_BUILD: "1"
+ run: bun run build:web
+
+ - name: Build x64 Rust sidecar
+ run: cargo build --manifest-path crates/desktop-sidecar/Cargo.toml --release
+
+ - name: Package Linux AppImage
+ env:
+ EDGE_EVER_DESKTOP_ARCH: x64
+ EDGE_EVER_DESKTOP_TARGET: linux
+ run: bun scripts/run-desktop-builder.mjs --publish never
+
+ - name: Verify Linux package contents, architecture, and glibc baseline
+ env:
+ EDGE_EVER_DESKTOP_ARCH: x64
+ EDGE_EVER_VERIFY_TARGET: linux
+ run: bun scripts/verify-desktop-package.mjs
+
+ - name: Run packaged Linux sidecar integration tests
+ env:
+ EDGE_EVER_SIDECAR_PATH: ${{ github.workspace }}/release/desktop/linux-unpacked/resources/sidecar/edgeever-sidecar
+ EDGE_EVER_MIGRATIONS_PATH: ${{ github.workspace }}/release/desktop/linux-unpacked/resources/migrations
+ run: bun scripts/test-desktop-sidecar.mjs
+
+ - name: Verify packaged Linux first launch
+ run: |
+ executable=""
+ for candidate in release/desktop/linux-unpacked/EdgeEver release/desktop/linux-unpacked/edgeever; do
+ if [[ -x "$candidate" ]]; then
+ executable="$candidate"
+ break
+ fi
+ done
+ test -n "$executable"
+ xvfb-run -a bun run verify:packaged-desktop-startup -- "$executable"
+
+ - name: Create Linux checksum
+ run: |
+ version="$(node -p "JSON.parse(require('fs').readFileSync('apps/desktop/package.json', 'utf8')).version")"
+ cd release/desktop
+ sha256sum "EdgeEver-${version}-linux-x64.AppImage" > SHA256SUMS-linux.txt
+ sha256sum --check SHA256SUMS-linux.txt
+
+ - name: Stage Linux Preview assets
+ uses: actions/upload-artifact@v6
+ with:
+ name: edgeever-desktop-Linux-x64-staging
+ path: |
+ release/desktop/EdgeEver-*-linux-x64.AppImage
+ release/desktop/SHA256SUMS-linux.txt
+ if-no-files-found: error
+ retention-days: 14
+
native-build-timings:
- needs: [desktop, windows]
+ needs: [desktop, windows, linux]
if: >-
${{
always() &&
github.repository == 'tianma-if/edgeever' &&
- (needs.desktop.result != 'skipped' || needs.windows.result != 'skipped')
+ (needs.desktop.result != 'skipped' || needs.windows.result != 'skipped' || needs.linux.result != 'skipped')
}}
name: Report desktop build timings
runs-on: ubuntu-latest
@@ -499,13 +624,14 @@ jobs:
retention-days: 90
desktop-assets:
- needs: [release-plan, desktop, windows]
+ needs: [release-plan, desktop, windows, linux]
if: >-
${{
always() &&
github.repository == 'tianma-if/edgeever' &&
needs.desktop.result == 'success' &&
needs.windows.result == 'success' &&
+ needs.linux.result == 'success' &&
(
(github.event_name == 'workflow_dispatch' && inputs.release_tag == '') ||
(
@@ -534,6 +660,7 @@ jobs:
run: |
version="$(node -p "JSON.parse(require('fs').readFileSync('apps/desktop/package.json', 'utf8')).version")"
node scripts/create-mac-update-metadata.mjs release/desktop "$version"
+ (cd release/desktop && sha256sum --check SHA256SUMS-linux.txt)
asset_ready="$(
find release/desktop -maxdepth 1 -type f -exec basename {} \; |
node scripts/check-native-release-assets.mjs desktop true "v${version}" "$version" allow-missing-windows-signature
@@ -553,7 +680,7 @@ jobs:
- name: Upload combined desktop installers and metadata
uses: actions/upload-artifact@v6
with:
- name: edgeever-desktop-macOS-and-Windows-x64
+ name: edgeever-desktop-macOS-Windows-and-Linux-x64
path: release/desktop/*
if-no-files-found: error
retention-days: 14
@@ -594,3 +721,38 @@ jobs:
- name: Verify signature and installer digests
run: node scripts/verify-windows-update-release.mjs release/desktop
+
+ linux-release-audit:
+ needs: release-plan
+ if: >-
+ ${{
+ always() &&
+ github.repository == 'tianma-if/edgeever' &&
+ needs.release-plan.result == 'success' &&
+ needs.release-plan.outputs.asset_ready == 'true' &&
+ (
+ github.event_name == 'release' ||
+ (github.event_name == 'workflow_dispatch' && inputs.release_tag != '')
+ )
+ }}
+ name: Audit Linux Preview asset
+ runs-on: ubuntu-22.04
+ steps:
+ - name: Download Linux release assets
+ env:
+ GH_TOKEN: ${{ github.token }}
+ RELEASE_TAG: ${{ inputs.release_tag || github.event.release.tag_name }}
+ run: |
+ mkdir -p release/desktop
+ gh release download "$RELEASE_TAG" \
+ --repo "$GITHUB_REPOSITORY" \
+ --pattern 'EdgeEver-*-linux-x64.AppImage' \
+ --pattern 'SHA256SUMS-linux.txt' \
+ --dir release/desktop
+
+ - name: Verify Linux checksum
+ run: |
+ app_image="$(find release/desktop -maxdepth 1 -name 'EdgeEver-*-linux-x64.AppImage' -type f -print -quit)"
+ test -n "$app_image"
+ test "$(find release/desktop -maxdepth 1 -name 'EdgeEver-*-linux-x64.AppImage' -type f | wc -l | tr -d ' ')" = "1"
+ (cd release/desktop && sha256sum --check SHA256SUMS-linux.txt)
diff --git a/AGENTS.md b/AGENTS.md
index c28b18c2..6434ac58 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -19,13 +19,13 @@
1. **Fork 工作流边界**:配置 GitHub Actions 时必须考虑大量用户会 Fork 仓库进行自部署;仅官方仓库需要的 Job 必须使用 `github.repository == 'tianma-if/edgeever'` 门禁,严禁在下游 Fork 中分配 Runner 或执行。
2. **版本号与基线**:`vX.Y.Z`(非 Draft/Prerelease)。发布须显式 `--bump patch|minor|major`(脚本不自动选级);按 SemVer 选择,**禁止因发版节奏把用户可感知的新能力或新平台压成 patch**。递增根目录 `package.json`;含移动端修改时同步 `apps/mobile/app.json` 的 `expo.version` 并递增 `android.versionCode`。上一个正式 Release 为审计基线。
-3. **跨平台 Release 资产**:每个正式 Release 页面必须同时包含 macOS arm64 DMG、macOS x64 DMG、Windows x64 Preview 安装包和 Android arm64 APK。Windows Preview 未使用 Authenticode 签名时必须同时提供经仓库外 Ed25519 私钥签名的更新清单,并在发布前通过独立下载与摘要审计。若本次未修改对应原生运行时代码、依赖、配置或构建工具,直接复用上一个正式 Release 中已验证的原始资产,保留原文件名与校验和,禁止仅为匹配新版本号而重命名。官方仓库正式 Release 中的 Android APK 必须使用固定的 Google Play 应用签名证书;本地上传证书签名的 APK 只能作为 Draft 临时资产,未经 Play 签名替换和发布前门禁核验不得公开。
+3. **跨平台 Release 资产**:每个正式 Release 页面必须同时包含 macOS arm64 DMG、macOS x64 DMG、Windows x64 Preview 安装包、Linux x64 AppImage Preview 和 Android arm64 APK。Windows Preview 未使用 Authenticode 签名时必须同时提供经仓库外 Ed25519 私钥签名的更新清单;Linux Preview 必须包含独立 SHA-256 清单;两者均须在发布前通过独立下载与摘要审计。若本次未修改对应原生运行时代码、依赖、配置或构建工具,直接复用上一个正式 Release 中已验证的原始资产,保留原文件名与校验和,禁止仅为匹配新版本号而重命名。官方仓库正式 Release 中的 Android APK 必须使用固定的 Google Play 应用签名证书;本地上传证书签名的 APK 只能作为 Draft 临时资产,未经 Play 签名替换和发布前门禁核验不得公开。
4. **验证命令**:必须通过 `bun run typecheck`、`bun run typecheck:mobile` 和 `bun run build:web`。
5. **测试职责边界**:正式 Release 必须先在官方仓库及与下游一致的 Ubuntu 环境通过完整非 E2E 测试,严禁将上游自身的测试失败转嫁给下游 Fork 发现。只读部署 Fork 仅同步产品快照且不运行测试;只有显式保留定制改动的 Fork 才验证合并结果,失败时必须保持 `main` 与生产环境不变。
6. **原生资产构建与复用**:由 `scripts/plan-native-release.mjs` 决定重建或复用;桌面资产包含 `apps/web`。修改判定规则时同步更新测试。移动端重建使用 `bun run build:android:apk:local`,签名配置保存在仓库外。
7. **Draft 内准备资产**:通过带 `release_tag` 的 `workflow_dispatch` 在 Draft 中准备并验证资产;Android 重建时须在 Draft 阶段完成 Google Play 交付、用 Play 签名 APK 替换临时资产并通过独立签名门禁;`published` 事件只审计,禁止重新构建或上传,签名不符时恢复 Draft。
8. **桌面验证职责**:桌面 Release 工作流负责测试、包结构检查、签名与公证;代理不再重复下载 Draft 或执行本地首次启动验收,除非用户明确要求。
-9. **发布后更新**:正式发布后,发布流程默认不得下载、覆盖安装或启动 `/Applications/EdgeEver.app`;已安装的桌面端通过应用内自动更新机制获取新版。仅在用户明确要求时使用 `--install-desktop` 执行原有安装验收,功能体验由用户在实际使用中验证。
+9. **发布后更新**:正式发布后,发布流程默认不得下载、覆盖安装或启动 `/Applications/EdgeEver.app`;已安装的 macOS 与 Windows 桌面端通过应用内自动更新机制获取新版,Linux Preview 在完成真实 AppImage 跨版本验证前保持手动更新。仅在用户明确要求时使用 `--install-desktop` 执行原有安装验收,功能体验由用户在实际使用中验证。
10. **失败处理**:Release 阻塞工作流或资产审计失败时保持或恢复 Draft,修复后重跑;不得公开已知损坏的 Release。GHCR 镜像属于阻塞门禁;腾讯云 TCR 公共镜像由独立工作流在正式发布后异步同步和审计,其耗时或失败不得阻塞 GitHub Release 或将已发布版本恢复为 Draft。
11. **Release 说明结构**:使用中英文双语格式(正文禁止包含字面量 `\n`),只写用户可感知的变化、影响以及必要的升级或迁移提醒。类型检查、构建命令、签名、公证、资产复用等技术验证细节保留在 Actions 和关联 Issue 中,不写入公开 Release 正文。功能/修复关联对应 Issue 并标记 Label,发布后回链并关闭 Issue。正文结构:
diff --git a/README.md b/README.md
index e0536859..31d7f753 100644
--- a/README.md
+++ b/README.md
@@ -40,11 +40,14 @@ The public demo resets every day at 3:00 AM (China Standard Time) and restores s
<p>
<a href="https://github.com/tianma-if/edgeever/releases/latest"><img src="assets/readme/platforms/macos.svg" alt="Download EdgeEver for macOS" width="40" height="40" /></a>&nbsp;&nbsp;
<a href="https://github.com/tianma-if/edgeever/releases/latest"><img src="assets/readme/platforms/windows.svg" alt="Download EdgeEver for Windows" width="40" height="40" /></a>&nbsp;&nbsp;
+ <a href="https://github.com/tianma-if/edgeever/releases/latest"><img src="assets/readme/platforms/linux.svg" alt="Download the EdgeEver Linux x86_64 AppImage Preview" width="40" height="40" /></a>&nbsp;&nbsp;
<a href="https://play.google.com/store/apps/details?id=org.edgeever.mobile"><img src="assets/readme/platforms/google-play.svg" alt="Download EdgeEver for Android from Google Play" width="40" height="40" /></a>&nbsp;&nbsp;
<a href="https://apps.apple.com/us/app/edgeever/id6792625631"><img src="assets/readme/platforms/app-store.svg" alt="Download EdgeEver for iOS from the App Store" width="40" height="40" /></a>
</p>
The iOS app requires an Apple ID from outside mainland China.
+The Linux x86_64 AppImage is a Preview with manual updates; see the
+[Linux Preview guide](docs/linux-preview.md).
## Features
@@ -71,7 +74,7 @@ The iOS app requires an Apple ID from outside mainland China.
- **Offline Drafts & Queueing**: Draft and edit uninterrupted while offline; changes automatically sync once reconnected.
- **Brute-Force Login Protection**: Server-side account- and IP-based failed-login throttling with automatic cooldowns helps protect private notes against brute-force and password-spraying attacks.
- **Multi-Tenant Account Isolation**: Host multiple user accounts on a single instance with strictly partitioned spaces and clean admin account management.
-- **Everywhere You Need It**: Available on the Web, [Android](https://play.google.com/store/apps/details?id=org.edgeever.mobile), [macOS](https://github.com/tianma-if/edgeever/releases), [Windows](https://github.com/tianma-if/edgeever/releases/latest), and [iOS](https://apps.apple.com/us/app/edgeever/id6792625631); the Web Clipper supports [Chrome](https://chromewebstore.google.com/detail/edgeever-web-clipper/gjadpfmanienmlofajibkfkkpfdkclgo), [Edge](https://chromewebstore.google.com/detail/edgeever-web-clipper/gjadpfmanienmlofajibkfkkpfdkclgo), and [Firefox](https://addons.mozilla.org/firefox/addon/edgeever-web-clipper/).
+- **Everywhere You Need It**: Available on the Web, [Android](https://play.google.com/store/apps/details?id=org.edgeever.mobile), [macOS](https://github.com/tianma-if/edgeever/releases), [Windows](https://github.com/tianma-if/edgeever/releases/latest), [Linux x86_64 Preview](https://github.com/tianma-if/edgeever/releases/latest), and [iOS](https://apps.apple.com/us/app/edgeever/id6792625631); the Web Clipper supports [Chrome](https://chromewebstore.google.com/detail/edgeever-web-clipper/gjadpfmanienmlofajibkfkkpfdkclgo), [Edge](https://chromewebstore.google.com/detail/edgeever-web-clipper/gjadpfmanienmlofajibkfkkpfdkclgo), and [Firefox](https://addons.mozilla.org/firefox/addon/edgeever-web-clipper/).
## Deployment
diff --git a/README.zh-CN.md b/README.zh-CN.md
index 0c03fe9e..3c835100 100644
--- a/README.zh-CN.md
+++ b/README.zh-CN.md
@@ -40,11 +40,14 @@ EdgeEver 是一款现代化的开源笔记与个人知识库工作区。它为
<p>
<a href="https://github.com/tianma-if/edgeever/releases/latest"><img src="assets/readme/platforms/macos.svg" alt="下载 macOS 客户端" width="40" height="40" /></a>&nbsp;&nbsp;
<a href="https://github.com/tianma-if/edgeever/releases/latest"><img src="assets/readme/platforms/windows.svg" alt="下载 Windows 客户端" width="40" height="40" /></a>&nbsp;&nbsp;
+ <a href="https://github.com/tianma-if/edgeever/releases/latest"><img src="assets/readme/platforms/linux.svg" alt="下载 Linux x86_64 AppImage 预览版" width="40" height="40" /></a>&nbsp;&nbsp;
<a href="https://play.google.com/store/apps/details?id=org.edgeever.mobile"><img src="assets/readme/platforms/google-play.svg" alt="从 Google Play 下载 Android 客户端" width="40" height="40" /></a>&nbsp;&nbsp;
<a href="https://apps.apple.com/us/app/edgeever/id6792625631"><img src="assets/readme/platforms/app-store.svg" alt="从 App Store 下载 iOS 客户端" width="40" height="40" /></a>
</p>
iOS 客户端需要使用非中国大陆区 Apple ID 下载。
+Linux x86_64 AppImage 当前为手动更新的预览版,详见
+[Linux 预览版说明](docs/linux-preview.zh-CN.md)。
## 功能
@@ -71,7 +74,7 @@ iOS 客户端需要使用非中国大陆区 Apple ID 下载。
- **离线草稿与同步队列**:网络不稳定时自动保存离线草稿,恢复连线后自动入队同步。
- **登录防暴力破解保护**:服务端按账号与 IP 记录失败登录并自动限流、冷却,降低暴力破解与密码喷洒攻击风险,守护私密笔记数据。
- **多账号与个人空间隔离**:单实例支持创建多个独立账号,用户数据相互隔离,配备直观的管理员账号管理与安全加密机制。
-- **全平台多端覆盖**:支持 Web、[Android](https://play.google.com/store/apps/details?id=org.edgeever.mobile)、[macOS](https://github.com/tianma-if/edgeever/releases)、[Windows](https://github.com/tianma-if/edgeever/releases/latest) 和 [iOS](https://apps.apple.com/us/app/edgeever/id6792625631);网页裁剪插件支持 [Chrome](https://chromewebstore.google.com/detail/edgeever-web-clipper/gjadpfmanienmlofajibkfkkpfdkclgo)、[Edge](https://chromewebstore.google.com/detail/edgeever-web-clipper/gjadpfmanienmlofajibkfkkpfdkclgo) 和 [Firefox](https://addons.mozilla.org/zh-CN/firefox/addon/edgeever-web-clipper/)。
+- **全平台多端覆盖**:支持 Web、[Android](https://play.google.com/store/apps/details?id=org.edgeever.mobile)、[macOS](https://github.com/tianma-if/edgeever/releases)、[Windows](https://github.com/tianma-if/edgeever/releases/latest)、[Linux x86_64 预览版](https://github.com/tianma-if/edgeever/releases/latest) 和 [iOS](https://apps.apple.com/us/app/edgeever/id6792625631);网页裁剪插件支持 [Chrome](https://chromewebstore.google.com/detail/edgeever-web-clipper/gjadpfmanienmlofajibkfkkpfdkclgo)、[Edge](https://chromewebstore.google.com/detail/edgeever-web-clipper/gjadpfmanienmlofajibkfkkpfdkclgo) 和 [Firefox](https://addons.mozilla.org/zh-CN/firefox/addon/edgeever-web-clipper/)。
## 部署
diff --git a/apps/desktop/README.md b/apps/desktop/README.md
index 207b00cd..74e33226 100644
--- a/apps/desktop/README.md
+++ b/apps/desktop/README.md
@@ -78,9 +78,17 @@ runs. When a GitHub Release is published, the workflow first compares it with
the previous formal Release. It rebuilds and publishes the installer through
electron-builder only when Electron, the Rust sidecar, native dependencies,
packaging configuration, or desktop build tooling changed. Web-only Releases
-reuse the previous verified arm64/x64 DMGs, updater ZIPs, blockmaps, and
-combined update metadata without renaming them, so the macOS runners and
-signing pipeline are not scheduled unnecessarily.
+reuse the previous verified macOS DMGs and updater metadata, Windows Preview
+installer, and Linux Preview AppImage without renaming them, so native runners
+and signing pipelines are not scheduled unnecessarily.
+
+Formal Releases also contain a Linux x64 AppImage Preview built on Ubuntu
+22.04. The workflow verifies the Electron and Rust ELF architectures, caps the
+sidecar requirement at glibc 2.35, runs the packaged sidecar integration suite,
+performs an Xvfb first-launch smoke test, and publishes a matching
+`SHA256SUMS-linux.txt`. Linux Preview updates are manual until a real
+AppImage-to-AppImage update has passed the cross-version release gate. See
+[`docs/linux-preview.md`](../../docs/linux-preview.md).
The desktop Settings page exposes the sidecar's local backup list. Restoring a
backup creates an additional protective backup first, restores the SQLite
diff --git a/apps/desktop/src/main/desktop-update-flow.test.mjs b/apps/desktop/src/main/desktop-update-flow.test.mjs
index 09afc6d3..4db93990 100644
--- a/apps/desktop/src/main/desktop-update-flow.test.mjs
+++ b/apps/desktop/src/main/desktop-update-flow.test.mjs
@@ -8,6 +8,14 @@ const systemInfoSource = readFileSync(new URL("../../../web/src/components/setti
const notebookPaneSource = readFileSync(new URL("../../../web/src/components/NotebookPane.tsx", import.meta.url), "utf8");
describe("desktop update flow", () => {
+ test("keeps Linux Preview updates manual until a cross-version AppImage test passes", () => {
+ expect(mainSource).toContain('process.platform === "linux" || !app.isPackaged');
+ expect(mainSource).toContain("Linux Preview updates stay manual");
+ expect(mainSource).toContain('autoUpdateSupported: process.platform !== "linux"');
+ expect(systemInfoSource).toContain("desktopAutoUpdateSupported");
+ expect(systemInfoSource).toContain('t("systemInfo.desktopDownloadLatest")');
+ });
+
test("downloads updates in the background and relaunches after installation", () => {
expect(mainSource).toContain('autoUpdater.autoDownload = process.platform !== "win32"');
expect(mainSource).toContain("autoUpdater.autoRunAppAfterInstall = true");
diff --git a/apps/desktop/src/main/index.mjs b/apps/desktop/src/main/index.mjs
index 7326c883..0fb6e9b7 100644
--- a/apps/desktop/src/main/index.mjs
+++ b/apps/desktop/src/main/index.mjs
@@ -185,6 +185,7 @@ const writeDiagnostic = async (event, details = {}) => {
const desktopRuntimeSystemInfo = () => ({
appVersion: app.getVersion(),
+ autoUpdateSupported: process.platform !== "linux",
platform: process.platform,
architecture: process.arch,
osVersion: process.getSystemVersion?.() || "unknown",
@@ -797,7 +798,7 @@ const promptForDownloadedUpdate = async (version) => {
};
const checkForDesktopUpdate = (reason, { force = false, throwOnError = false } = {}) => {
- if (!app.isPackaged || process.env.EDGE_EVER_DISABLE_AUTO_UPDATE === "1" || updateState === "downloaded") {
+ if (process.platform === "linux" || !app.isPackaged || process.env.EDGE_EVER_DISABLE_AUTO_UPDATE === "1" || updateState === "downloaded") {
return Promise.resolve(null);
}
if (updateCheckInFlight) {
@@ -843,7 +844,9 @@ const checkForDesktopUpdate = (reason, { force = false, throwOnError = false } =
};
const configureAutoUpdater = () => {
- if (!app.isPackaged || process.env.EDGE_EVER_DISABLE_AUTO_UPDATE === "1") return;
+ // Linux Preview updates stay manual until a real AppImage-to-AppImage
+ // transition has passed the same cross-version gate as established clients.
+ if (process.platform === "linux" || !app.isPackaged || process.env.EDGE_EVER_DISABLE_AUTO_UPDATE === "1") return;
autoUpdater.autoDownload = process.platform !== "win32";
autoUpdater.autoInstallOnAppQuit = process.platform !== "win32";
autoUpdater.autoRunAppAfterInstall = true;
diff --git a/apps/web/src/components/NotebookPane.test.mjs b/apps/web/src/components/NotebookPane.test.mjs
index 06fb9683..c0c80fdc 100644
--- a/apps/web/src/components/NotebookPane.test.mjs
+++ b/apps/web/src/components/NotebookPane.test.mjs
@@ -33,15 +33,17 @@ test("marks diagram note types as beta without labeling regular notes", () => {
});
describe("NotebookPane client downloads", () => {
- test("keeps macOS and Windows downloads visible in the desktop runtime", () => {
+ test("keeps macOS, Windows, and Linux downloads visible in the desktop runtime", () => {
expect(source).toContain('t("pwa.sidebarMac") || "macOS"');
expect(source).toContain('t("pwa.sidebarWindows") || "Windows"');
+ expect(source).toContain('t("pwa.sidebarLinux") || "Linux"');
expect(source).not.toContain("!window.edgeeverDesktop?.isAvailable");
});
test("renders platform icons inline so desktop protocols do not break them", () => {
expect(source).toContain("<BrandIcon path={APPLE_ICON_PATH}");
expect(source).toContain("<BrandIcon path={WINDOWS_ICON_PATH}");
+ expect(source).toContain('<Terminal className="h-3.5 w-3.5');
expect(source).toContain("<GooglePlayIcon />");
expect(source).toContain("<AppStoreIcon />");
expect(source).not.toContain('src="/icons/platforms/');
diff --git a/apps/web/src/components/NotebookPane.tsx b/apps/web/src/components/NotebookPane.tsx
index d769baee..f8bd4ff7 100644
--- a/apps/web/src/components/NotebookPane.tsx
+++ b/apps/web/src/components/NotebookPane.tsx
@@ -28,6 +28,7 @@ import {
FileText,
Network,
Workflow,
+ Terminal,
} from "lucide-react";
import { Button } from "@/components/ui/button";
import { Badge } from "@/components/ui/badge";
@@ -775,6 +776,28 @@ export const NotebookPane = ({
</div>
</a>
</DropdownMenuItem>
+ <DropdownMenuItem asChild>
+ <a
+ href={DESKTOP_DOWNLOAD_URL}
+ target="_blank"
+ rel="noreferrer"
+ aria-label={`${t("pwa.sidebarLinux")} ${t("pwa.sidebarLinuxBadge")}`}
+ className="group flex cursor-pointer items-center justify-between gap-2.5 rounded-md px-2 py-1.5 text-sm text-slate-700 outline-none transition-colors hover:bg-slate-100 hover:text-slate-900 focus:bg-slate-100 focus:text-slate-900 dark:text-slate-300 dark:hover:bg-slate-800 dark:hover:text-white"
+ >
+ <div className="flex min-w-0 items-center gap-2.5">
+ <BrandIconContainer>
+ <Terminal className="h-3.5 w-3.5 text-slate-800 dark:text-slate-200" aria-hidden="true" />
+ </BrandIconContainer>
+ <span className="truncate font-medium">{t("pwa.sidebarLinux") || "Linux"}</span>
+ </div>
+ <div className="flex shrink-0 items-center gap-1 text-amber-700 dark:text-amber-400">
+ <span className="rounded bg-amber-50 px-1.5 py-0.5 text-[10px] font-semibold dark:bg-amber-950/40">
+ {t("pwa.sidebarLinuxBadge") || "Preview"}
+ </span>
+ <ExternalLink className="h-3.5 w-3.5" />
+ </div>
+ </a>
+ </DropdownMenuItem>
<DropdownMenuItem asChild>
<a
href={DESKTOP_DOWNLOAD_URL}
diff --git a/apps/web/src/components/settings/SystemInfoPanel.tsx b/apps/web/src/components/settings/SystemInfoPanel.tsx
index 1ca9b8af..bb37d400 100644
--- a/apps/web/src/components/settings/SystemInfoPanel.tsx
+++ b/apps/web/src/components/settings/SystemInfoPanel.tsx
@@ -340,6 +340,7 @@ export const SystemInfoPanel = ({ active = true }: { active?: boolean }) => {
};
const desktopUpdateState = desktopUpdateStatusQuery.data?.state ?? "idle";
+ const desktopAutoUpdateSupported = clientRuntimeQuery.data?.autoUpdateSupported !== false;
const desktopUpdateBusy = desktopUpdateCheckMutation.isPending || desktopUpdateInstallMutation.isPending;
const desktopUpdateStatus = desktopUpdateInstallMutation.isError || desktopUpdateCheckMutation.isError || desktopUpdateStatusQuery.isError
? t("systemInfo.desktopUpdateFailed")
@@ -395,7 +396,7 @@ export const SystemInfoPanel = ({ active = true }: { active?: boolean }) => {
<h3 id={headingId} className="text-xs font-semibold text-slate-800">{group.title}</h3>
</div>
</div>
- {isClient && desktopAvailable ? (
+ {isClient && desktopAvailable && desktopAutoUpdateSupported ? (
<Button
size="sm"
variant="outline"
@@ -417,6 +418,18 @@ export const SystemInfoPanel = ({ active = true }: { active?: boolean }) => {
? t("systemInfo.desktopUpdateChecking")
: t("systemInfo.desktopCheckForUpdates")}
</Button>
+ ) : isClient && desktopAvailable ? (
+ <Button
+ asChild
+ size="sm"
+ variant="outline"
+ className="h-7 bg-white px-2.5 text-xs shadow-xs hover:bg-slate-50"
+ >
+ <a href="https://github.com/tianma-if/edgeever/releases/latest" target="_blank" rel="noreferrer">
+ <ExternalLink className="h-3.5 w-3.5" />
+ {t("systemInfo.desktopDownloadLatest")}
+ </a>
+ </Button>
) : null}
</div>
{isCloud && active && release ? (
@@ -430,7 +443,7 @@ export const SystemInfoPanel = ({ active = true }: { active?: boolean }) => {
</a>
</div>
) : null}
- {isClient && desktopAvailable && desktopUpdateStatus ? (
+ {isClient && desktopAvailable && desktopAutoUpdateSupported && desktopUpdateStatus ? (
<p
className={cn(
"text-right text-xs",
diff --git a/apps/web/src/lib/system-diagnostics.ts b/apps/web/src/lib/system-diagnostics.ts
index 94f55371..65d7bf90 100644
--- a/apps/web/src/lib/system-diagnostics.ts
+++ b/apps/web/src/lib/system-diagnostics.ts
@@ -6,6 +6,7 @@ import { createLocalDataScope } from "./local-mirror";
export type ClientRuntimeDiagnostics = {
appVersion: string | null;
architecture: string | null;
+ autoUpdateSupported: boolean | null;
engine: string | null;
operatingSystem: string | null;
};
@@ -78,6 +79,7 @@ export const getClientRuntimeDiagnostics = async (): Promise<ClientRuntimeDiagno
return {
appVersion: info.appVersion,
architecture: info.architecture === "unknown" ? null : info.architecture,
+ autoUpdateSupported: info.autoUpdateSupported,
engine: [
info.electron === "unknown" ? null : `Electron ${info.electron}`,
info.chrome === "unknown" ? null : `Chromium ${info.chrome}`,
@@ -103,6 +105,7 @@ export const getClientRuntimeDiagnostics = async (): Promise<ClientRuntimeDiagno
return {
appVersion: null,
architecture: architecture || null,
+ autoUpdateSupported: null,
engine: browserEngine(navigator.userAgent),
operatingSystem: browserOperatingSystem(
navigator.userAgent,
diff --git a/apps/web/src/vite-env.d.ts b/apps/web/src/vite-env.d.ts
index 5a8c2300..037a7361 100644
--- a/apps/web/src/vite-env.d.ts
+++ b/apps/web/src/vite-env.d.ts
@@ -37,6 +37,7 @@ interface EdgeEverDesktopBridge {
sidecarStatus(): Promise<{ available: boolean; path: string; scope: string }>;
systemInfo(): Promise<{
appVersion: string;
+ autoUpdateSupported: boolean;
platform: string;
architecture: string;
osVersion: string;
diff --git a/assets/readme/platforms/linux.svg b/assets/readme/platforms/linux.svg
new file mode 100644
index 00000000..2e524e29
--- /dev/null
+++ b/assets/readme/platforms/linux.svg
@@ -0,0 +1,4 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
+ <rect x="1.5" y="3" width="21" height="18" rx="3" fill="#111827"/>
+ <path fill="none" stroke="#fff" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.8" d="m6.5 8l3 3l-3 3m5 0h5.5"/>
+</svg>
diff --git a/docs/linux-preview.md b/docs/linux-preview.md
new file mode 100644
index 00000000..211b1b4f
--- /dev/null
+++ b/docs/linux-preview.md
@@ -0,0 +1,35 @@
+# Linux AppImage Preview
+
+EdgeEver provides an x86_64 AppImage Preview on each formal GitHub Release.
+The package is built and verified on Ubuntu 22.04 to keep the Rust sidecar at a
+glibc 2.35 baseline. Newer Ubuntu releases, Debian 12, and current Fedora
+releases are expected to work but remain best-effort during the Preview.
+
+Download `EdgeEver-<version>-linux-x64.AppImage` and
+`SHA256SUMS-linux.txt` from the same official Release, then run:
+
+```bash
+sha256sum --check SHA256SUMS-linux.txt
+chmod +x EdgeEver-*-linux-x64.AppImage
+./EdgeEver-*-linux-x64.AppImage
+```
+
+The checksum detects a damaged or mismatched download; it is not a code-signing
+identity. Do not download the Preview from third-party mirrors.
+
+Automatic updates are intentionally disabled during the initial Preview.
+Download the newer AppImage from the latest formal Release and replace the old
+file manually. Automatic updates will only be enabled after a real
+AppImage-to-AppImage upgrade has passed the cross-version release gate.
+
+An AppImage does not install a desktop launcher or file associations by itself.
+Desktop integration can be managed by the user's AppImage launcher or desktop
+environment. If the host cannot mount AppImages, try:
+
+```bash
+./EdgeEver-*-linux-x64.AppImage --appimage-extract-and-run
+```
+
+When reporting a Linux-specific problem, include the distribution, desktop
+environment, display protocol (Wayland or X11), architecture, and the EdgeEver
+system diagnostics.
diff --git a/docs/linux-preview.zh-CN.md b/docs/linux-preview.zh-CN.md
new file mode 100644
index 00000000..63f122c5
--- /dev/null
+++ b/docs/linux-preview.zh-CN.md
@@ -0,0 +1,31 @@
+# Linux AppImage 预览版
+
+EdgeEver 会在每个正式 GitHub Release 中提供 x86_64 AppImage 预览版。产物固定
+在 Ubuntu 22.04 构建并验证,以确保 Rust sidecar 不超过 glibc 2.35 基线;预计
+可兼容更新的 Ubuntu、Debian 12 和当前 Fedora,但预览阶段只提供尽力支持。
+
+从同一个官方 Release 下载 `EdgeEver-<version>-linux-x64.AppImage` 和
+`SHA256SUMS-linux.txt`,然后执行:
+
+```bash
+sha256sum --check SHA256SUMS-linux.txt
+chmod +x EdgeEver-*-linux-x64.AppImage
+./EdgeEver-*-linux-x64.AppImage
+```
+
+校验和可发现下载损坏或文件版本不匹配,但不代表代码签名身份。请勿从第三方镜像
+下载此预览版。
+
+初始预览阶段会明确关闭自动更新。请从最新正式 Release 下载新 AppImage,并手动
+替换旧文件。只有真实 AppImage 旧版本到新版本的升级通过跨版本发布门禁后,才会
+启用自动更新。
+
+AppImage 本身不会安装桌面启动器或文件关联,可由用户使用的 AppImage 启动器或
+桌面环境管理集成。如果系统无法挂载 AppImage,可以尝试:
+
+```bash
+./EdgeEver-*-linux-x64.AppImage --appimage-extract-and-run
+```
+
+反馈 Linux 专属问题时,请附上发行版、桌面环境、显示协议(Wayland 或 X11)、
+系统架构和 EdgeEver 系统诊断信息。
diff --git a/docs/release.md b/docs/release.md
index 26a4a0d4..7fb5225d 100644
--- a/docs/release.md
+++ b/docs/release.md
@@ -41,9 +41,11 @@ contain only user-visible changes, impact, and necessary migration guidance.
Use `--dry-run` to inspect commit coverage, the native rebuild plan, and notes.
After publication, the command does not download, install, or launch the macOS
-application. Existing desktop installations receive new versions through the
-in-app automatic updater. Pass `--install-desktop` explicitly only when the
-previous installation check is actually needed.
+application. Existing macOS and Windows installations receive new versions
+through the in-app automatic updater. Linux Preview updates remain manual until
+a real AppImage-to-AppImage transition has passed the cross-version gate. Pass
+`--install-desktop` explicitly only when the previous installation check is
+actually needed.
## EdgeEver-Specific Behavior
@@ -55,8 +57,9 @@ previous installation check is actually needed.
iOS build numbers remain independent, monotonically increasing identifiers.
- A formal Release contains macOS arm64 and x64 DMGs, architecture-specific
updater ZIPs, an unsigned Windows x64 Preview installer with an independently
- signed update manifest, and an Android arm64 APK. Unchanged native assets are
- reused with their original filenames, versions, and checksums.
+ signed update manifest, a Linux x64 AppImage Preview with a SHA-256 checksum
+ file, and an Android arm64 APK. Unchanged native assets are reused with their
+ original filenames, versions, and checksums.
- Desktop and Android update checks use the version embedded in the applicable
Release asset rather than the overall GitHub tag. This prevents a Web-only or
API-only Release from prompting an unnecessary native update.
diff --git a/docs/release.zh-CN.md b/docs/release.zh-CN.md
index 81152afc..bab1a755 100644
--- a/docs/release.zh-CN.md
+++ b/docs/release.zh-CN.md
@@ -39,7 +39,8 @@ bun run release -- \
公开 Release 说明。公开说明只包含用户可感知的变化、影响和必要的迁移提醒。
使用 `--dry-run` 查看提交覆盖、原生端重建计划和说明。发布完成后不会下载、
-安装或启动 macOS 应用;已安装的桌面端通过应用内自动更新机制获取新版。仅在
+安装或启动 macOS 应用;已安装的 macOS 与 Windows 桌面端通过应用内自动更新
+机制获取新版。Linux 预览版在真实 AppImage 跨版本验证通过前保持手动更新。仅在
确实需要原有安装验收时显式传入 `--install-desktop`。
## EdgeEver 特有规则
@@ -49,7 +50,8 @@ bun run release -- \
- 根版本表示整体产品 Release。只有对应原生运行时重建时,才更新原生展示版本。
Android `versionCode` 和 iOS Build Number 是相互独立且严格递增的标识。
- 每个正式 Release 包含 macOS arm64 与 x64 DMG、按架构区分的更新 ZIP、带独立
- 签名更新清单的未签名 Windows x64 预览版安装包,以及 Android arm64 APK。
+ 签名更新清单的未签名 Windows x64 预览版安装包、带 SHA-256 清单的 Linux x64
+ AppImage 预览版,以及 Android arm64 APK。
未变化的原生资产沿用原文件名、版本和校验和。
- 桌面端和 Android 更新检查使用对应 Release 资产中记录的版本,而不是整体
GitHub Tag,避免仅涉及 Web 或 API 的 Release 触发无效原生更新。
diff --git a/packages/shared/src/i18n/en-US.ts b/packages/shared/src/i18n/en-US.ts
index 6a32cdce..cbb61642 100644
--- a/packages/shared/src/i18n/en-US.ts
+++ b/packages/shared/src/i18n/en-US.ts
@@ -1084,6 +1084,7 @@ export const enUS = {
deployedUpdateTitle: "Your cloud instance was automatically updated to v{{version}}",
viewReleaseNotes: "Release notes",
desktopCheckForUpdates: "Check for updates",
+ desktopDownloadLatest: "Download latest AppImage",
desktopUpdateChecking: "Checking for updates…",
desktopUpdateCurrent: "You're up to date.",
desktopUpdateDownloading: "Downloading update…",
@@ -2094,6 +2095,9 @@ export const enUS = {
sidebarWindows: "Windows",
sidebarWindowsBadge: "Preview",
sidebarWindowsAvailability: "Unsigned Preview — Windows or your organization may warn or block it. Download only from the official GitHub Release.",
+ sidebarLinux: "Linux",
+ sidebarLinuxBadge: "Preview",
+ sidebarLinuxAvailability: "x86_64 AppImage Preview — updates are installed manually from the official GitHub Release.",
sidebarOtherDownloads: "Other client downloads",
sidebarAndroid: "Android",
sidebarAndroidGooglePlay: "Google Play",
diff --git a/packages/shared/src/i18n/zh-CN.ts b/packages/shared/src/i18n/zh-CN.ts
index d77ff933..e8a419db 100644
--- a/packages/shared/src/i18n/zh-CN.ts
+++ b/packages/shared/src/i18n/zh-CN.ts
@@ -1084,6 +1084,7 @@ export const zhCN = {
deployedUpdateTitle: "您的云端实例已自动更新至 v{{version}}",
viewReleaseNotes: "版本说明",
desktopCheckForUpdates: "检查更新",
+ desktopDownloadLatest: "下载最新 AppImage",
desktopUpdateChecking: "正在检查更新…",
desktopUpdateCurrent: "当前已是最新版本。",
desktopUpdateDownloading: "正在下载更新…",
@@ -2092,6 +2093,9 @@ export const zhCN = {
sidebarWindows: "Windows",
sidebarWindowsBadge: "预览版",
sidebarWindowsAvailability: "未签名预览版——Windows 或组织策略可能警告或阻止安装。请仅从官方 GitHub Release 下载。",
+ sidebarLinux: "Linux",
+ sidebarLinuxBadge: "预览版",
+ sidebarLinuxAvailability: "x86_64 AppImage 预览版——请从官方 GitHub Release 手动下载安装更新。",
sidebarOtherDownloads: "其他客户端下载",
sidebarAndroid: "Android",
sidebarAndroidGooglePlay: "Google Play",
diff --git a/scripts/check-native-release-assets.mjs b/scripts/check-native-release-assets.mjs
index 385e0d10..e59d0e41 100644
--- a/scripts/check-native-release-assets.mjs
+++ b/scripts/check-native-release-assets.mjs
@@ -56,10 +56,19 @@ export const nativeReleaseAssetsReady = ({
.exec(windowsInstallerNames[0])?.[1];
if (!windowsVersion) return false;
versions.add(windowsVersion);
+ const linuxAppImageNames = assetNames.filter((name) =>
+ /^EdgeEver-(.+)-linux-x64\.AppImage$/.test(name)
+ );
+ if (linuxAppImageNames.length !== 1) return false;
+ const linuxVersion = /^EdgeEver-(.+)-linux-x64\.AppImage$/
+ .exec(linuxAppImageNames[0])?.[1];
+ if (!linuxVersion) return false;
+ versions.add(linuxVersion);
for (const name of [
"latest.yml",
"latest-windows.json",
"SHA256SUMS-windows.txt",
+ "SHA256SUMS-linux.txt",
]) {
if (assetNames.filter((assetName) => assetName === name).length !== 1) {
return false;
diff --git a/scripts/check-native-release-assets.test.mjs b/scripts/check-native-release-assets.test.mjs
index 2d065ed9..ccad19db 100644
--- a/scripts/check-native-release-assets.test.mjs
+++ b/scripts/check-native-release-assets.test.mjs
@@ -9,6 +9,10 @@ describe("native release asset readiness", () => {
"latest-windows.json.sig",
"SHA256SUMS-windows.txt",
];
+ const linuxAssets = (version) => [
+ `EdgeEver-${version}-linux-x64.AppImage`,
+ "SHA256SUMS-linux.txt",
+ ];
test("accepts one reused Android APK but requires the current name after a rebuild", () => {
const reused = ["edgeever-android-v1.6.30-arm64-v8a.apk"];
@@ -62,6 +66,7 @@ describe("native release asset readiness", () => {
"EdgeEver-1.6.33-mac-x64.zip.blockmap",
"latest-mac.yml",
...windowsAssets("1.6.33"),
+ ...linuxAssets("1.6.33"),
],
}),
).toBe(true);
@@ -79,6 +84,7 @@ describe("native release asset readiness", () => {
"EdgeEver-1.6.35-mac-x64.zip.blockmap",
"latest-mac.yml",
...windowsAssets("1.6.35"),
+ ...linuxAssets("1.6.35"),
];
expect(
nativeReleaseAssetsReady({
@@ -114,6 +120,7 @@ describe("native release asset readiness", () => {
"EdgeEver-1.6.33-mac-arm64.zip.blockmap",
"latest-mac.yml",
...windowsAssets("1.6.33"),
+ ...linuxAssets("1.6.33"),
],
}),
).toBe(false);
@@ -131,6 +138,7 @@ describe("native release asset readiness", () => {
"EdgeEver-1.6.35-mac-x64.zip.blockmap",
"latest-mac.yml",
...windowsAssets("1.6.35").filter((name) => name !== "latest-windows.json.sig"),
+ ...linuxAssets("1.6.35"),
];
expect(nativeReleaseAssetsReady({
platform: "desktop",
@@ -148,4 +156,32 @@ describe("native release asset readiness", () => {
assetNames: assets,
})).toBe(false);
});
+
+ test("rejects missing, duplicate, or stale Linux Preview assets after a rebuild", () => {
+ const base = [
+ "EdgeEver-1.6.35-mac-arm64.dmg",
+ "EdgeEver-1.6.35-mac-arm64.dmg.blockmap",
+ "EdgeEver-1.6.35-mac-arm64.zip",
+ "EdgeEver-1.6.35-mac-arm64.zip.blockmap",
+ "EdgeEver-1.6.35-mac-x64.dmg",
+ "EdgeEver-1.6.35-mac-x64.dmg.blockmap",
+ "EdgeEver-1.6.35-mac-x64.zip",
+ "EdgeEver-1.6.35-mac-x64.zip.blockmap",
+ "latest-mac.yml",
+ ...windowsAssets("1.6.35"),
+ ];
+ for (const linux of [
+ [],
+ [...linuxAssets("1.6.35"), "EdgeEver-1.6.34-linux-x64.AppImage"],
+ linuxAssets("1.6.34"),
+ ]) {
+ expect(nativeReleaseAssetsReady({
+ platform: "desktop",
+ rebuild: true,
+ currentTag: "v1.6.35",
+ desktopVersion: "1.6.35",
+ assetNames: [...base, ...linux],
+ })).toBe(false);
+ }
+ });
});
diff --git a/scripts/desktop-build-workflow.test.mjs b/scripts/desktop-build-workflow.test.mjs
index f6d20598..40a86cad 100644
--- a/scripts/desktop-build-workflow.test.mjs
+++ b/scripts/desktop-build-workflow.test.mjs
@@ -103,4 +103,17 @@ describe("desktop release workflow", () => {
'path.replaceAll("\\\\", "/")',
);
});
+
+ test("builds and audits a Linux x64 AppImage Preview in parallel", () => {
+ expect(workflow).toContain("name: Linux x64 AppImage Preview");
+ expect(workflow).toContain("runs-on: ubuntu-22.04");
+ expect(workflow).toContain("EDGE_EVER_DESKTOP_TARGET: linux");
+ expect(workflow).toContain("name: Run packaged Linux sidecar integration tests");
+ expect(workflow).toContain("name: Verify packaged Linux first launch");
+ expect(workflow).toContain("xvfb-run -a bun run verify:packaged-desktop-startup");
+ expect(workflow).toContain("SHA256SUMS-linux.txt");
+ expect(workflow).toContain("name: Audit Linux Preview asset");
+ expect(workflow).toContain("needs: [release-plan, desktop, windows, linux]");
+ expect(desktopPackageVerifier).toContain("verifyGlibcBaseline(sidecar)");
+ });
});
diff --git a/scripts/release.mjs b/scripts/release.mjs
index f9352dd0..228fa207 100644
--- a/scripts/release.mjs
+++ b/scripts/release.mjs
@@ -365,7 +365,7 @@ export const buildIssueBody = ({ changesEn, changesZh, commitCoverageAudit }) =>
"## Acceptance criteria",
"",
"- Required type checks, Web build, and native release planning tests pass.",
- "- The Draft Release contains audited macOS arm64/x64 DMGs, an unsigned Windows x64 Preview with an independently signed update manifest, and a Play-signed Android arm64 APK.",
+ "- The Draft Release contains audited macOS arm64/x64 DMGs, an unsigned Windows x64 Preview with an independently signed update manifest, a Linux x64 AppImage Preview with a checksum, and a Play-signed Android arm64 APK.",
"- Post-publication native asset audits pass.",
].join("\n");
@@ -1146,16 +1146,18 @@ const assertDraftAssets = ({
.filter((name) =>
/^EdgeEver-.*-mac-(?:arm64|x64)\.(?:dmg|zip)(?:\.blockmap)?$/.test(name) ||
/^EdgeEver-.*-windows-x64\.exe$/.test(name) ||
+ /^EdgeEver-.*-linux-x64\.AppImage$/.test(name) ||
[
"latest-mac.yml",
"latest.yml",
"latest-windows.json",
"latest-windows.json.sig",
"SHA256SUMS-windows.txt",
+ "SHA256SUMS-linux.txt",
].includes(name)
);
if (
- previousDesktopNames.length !== 14 ||
+ previousDesktopNames.length !== 16 ||
!previousDesktopNames.every((name) =>
reusedAssetMatches(previousAssets, assets, name)
)
diff --git a/scripts/release.test.mjs b/scripts/release.test.mjs
index eaa406f2..6ee42788 100644
--- a/scripts/release.test.mjs
+++ b/scripts/release.test.mjs
@@ -439,6 +439,7 @@ describe("release automation", () => {
expect(body).toContain("## Commit coverage audit");
expect(body).toContain("Play-signed Android arm64 APK");
expect(body).toContain("unsigned Windows x64 Preview");
+ expect(body).toContain("Linux x64 AppImage Preview");
expect(body).toContain("- Change 1: `aaaaaaaa`");
expect(body).toContain("- Excluded `bbbbbbbb`: test-only coverage");
});
diff --git a/scripts/report-native-build-timings.mjs b/scripts/report-native-build-timings.mjs
index dd9a5d51..dcf541b9 100644
--- a/scripts/report-native-build-timings.mjs
+++ b/scripts/report-native-build-timings.mjs
@@ -17,6 +17,11 @@ const TARGETS = {
jobName: "Windows x64 unsigned Preview",
packageSteps: ["Package unsigned Windows installer"],
},
+ {
+ name: "Linux x64 Preview",
+ jobName: "Linux x64 AppImage Preview",
+ packageSteps: ["Package Linux AppImage"],
+ },
],
android: [
{
diff --git a/scripts/report-native-build-timings.test.mjs b/scripts/report-native-build-timings.test.mjs
index d796a6b9..fb3a7242 100644
--- a/scripts/report-native-build-timings.test.mjs
+++ b/scripts/report-native-build-timings.test.mjs
@@ -26,7 +26,9 @@ function job(name, startedAt, completedAt, packageDurationSeconds) {
? "Package desktop installer"
: name.startsWith("Windows")
? "Package unsigned Windows installer"
- : "Build signed release APK for GitHub Release",
+ : name.startsWith("Linux")
+ ? "Package Linux AppImage"
+ : "Build signed release APK for GitHub Release",
conclusion: "success",
started_at: packageStart,
completed_at: packageEnd,
@@ -42,12 +44,13 @@ describe("native build timing reports", () => {
expect(formatDuration(123_000)).toBe("2m 03s");
});
- test("reports both macOS architectures and Windows x64 from Actions timestamps", () => {
+ test("reports macOS, Windows, and Linux desktop targets from Actions timestamps", () => {
const report = createTimingReport({
jobs: [
job("macOS arm64", "2026-08-13T00:00:00Z", "2026-08-13T00:06:00Z", 180),
job("macOS x64", "2026-08-13T00:00:00Z", "2026-08-13T00:09:00Z", 360),
job("Windows x64 unsigned Preview", "2026-08-13T00:00:00Z", "2026-08-13T00:07:00Z", 240),
+ job("Linux x64 AppImage Preview", "2026-08-13T00:00:00Z", "2026-08-13T00:05:00Z", 120),
],
}, "desktop", { runId: "123" });
@@ -56,10 +59,12 @@ describe("native build timing reports", () => {
"macOS arm64",
"macOS x64",
"Windows x64 Preview",
+ "Linux x64 Preview",
]);
expect(report.targets[1].packageDurationMs).toBe(360_000);
expect(renderTimingMarkdown(report)).toContain("| macOS x64 | success | 9m 00s | 1m 00s | 6m 00s | 2m 00s |");
expect(renderTimingMarkdown(report)).toContain("| Windows x64 Preview | success | 7m 00s | 1m 00s | 4m 00s | 2m 00s |");
+ expect(renderTimingMarkdown(report)).toContain("| Linux x64 Preview | success | 5m 00s | 1m 00s | 2m 00s | 2m 00s |");
});
test("selects the release Android package step", () => {
diff --git a/scripts/report-release-timings.mjs b/scripts/report-release-timings.mjs
index 2f3f58d5..b244d459 100644
--- a/scripts/report-release-timings.mjs
+++ b/scripts/report-release-timings.mjs
@@ -77,6 +77,7 @@ function nativeRows(payload, platform, requestedMode) {
{ name: "macOS arm64", packageStep: "Package desktop installer", detail: "package + notarize" },
{ name: "macOS x64", packageStep: "Package desktop installer", detail: "package + notarize" },
{ name: "Windows x64 unsigned Preview", packageStep: "Package unsigned Windows installer", detail: "package" },
+ { name: "Linux x64 AppImage Preview", packageStep: "Package Linux AppImage", detail: "package" },
]
.map((target) => ({ target, job: findJob(payload, target.name) }))
.filter(({ job }) => Boolean(job));
@@ -84,7 +85,9 @@ function nativeRows(payload, platform, requestedMode) {
return architectureJobs.map(({ target, job }) => {
const packageStep = findStep(job, target.packageStep);
return componentRow({
- target: target.name === "Windows x64 unsigned Preview" ? "Windows x64 Preview" : target.name,
+ target: target.name
+ .replace("Windows x64 unsigned Preview", "Windows x64 Preview")
+ .replace("Linux x64 AppImage Preview", "Linux x64 Preview"),
mode: "rebuild",
candidate: job,
duration: jobDurationMs(job),
@@ -98,7 +101,7 @@ function nativeRows(payload, platform, requestedMode) {
if (reuseJob) {
return [
componentRow({
- target: "macOS arm64 + x64 + Windows x64",
+ target: "macOS arm64 + x64 + Windows x64 + Linux x64",
mode: "reuse",
candidate: reuseJob,
duration: jobDurationMs(reuseJob),
@@ -111,7 +114,7 @@ function nativeRows(payload, platform, requestedMode) {
const planJob = findJob(payload, "Plan desktop release asset");
return [
componentRow({
- target: "macOS arm64 + x64 + Windows x64",
+ target: "macOS arm64 + x64 + Windows x64 + Linux x64",
mode: "already prepared",
candidate: planJob ?? payload.run,
duration: jobDurationMs(planJob) ?? runDurationMs(payload.run),
diff --git a/scripts/report-release-timings.test.mjs b/scripts/report-release-timings.test.mjs
index 0d7a94df..e32ac896 100644
--- a/scripts/report-release-timings.test.mjs
+++ b/scripts/report-release-timings.test.mjs
@@ -48,6 +48,9 @@ describe("release timing report", () => {
job("Windows x64 unsigned Preview", start, 420, [
step("Package unsigned Windows installer", start, 240),
]),
+ job("Linux x64 AppImage Preview", start, 360, [
+ step("Package Linux AppImage", start, 120),
+ ]),
]),
desktopMode: "rebuild",
mobile: payload("Mobile", start, 540, [
@@ -88,6 +91,7 @@ describe("release timing report", () => {
"macOS arm64",
"macOS x64",
"Windows x64 Preview",
+ "Linux x64 Preview",
"Android arm64",
"Google Play signed APK",
]);
@@ -104,6 +108,9 @@ describe("release timing report", () => {
expect(markdown).toContain(
"| Windows x64 Preview | rebuild | success | 7m 00s | package 4m 00s |",
);
+ expect(markdown).toContain(
+ "| Linux x64 Preview | rebuild | success | 6m 00s | package 2m 00s |",
+ );
expect(markdown).toContain(
"| Google Play signed APK | build + deliver | success | 11m 00s | AAB build 3m 00s; Play upload 4m 00s |",
);
@@ -138,7 +145,7 @@ describe("release timing report", () => {
});
expect(report.rows.at(-2)).toMatchObject({
- target: "macOS arm64 + x64 + Windows x64",
+ target: "macOS arm64 + x64 + Windows x64 + Linux x64",
mode: "reuse",
durationMs: 40_000,
});
diff --git a/scripts/verify-desktop-package.mjs b/scripts/verify-desktop-package.mjs
index 1e56888c..ecc60f77 100644
--- a/scripts/verify-desktop-package.mjs
+++ b/scripts/verify-desktop-package.mjs
@@ -1,7 +1,7 @@
import assert from "node:assert/strict";
import { spawnSync } from "node:child_process";
import { existsSync, openSync, closeSync, readFileSync, readSync, readdirSync, rmSync, statSync } from "node:fs";
-import { basename, join } from "node:path";
+import { join } from "node:path";
import { listPackage } from "@electron/asar";
import { assertMacIcnsComplete } from "./desktop-icns.mjs";
import { isVisualCppRuntimeDll, readPeImportedDlls } from "./pe-imports.mjs";
@@ -23,7 +23,6 @@ const walk = (directory) => {
};
const files = walk(outputDirectory);
-const matchingPrefix = (prefix) => files.filter((path) => basename(path).startsWith(prefix));
const requestedPlatform = process.env.EDGE_EVER_VERIFY_TARGET ?? process.platform;
const requestedArch = process.env.EDGE_EVER_DESKTOP_ARCH ?? process.arch;
const listAsarFiles = (asarPath) => new Set(
@@ -53,6 +52,25 @@ const verifyPeX64 = (path, label) => {
}
};
+const verifyElfX64 = (path, label) => {
+ const result = spawnSync("readelf", ["-h", path], { encoding: "utf8" });
+ assert.equal(result.status, 0, `${label} ELF inspection failed: ${result.stderr || result.stdout}`);
+ assert.match(result.stdout, /Class:\s+ELF64/, `${label} must be a 64-bit ELF executable`);
+ assert.match(result.stdout, /Machine:\s+Advanced Micro Devices X86-64/, `${label} must target Linux x64`);
+};
+
+const verifyGlibcBaseline = (path, maximum = [2, 35]) => {
+ const result = spawnSync("readelf", ["--version-info", path], { encoding: "utf8" });
+ assert.equal(result.status, 0, `Rust sidecar glibc inspection failed: ${result.stderr || result.stdout}`);
+ const versions = [...result.stdout.matchAll(/GLIBC_(\d+)\.(\d+)/g)]
+ .map((match) => [Number(match[1]), Number(match[2])]);
+ assert.ok(versions.length > 0, "Rust sidecar must declare its glibc requirements");
+ const exceedsBaseline = versions.some(([major, minor]) =>
+ major > maximum[0] || (major === maximum[0] && minor > maximum[1])
+ );
+ assert.equal(exceedsBaseline, false, `Rust sidecar must not require glibc newer than ${maximum.join(".")}`);
+};
+
for (const sidecarPath of files.filter((path) => /[\\/]resources[\\/]sidecar[\\/]edgeever-sidecar(?:\.exe)?$/i.test(path))) {
const bundleRoot = sidecarPath.replace(/[\\/]resources[\\/]sidecar[\\/]edgeever-sidecar(?:\.exe)?$/i, "");
assert.ok(existsSync(join(bundleRoot, "resources", "web", "index.html")), `Desktop bundle is missing the Web renderer: ${bundleRoot}`);
@@ -114,13 +132,29 @@ if (requestedPlatform === "darwin") {
assert.ok(asarFiles.has("/src/preload/index.cjs"), "Windows app bundle must contain the sandbox-compatible CommonJS preload");
assert.ok(!asarFiles.has("/src/preload/index.mjs"), "Windows app bundle must not contain the unsupported ESM preload");
} else if (requestedPlatform === "linux") {
- assert.ok(matchingPrefix(`EdgeEver-${version}-linux-`).some((path) => path.endsWith(".AppImage")), "Linux package must contain the current AppImage");
- const unpacked = files.find((path) => path.endsWith("/resources/sidecar/edgeever-sidecar") && path.includes("linux-") && path.includes("-unpacked"));
- if (unpacked) {
- const root = unpacked.slice(0, unpacked.indexOf("/resources/sidecar/edgeever-sidecar"));
- assert.ok(existsSync(join(root, "resources", "web", "index.html")), "Linux app bundle is missing the Web renderer");
- assert.ok(existsSync(join(root, "resources", "migrations")), "Linux app bundle is missing migrations");
- }
+ assert.equal(requestedArch, "x64", `Linux Preview package must target x64, received: ${requestedArch}`);
+ const appImage = join(outputDirectory, `EdgeEver-${version}-linux-x64.AppImage`);
+ const unpackedDirectory = join(outputDirectory, "linux-unpacked");
+ const executable = ["EdgeEver", "edgeever"]
+ .map((name) => join(unpackedDirectory, name))
+ .find(existsSync);
+ const resources = join(unpackedDirectory, "resources");
+ const sidecar = join(resources, "sidecar", "edgeever-sidecar");
+ assert.ok(existsSync(appImage), `Linux package must contain the current x64 AppImage: ${appImage}`);
+ assert.ok(statSync(appImage).mode & 0o111, "Linux AppImage must be executable");
+ assert.ok(executable, "Linux package must contain the unpacked EdgeEver executable");
+ assert.ok(existsSync(sidecar), `Linux app bundle is missing the sidecar: ${sidecar}`);
+ assert.ok(statSync(sidecar).mode & 0o111, "Linux sidecar must be executable");
+ assert.ok(existsSync(join(resources, "web", "index.html")), "Linux app bundle is missing the Web renderer");
+ assert.ok(existsSync(join(resources, "migrations")), "Linux app bundle is missing migrations");
+ verifyElfX64(executable, "Electron executable");
+ verifyElfX64(sidecar, "Rust sidecar");
+ verifyGlibcBaseline(sidecar);
+ const asarPath = join(resources, "app.asar");
+ assert.ok(existsSync(asarPath), `Linux app bundle is missing app.asar: ${asarPath}`);
+ const asarFiles = listAsarFiles(asarPath);
+ assert.ok(asarFiles.has("/src/preload/index.cjs"), "Linux app bundle must contain the sandbox-compatible CommonJS preload");
+ assert.ok(!asarFiles.has("/src/preload/index.mjs"), "Linux app bundle must not contain the unsupported ESM preload");
} else {
throw new Error(`Unsupported packaging platform: ${requestedPlatform}`);
}