diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 2216d5e..50d0991 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -85,10 +85,28 @@ jobs: tauri_script: tauri:build:windows artifacts: | src-tauri/target/x86_64-pc-windows-msvc/release/bundle/nsis/*.exe + - label: linux-x86_64 + os: ubuntu-22.04 + target: x86_64-unknown-linux-gnu + tauri_script: tauri:build:linux + artifacts: | + src-tauri/target/x86_64-unknown-linux-gnu/release/bundle/deb/*.deb + src-tauri/target/x86_64-unknown-linux-gnu/release/bundle/appimage/*.AppImage runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v4 + - name: Install Tauri Linux dependencies + if: runner.os == 'Linux' + run: | + sudo apt-get update + sudo apt-get install -y \ + libwebkit2gtk-4.1-dev \ + libgtk-3-dev \ + libayatana-appindicator3-dev \ + librsvg2-dev \ + libsoup-3.0-dev + - uses: actions/setup-node@v4 with: node-version: '22' @@ -159,3 +177,4 @@ jobs: files: | artifacts/codex-switch-macos-arm64/* artifacts/codex-switch-windows-x86_64/* + artifacts/codex-switch-linux-x86_64/* diff --git a/CHANGELOG.md b/CHANGELOG.md index 52e4063..902c0b4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## 1.5.11 - 2026-05-16 + +- Added experimental Linux x86_64 build to the release pipeline. Tagged releases now publish `.deb` (Debian/Ubuntu) and `.AppImage` (generic portable) artifacts alongside the existing macOS / Windows ones. Built on `ubuntu-22.04` (glibc 2.35) so binaries run on Ubuntu 22.04+ / Debian 12+ and equivalent distros. UI, profile switching, and plan / quota readout work as on the other platforms; Linux-native paths for Codex CLI discovery and `codex login` spawning are not separately adapted yet (the non-macOS code branch is currently reused), so feedback issues are welcome. + ## 1.5.10 - 2026-05-16 - Profiles page redesign: account cards become single-row list items (account name + plan / 5-hour and weekly quotas / actions all in one horizontal row). Profile-list page size raised from 4 to 8 entries per page. diff --git a/README.md b/README.md index 9fd404f..fd91957 100644 --- a/README.md +++ b/README.md @@ -42,9 +42,13 @@ codex_switch_<版本>_aarch64.dmg macOS Apple Silicon DMG(拖拽到 Applications) codex_switch_<版本>_aarch64.pkg macOS Apple Silicon PKG 安装包 codex_switch_<版本>_x64-setup.exe Windows x64 NSIS 安装包 +codex_switch_<版本>_amd64.deb Linux x86_64 Debian/Ubuntu 包(sudo dpkg -i 安装) +codex_switch_<版本>_amd64.AppImage Linux x86_64 通用便携包(chmod +x 后直接运行) ``` > macOS / Windows 都暂未做代码签名,首次启动可能提示「未知开发者 / 未知发布者」;macOS 可在「系统设置 → 隐私与安全」放行,Windows 可在 SmartScreen 弹窗点「更多信息 → 仍要运行」。 +> +> Linux 为实验性发布(Ubuntu 22.04 / glibc 2.35 基线构建):UI、账号切换、plan/quota 查看可用;与 Codex CLI 的部分交互(路径自检、`codex login` spawn 等)当前走 Windows 路径分支,Linux-native 体验尚未单独适配,欢迎反馈 issue。 ## 快速开始 @@ -179,7 +183,7 @@ App 暂未做 Apple Developer 代码签名 / notarization。第一次启动按 - **macOS**:原生 Tauri 桌面端(Apple Silicon),同时保留 `macOS-backup/` 下的 legacy shell 流程兼容。 - **Windows**:原生 Tauri 桌面端(x64),通过 Release 中的 `.exe` 分发。 -- **Linux**:暂未做正式发布;前端代码跨平台,理论可自行 `cargo tauri build` 出 AppImage / deb,但 macOS-backup 与 Codex CLI 路径探测未覆盖 Linux 路径约定。 +- **Linux**:**实验性发布**(Ubuntu 22.04 / glibc 2.35 基线,x86_64),通过 Release 中的 `.deb` / `.AppImage` 分发。前端 UI、账号切换、plan / quota 查看与 macOS / Windows 一致;与 Codex CLI 的交互(路径自检、`codex login` spawn)当前复用 Windows runtime 分支,尚未做 Linux-native 适配,欢迎踩到具体问题后开 issue 反馈。 平台专属逻辑放在 `src-tauri/mac/**` 或 `src-tauri/win/**`,跨平台逻辑都在 `src-tauri/shared/**`。 diff --git a/README.zh-CN.md b/README.zh-CN.md index 9fd404f..fd91957 100644 --- a/README.zh-CN.md +++ b/README.zh-CN.md @@ -42,9 +42,13 @@ codex_switch_<版本>_aarch64.dmg macOS Apple Silicon DMG(拖拽到 Applications) codex_switch_<版本>_aarch64.pkg macOS Apple Silicon PKG 安装包 codex_switch_<版本>_x64-setup.exe Windows x64 NSIS 安装包 +codex_switch_<版本>_amd64.deb Linux x86_64 Debian/Ubuntu 包(sudo dpkg -i 安装) +codex_switch_<版本>_amd64.AppImage Linux x86_64 通用便携包(chmod +x 后直接运行) ``` > macOS / Windows 都暂未做代码签名,首次启动可能提示「未知开发者 / 未知发布者」;macOS 可在「系统设置 → 隐私与安全」放行,Windows 可在 SmartScreen 弹窗点「更多信息 → 仍要运行」。 +> +> Linux 为实验性发布(Ubuntu 22.04 / glibc 2.35 基线构建):UI、账号切换、plan/quota 查看可用;与 Codex CLI 的部分交互(路径自检、`codex login` spawn 等)当前走 Windows 路径分支,Linux-native 体验尚未单独适配,欢迎反馈 issue。 ## 快速开始 @@ -179,7 +183,7 @@ App 暂未做 Apple Developer 代码签名 / notarization。第一次启动按 - **macOS**:原生 Tauri 桌面端(Apple Silicon),同时保留 `macOS-backup/` 下的 legacy shell 流程兼容。 - **Windows**:原生 Tauri 桌面端(x64),通过 Release 中的 `.exe` 分发。 -- **Linux**:暂未做正式发布;前端代码跨平台,理论可自行 `cargo tauri build` 出 AppImage / deb,但 macOS-backup 与 Codex CLI 路径探测未覆盖 Linux 路径约定。 +- **Linux**:**实验性发布**(Ubuntu 22.04 / glibc 2.35 基线,x86_64),通过 Release 中的 `.deb` / `.AppImage` 分发。前端 UI、账号切换、plan / quota 查看与 macOS / Windows 一致;与 Codex CLI 的交互(路径自检、`codex login` spawn)当前复用 Windows runtime 分支,尚未做 Linux-native 适配,欢迎踩到具体问题后开 issue 反馈。 平台专属逻辑放在 `src-tauri/mac/**` 或 `src-tauri/win/**`,跨平台逻辑都在 `src-tauri/shared/**`。 diff --git a/package.json b/package.json index 8eaeae6..4301577 100644 --- a/package.json +++ b/package.json @@ -23,6 +23,7 @@ "tauri:dev": "npm run version:sync && tauri dev", "tauri:build": "npm run version:sync:release && tauri build", "tauri:build:windows": "npm run version:sync:release && tauri build --target x86_64-pc-windows-msvc", + "tauri:build:linux": "npm run version:sync:release && tauri build --target x86_64-unknown-linux-gnu", "tauri:build:portable": "npm run version:sync && tauri build --no-bundle", "tauri:build:windows:portable": "npm run version:sync && tauri build --target x86_64-pc-windows-msvc --no-bundle", "tauri:build:macos-dmg": "npm run tauri:build:macos-release", diff --git a/src-tauri/tauri.linux.conf.json b/src-tauri/tauri.linux.conf.json new file mode 100644 index 0000000..e4ef626 --- /dev/null +++ b/src-tauri/tauri.linux.conf.json @@ -0,0 +1,7 @@ +{ + "$schema": "../node_modules/@tauri-apps/cli/config.schema.json", + "bundle": { + "active": true, + "targets": ["deb", "appimage"] + } +}