Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -159,3 +177,4 @@ jobs:
files: |
artifacts/codex-switch-macos-arm64/*
artifacts/codex-switch-windows-x86_64/*
artifacts/codex-switch-linux-x86_64/*
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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。

## 快速开始

Expand Down Expand Up @@ -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/**`。

Expand Down
6 changes: 5 additions & 1 deletion README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -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。

## 快速开始

Expand Down Expand Up @@ -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/**`。

Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
7 changes: 7 additions & 0 deletions src-tauri/tauri.linux.conf.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"$schema": "../node_modules/@tauri-apps/cli/config.schema.json",
"bundle": {
"active": true,
"targets": ["deb", "appimage"]
}
}
Loading