feat(desktop): embed BoosAPI Desktop client as a subproject

Vendor the rebranded BoosAPI Desktop client (Tauri + Vue) into metapi as
a monorepo subdirectory under desktop/. Source only — node_modules,
dist, Cargo target and the upstream .git history are excluded.

desktop/ keeps its own independent Cargo workspace (desktop/src-tauri
with crates/*); it is not part of the backend boosapi crate, so a
`cargo check` at the metapi root still compiles only the backend. Build
the desktop app from desktop/src-tauri per desktop/README.md.

Note: app icons are still placeholder assets pending the final BoosAPI
logo. The updater signing keys live outside the repo and are not
included.
This commit is contained in:
boos
2026-06-22 11:32:57 +08:00
parent d9c78ecc73
commit e0a5f57793
2305 changed files with 449355 additions and 0 deletions
+75
View File
@@ -0,0 +1,75 @@
name: 🐛 提交 BUG
description: 报告一个 Bug 以帮助我们改进
labels: ["bug"]
body:
- type: dropdown
id: os
attributes:
label: 操作系统
options:
- macOS
- Windows
- Linux
validations:
required: true
- type: dropdown
id: arch
attributes:
label: 系统架构
options:
- x86_64 (Intel/AMD)
- aarch64 (ARM/Apple Silicon)
validations:
required: true
- type: input
id: version
attributes:
label: BoosApi 版本
placeholder: "例如:v1.0.0,可在设置中查看"
validations:
required: true
- type: textarea
id: description
attributes:
label: Bug 描述
placeholder: 请清楚地描述遇到的问题
validations:
required: true
- type: textarea
id: steps
attributes:
label: 复现步骤
placeholder: |
1. 第一步
2. 第二步
3. ...
validations:
required: true
- type: textarea
id: expected
attributes:
label: 期望行为
placeholder: 描述你期望看到的正确行为
validations:
required: false
- type: textarea
id: actual
attributes:
label: 实际行为
placeholder: 描述实际发生的错误行为
validations:
required: false
- type: textarea
id: screenshots
attributes:
label: 截图 / 日志
placeholder: 可选:附上截图或相关错误日志
validations:
required: false
+27
View File
@@ -0,0 +1,27 @@
name: 💡 提交建议
description: 提出你的功能建议或改进想法
labels: ["enhancement"]
body:
- type: textarea
id: description
attributes:
label: 建议描述
placeholder: 请清楚地描述你希望添加或改进的功能
validations:
required: true
- type: textarea
id: use-case
attributes:
label: 使用场景
placeholder: 描述在什么情况下你需要这个功能
validations:
required: false
- type: textarea
id: extra
attributes:
label: 补充说明
placeholder: 可选:附加截图、参考链接或其他说明
validations:
required: false
Binary file not shown.

After

Width:  |  Height:  |  Size: 443 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 255 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 457 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 152 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 168 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 436 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 294 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 650 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 380 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 344 KiB

+67
View File
@@ -0,0 +1,67 @@
name: Deploy Website to GitHub Pages
on:
push:
branches: ["main"]
paths:
- "website/**"
release:
types: [released]
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: main
- name: Setup pnpm
uses: pnpm/action-setup@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: pnpm
cache-dependency-path: website/pnpm-lock.yaml
- name: Install dependencies
run: pnpm install --frozen-lockfile
working-directory: website
- name: Build VitePress site
run: pnpm build
working-directory: website
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: website/docs/.vitepress/dist
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
needs: build
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v5
+374
View File
@@ -0,0 +1,374 @@
name: Release
on:
push:
tags:
- 'v*.*.*'
permissions: write-all
env:
CARGO_INCREMENTAL: 0
RUST_BACKTRACE: short
concurrency:
group: '${{ github.workflow }}-${{ github.ref }}'
cancel-in-progress: true
jobs:
# ── Validate tag matches package.json version ──────────
check-version:
name: Check Version
if: ${{ !contains(github.ref_name, '-test') }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Validate tag vs package.json
run: |
TAG="${GITHUB_REF_NAME}"
PKG_VERSION="v$(jq -r .version package.json)"
if [[ "$TAG" != "$PKG_VERSION" ]]; then
echo "❌ Tag $TAG does not match package.json $PKG_VERSION"
exit 1
fi
echo "✅ Version $TAG is consistent"
# ── Generate release notes via git-cliff ─────────────
draft-release-notes:
name: Generate Release Notes
needs: [check-version]
if: ${{ !contains(github.ref_name, '-test') }}
runs-on: ubuntu-latest
permissions:
contents: write
outputs:
body: ${{ steps.cliff.outputs.content }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Generate changelog
uses: orhun/git-cliff-action@v4
id: cliff
with:
config: cliff.toml
args: --latest --strip header
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_REPO: ${{ github.repository }}
CLIFF_REPO: ${{ github.repository }}
- name: Create draft release
uses: softprops/action-gh-release@v2
with:
tag_name: ${{ github.ref_name }}
name: 'BoosApi ${{ github.ref_name }}'
body: ${{ steps.cliff.outputs.content }}
draft: true
prerelease: ${{ contains(github.ref_name, '-rc') }}
token: ${{ secrets.GITHUB_TOKEN }}
# ── Build for macOS / Windows / Linux x86_64 ───────────
release:
name: Build (${{ matrix.target }})
needs: [check-version, draft-release-notes]
if: ${{ !contains(github.ref_name, '-test') }}
strategy:
fail-fast: false
matrix:
include:
# macOS
- os: macos-latest
target: aarch64-apple-darwin
- os: macos-latest
target: x86_64-apple-darwin
# Windows
- os: windows-latest
target: x86_64-pc-windows-msvc
- os: windows-latest
target: aarch64-pc-windows-msvc
# Linux x86_64
- os: ubuntu-22.04
target: x86_64-unknown-linux-gnu
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
with:
targets: ${{ matrix.target }}
- name: Rust cache
uses: Swatinem/rust-cache@v2
with:
prefix-key: 'v1'
key: '${{ matrix.os }}-${{ matrix.target }}'
workspaces: src-tauri -> target
- name: Install Linux dependencies
if: matrix.os == 'ubuntu-22.04'
run: |
sudo apt-get update
sudo apt-get install -y \
libwebkit2gtk-4.1-dev \
libayatana-appindicator3-dev \
librsvg2-dev \
patchelf
- name: Install x86_64 OpenSSL (macOS Intel cross-compile)
if: matrix.target == 'x86_64-apple-darwin'
run: |
arch -x86_64 brew install openssl@3
echo "OPENSSL_DIR=$(arch -x86_64 brew --prefix openssl@3)" >> $GITHUB_ENV
echo "OPENSSL_INCLUDE_DIR=$(arch -x86_64 brew --prefix openssl@3)/include" >> $GITHUB_ENV
echo "OPENSSL_LIB_DIR=$(arch -x86_64 brew --prefix openssl@3)/lib" >> $GITHUB_ENV
- name: Install Protoc
uses: arduino/setup-protoc@v3
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/setup-node@v4
with:
node-version: '20'
- uses: pnpm/action-setup@v4
with:
run_install: false
- name: Get linked dependency versions
id: dep-versions
shell: bash
run: |
SM_SHA=$(git -C libs/stream-monaco rev-parse HEAD)
MS_SHA=$(git -C libs/markstream-vue rev-parse HEAD)
echo "cache-key=${{ runner.os }}-${{ matrix.target }}-linked-deps-${SM_SHA:0:12}-${MS_SHA:0:12}" >> $GITHUB_OUTPUT
- name: Cache linked dependencies
id: cache-linked-deps
uses: actions/cache@v4
with:
path: |
libs/stream-monaco/node_modules
libs/stream-monaco/dist
libs/markstream-vue/node_modules
libs/markstream-vue/packages/markdown-parser/node_modules
libs/markstream-vue/packages/markdown-parser/dist
libs/markstream-vue/packages/markstream-react/node_modules
libs/markstream-vue/packages/markstream-react/dist
key: ${{ steps.dep-versions.outputs.cache-key }}
- name: Build linked dependencies
if: steps.cache-linked-deps.outputs.cache-hit != 'true'
shell: bash
run: |
pnpm --dir libs/stream-monaco install --frozen-lockfile
pnpm --dir libs/stream-monaco build
pnpm --dir libs/markstream-vue install --frozen-lockfile
pnpm --dir libs/markstream-vue run build:parser
pnpm --dir libs/markstream-vue/packages/markstream-react build
- name: Install frontend dependencies
run: pnpm install --frozen-lockfile
- name: Build with Tauri
uses: tauri-apps/tauri-action@v0
env:
NODE_OPTIONS: '--max_old_space_size=4096'
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TAURI_SIGNING_PRIVATE_KEY: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY }}
TAURI_SIGNING_PRIVATE_KEY_PASSWORD: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY_PASSWORD }}
APPLE_SIGNING_IDENTITY: ${{ matrix.os == 'macos-latest' && '-' || '' }}
with:
tagName: ${{ github.ref_name }}
releaseName: 'BoosApi ${{ github.ref_name }}'
releaseBody: ${{ needs.draft-release-notes.outputs.body }}
releaseDraft: true
prerelease: ${{ contains(github.ref_name, '-rc') }}
tauriScript: pnpm tauri
args: --target ${{ matrix.target }}
includeUpdaterJson: true
- name: Package Windows portable (zip)
if: contains(matrix.target, 'windows')
shell: pwsh
run: |
$exe = "src-tauri/target/${{ matrix.target }}/release/BoosApi.exe"
$arch = if ("${{ matrix.target }}" -match "aarch64") { "arm64" } else { "x64" }
$zipName = "BoosApi_${{ github.ref_name }}_windows-${arch}-portable.zip"
Compress-Archive -Path $exe -DestinationPath $zipName
- name: Upload Windows portable to release
if: contains(matrix.target, 'windows')
uses: softprops/action-gh-release@v2
with:
tag_name: ${{ github.ref_name }}
draft: true
token: ${{ secrets.GITHUB_TOKEN }}
files: BoosApi_${{ github.ref_name }}_windows-*-portable.zip
# ── Build for Linux ARM64 (cross-compile) ──────────────
release-linux-arm:
name: Build (aarch64-unknown-linux-gnu)
needs: [check-version, draft-release-notes]
if: ${{ !contains(github.ref_name, '-test') }}
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
with:
targets: aarch64-unknown-linux-gnu
- name: Rust cache
uses: Swatinem/rust-cache@v2
with:
prefix-key: 'v1'
key: 'ubuntu-22.04-aarch64-unknown-linux-gnu'
workspaces: src-tauri -> target
- name: Setup cross-compilation sources
run: |
cat > /tmp/sources.list << 'EOF'
deb [arch=amd64,i386] http://archive.ubuntu.com/ubuntu jammy main multiverse universe restricted
deb [arch=amd64,i386] http://archive.ubuntu.com/ubuntu jammy-security main multiverse universe restricted
deb [arch=amd64,i386] http://archive.ubuntu.com/ubuntu jammy-updates main multiverse universe restricted
deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports jammy main multiverse universe restricted
deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports jammy-security main multiverse universe restricted
deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports jammy-updates main multiverse universe restricted
EOF
sudo mv /etc/apt/sources.list /etc/apt/sources.list.bak
sudo mv /tmp/sources.list /etc/apt/sources.list
sudo dpkg --add-architecture arm64
sudo apt-get update
- name: Install ARM64 dependencies
run: |
sudo apt-get install -y \
gcc-aarch64-linux-gnu \
g++-aarch64-linux-gnu \
libwebkit2gtk-4.1-dev:arm64 \
libayatana-appindicator3-dev:arm64 \
librsvg2-dev:arm64 \
libssl-dev:arm64 \
patchelf:arm64
- name: Install Protoc
uses: arduino/setup-protoc@v3
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/setup-node@v4
with:
node-version: '20'
- uses: pnpm/action-setup@v4
with:
run_install: false
- name: Get linked dependency versions
id: dep-versions
run: |
SM_SHA=$(git -C libs/stream-monaco rev-parse HEAD)
MS_SHA=$(git -C libs/markstream-vue rev-parse HEAD)
echo "cache-key=${{ runner.os }}-aarch64-unknown-linux-gnu-linked-deps-${SM_SHA:0:12}-${MS_SHA:0:12}" >> $GITHUB_OUTPUT
- name: Cache linked dependencies
id: cache-linked-deps
uses: actions/cache@v4
with:
path: |
libs/stream-monaco/node_modules
libs/stream-monaco/dist
libs/markstream-vue/node_modules
libs/markstream-vue/packages/markdown-parser/node_modules
libs/markstream-vue/packages/markdown-parser/dist
libs/markstream-vue/packages/markstream-react/node_modules
libs/markstream-vue/packages/markstream-react/dist
key: ${{ steps.dep-versions.outputs.cache-key }}
- name: Build linked dependencies
if: steps.cache-linked-deps.outputs.cache-hit != 'true'
run: |
pnpm --dir libs/stream-monaco install --frozen-lockfile
pnpm --dir libs/stream-monaco build
pnpm --dir libs/markstream-vue install --frozen-lockfile
pnpm --dir libs/markstream-vue run build:parser
pnpm --dir libs/markstream-vue/packages/markstream-react build
- name: Install frontend dependencies
run: pnpm install --frozen-lockfile
- name: Build for Linux ARM64
run: |
export PKG_CONFIG_ALLOW_CROSS=1
export PKG_CONFIG_PATH=/usr/lib/aarch64-linux-gnu/pkgconfig/:$PKG_CONFIG_PATH
export PKG_CONFIG_SYSROOT_DIR=/usr/aarch64-linux-gnu/
pnpm tauri build --target aarch64-unknown-linux-gnu --bundles deb,rpm
env:
NODE_OPTIONS: '--max_old_space_size=4096'
CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER: aarch64-linux-gnu-gcc
CC_aarch64_unknown_linux_gnu: aarch64-linux-gnu-gcc
CXX_aarch64_unknown_linux_gnu: aarch64-linux-gnu-g++
AR_aarch64_unknown_linux_gnu: aarch64-linux-gnu-ar
TAURI_SIGNING_PRIVATE_KEY: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY }}
TAURI_SIGNING_PRIVATE_KEY_PASSWORD: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY_PASSWORD }}
- name: Upload Linux ARM64 artifacts
uses: softprops/action-gh-release@v2
with:
tag_name: ${{ github.ref_name }}
name: 'BoosApi ${{ github.ref_name }}'
draft: true
prerelease: ${{ contains(github.ref_name, '-rc') }}
token: ${{ secrets.GITHUB_TOKEN }}
files: |
src-tauri/target/aarch64-unknown-linux-gnu/release/bundle/deb/*.deb
src-tauri/target/aarch64-unknown-linux-gnu/release/bundle/rpm/*.rpm
# ── Publish draft release as latest ────────────────────
publish-release:
name: Publish Release
needs: [release, release-linux-arm]
if: ${{ !contains(github.ref_name, '-test') }}
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Publish draft release
uses: softprops/action-gh-release@v2
with:
tag_name: ${{ github.ref_name }}
draft: false
prerelease: ${{ contains(github.ref_name, '-rc') }}
make_latest: true
token: ${{ secrets.GITHUB_TOKEN }}
# ── Deploy website after release ────────────────────────
deploy-website:
name: Deploy Website
needs: [publish-release]
if: ${{ !contains(github.ref_name, '-test') }}
runs-on: ubuntu-latest
steps:
- name: Trigger website deployment
uses: actions/github-script@v7
with:
script: |
await github.rest.actions.createWorkflowDispatch({
owner: context.repo.owner,
repo: context.repo.repo,
workflow_id: 'deploy-website.yml',
ref: 'main',
});
+101
View File
@@ -0,0 +1,101 @@
name: Test Build
on:
push:
tags:
- 'test-v*.*.*'
permissions: write-all
env:
CARGO_INCREMENTAL: 0
RUST_BACKTRACE: short
concurrency:
group: '${{ github.workflow }}-${{ github.ref }}'
cancel-in-progress: true
jobs:
test-build:
name: Test Build (aarch64-apple-darwin)
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
with:
targets: aarch64-apple-darwin
- name: Rust cache
uses: Swatinem/rust-cache@v2
with:
prefix-key: 'v1'
key: 'macos-latest-aarch64-apple-darwin'
workspaces: src-tauri -> target
- name: Install Protoc
uses: arduino/setup-protoc@v3
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/setup-node@v4
with:
node-version: '20'
- uses: pnpm/action-setup@v4
with:
run_install: false
- name: Get linked dependency versions
id: dep-versions
run: |
SM_SHA=$(git -C libs/stream-monaco rev-parse HEAD)
MS_SHA=$(git -C libs/markstream-vue rev-parse HEAD)
echo "cache-key=${{ runner.os }}-aarch64-apple-darwin-linked-deps-${SM_SHA:0:12}-${MS_SHA:0:12}" >> $GITHUB_OUTPUT
- name: Cache linked dependencies
id: cache-linked-deps
uses: actions/cache@v4
with:
path: |
libs/stream-monaco/node_modules
libs/stream-monaco/dist
libs/markstream-vue/node_modules
libs/markstream-vue/packages/markdown-parser/node_modules
libs/markstream-vue/packages/markdown-parser/dist
libs/markstream-vue/packages/markstream-react/node_modules
libs/markstream-vue/packages/markstream-react/dist
key: ${{ steps.dep-versions.outputs.cache-key }}
- name: Build linked dependencies
if: steps.cache-linked-deps.outputs.cache-hit != 'true'
run: |
pnpm --dir libs/stream-monaco install --frozen-lockfile
pnpm --dir libs/stream-monaco build
pnpm --dir libs/markstream-vue install --frozen-lockfile
pnpm --dir libs/markstream-vue run build:parser
pnpm --dir libs/markstream-vue/packages/markstream-react build
- name: Install frontend dependencies
run: pnpm install --frozen-lockfile
- name: Build with Tauri
uses: tauri-apps/tauri-action@v0
env:
NODE_OPTIONS: '--max_old_space_size=4096'
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TAURI_SIGNING_PRIVATE_KEY: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY }}
TAURI_SIGNING_PRIVATE_KEY_PASSWORD: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY_PASSWORD }}
APPLE_SIGNING_IDENTITY: '-'
with:
tagName: ${{ github.ref_name }}
releaseName: 'BoosApi ${{ github.ref_name }} (Test)'
releaseBody: 'Internal test build for scrollbar fix verification.'
releaseDraft: true
prerelease: true
tauriScript: pnpm tauri
args: --target aarch64-apple-darwin
+142
View File
@@ -0,0 +1,142 @@
name: Test Linux Build
on:
push:
tags:
- 'v*.*.*-test*'
permissions:
contents: write
env:
CARGO_INCREMENTAL: 0
RUST_BACKTRACE: short
concurrency:
group: '${{ github.workflow }}-${{ github.ref }}'
cancel-in-progress: true
jobs:
build-linux:
name: Build Linux test package (x86_64)
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
with:
targets: x86_64-unknown-linux-gnu
- name: Rust cache
uses: Swatinem/rust-cache@v2
with:
prefix-key: 'v1'
key: 'ubuntu-22.04-x86_64-unknown-linux-gnu-test'
workspaces: src-tauri -> target
- name: Install Linux dependencies
run: |
sudo apt-get update
sudo apt-get install -y \
libwebkit2gtk-4.1-dev \
libayatana-appindicator3-dev \
librsvg2-dev \
patchelf
- name: Install Protoc
uses: arduino/setup-protoc@v3
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/setup-node@v4
with:
node-version: '20'
- uses: pnpm/action-setup@v4
with:
run_install: false
- name: Get linked dependency versions
id: dep-versions
shell: bash
run: |
SM_SHA=$(git -C libs/stream-monaco rev-parse HEAD)
MS_SHA=$(git -C libs/markstream-vue rev-parse HEAD)
echo "cache-key=${{ runner.os }}-x86_64-unknown-linux-gnu-test-linked-deps-${SM_SHA:0:12}-${MS_SHA:0:12}" >> "$GITHUB_OUTPUT"
- name: Cache linked dependencies
id: cache-linked-deps
uses: actions/cache@v4
with:
path: |
libs/stream-monaco/node_modules
libs/stream-monaco/dist
libs/markstream-vue/node_modules
libs/markstream-vue/packages/markdown-parser/node_modules
libs/markstream-vue/packages/markdown-parser/dist
libs/markstream-vue/packages/markstream-react/node_modules
libs/markstream-vue/packages/markstream-react/dist
key: ${{ steps.dep-versions.outputs.cache-key }}
- name: Build linked dependencies
if: steps.cache-linked-deps.outputs.cache-hit != 'true'
run: |
pnpm --dir libs/stream-monaco install --frozen-lockfile
pnpm --dir libs/stream-monaco build
pnpm --dir libs/markstream-vue install --frozen-lockfile
pnpm --dir libs/markstream-vue run build:parser
pnpm --dir libs/markstream-vue/packages/markstream-react build
- name: Install frontend dependencies
run: pnpm install --frozen-lockfile
- name: Build Linux bundles
run: pnpm tauri build --target x86_64-unknown-linux-gnu --bundles appimage,rpm,deb
env:
NODE_OPTIONS: '--max_old_space_size=4096'
BOOSAPI_TEST_BUILD: '1'
TAURI_SIGNING_PRIVATE_KEY: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY }}
TAURI_SIGNING_PRIVATE_KEY_PASSWORD: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY_PASSWORD }}
- name: Publish Linux test release
uses: softprops/action-gh-release@v2
with:
tag_name: ${{ github.ref_name }}
name: 'BoosApi ${{ github.ref_name }}'
body: |
Linux test build for issue #83 diagnostics.
If BoosApi still opens as a blank window, start it with:
```bash
BOOSAPI_LOG_FILE="$HOME/boosapi-${{ github.ref_name }}.log" RUST_LOG=debug BOOSAPI_ENABLE_DEVTOOLS=1 ./BoosApi_0.0.76_amd64.AppImage
```
For the RPM install:
```bash
BOOSAPI_LOG_FILE="$HOME/boosapi-${{ github.ref_name }}-rpm.log" RUST_LOG=debug BOOSAPI_ENABLE_DEVTOOLS=1 BoosApi
```
If the log still stops around `builder.build(context)`, run the minimal-plugin diagnostic path:
```bash
BOOSAPI_LOG_FILE="$HOME/boosapi-${{ github.ref_name }}-minimal.log" RUST_LOG=debug BOOSAPI_ENABLE_DEVTOOLS=1 BOOSAPI_LINUX_MINIMAL_PLUGINS=1 ./BoosApi_0.0.76_amd64.AppImage
```
Please attach the generated log file back to issue #83.
draft: false
prerelease: true
make_latest: false
token: ${{ secrets.GITHUB_TOKEN }}
files: |
src-tauri/target/x86_64-unknown-linux-gnu/release/bundle/appimage/*.AppImage
src-tauri/target/x86_64-unknown-linux-gnu/release/bundle/appimage/*.AppImage.sig
src-tauri/target/x86_64-unknown-linux-gnu/release/bundle/rpm/*.rpm
src-tauri/target/x86_64-unknown-linux-gnu/release/bundle/rpm/*.rpm.sig
src-tauri/target/x86_64-unknown-linux-gnu/release/bundle/deb/*.deb
src-tauri/target/x86_64-unknown-linux-gnu/release/bundle/deb/*.deb.sig
+117
View File
@@ -0,0 +1,117 @@
name: Test Windows Build
on:
push:
tags:
- 'test-windows-v*.*.*'
permissions:
contents: write
env:
CARGO_INCREMENTAL: 0
RUST_BACKTRACE: short
concurrency:
group: '${{ github.workflow }}-${{ github.ref }}'
cancel-in-progress: true
jobs:
build-windows:
name: Build (x86_64-pc-windows-msvc)
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
with:
targets: x86_64-pc-windows-msvc
- name: Rust cache
uses: Swatinem/rust-cache@v2
with:
prefix-key: 'v1'
key: 'windows-latest-x86_64-pc-windows-msvc'
workspaces: src-tauri -> target
- name: Install Protoc
uses: arduino/setup-protoc@v3
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/setup-node@v4
with:
node-version: '20'
- uses: pnpm/action-setup@v4
with:
run_install: false
- name: Get linked dependency versions
id: dep-versions
shell: bash
run: |
SM_SHA=$(git -C libs/stream-monaco rev-parse HEAD)
MS_SHA=$(git -C libs/markstream-vue rev-parse HEAD)
echo "cache-key=${{ runner.os }}-x86_64-pc-windows-msvc-linked-deps-${SM_SHA:0:12}-${MS_SHA:0:12}" >> $GITHUB_OUTPUT
- name: Cache linked dependencies
id: cache-linked-deps
uses: actions/cache@v4
with:
path: |
libs/stream-monaco/node_modules
libs/stream-monaco/dist
libs/markstream-vue/node_modules
libs/markstream-vue/packages/markdown-parser/node_modules
libs/markstream-vue/packages/markdown-parser/dist
libs/markstream-vue/packages/markstream-react/node_modules
libs/markstream-vue/packages/markstream-react/dist
key: ${{ steps.dep-versions.outputs.cache-key }}
- name: Build linked dependencies
if: steps.cache-linked-deps.outputs.cache-hit != 'true'
shell: bash
run: |
pnpm --dir libs/stream-monaco install --frozen-lockfile
pnpm --dir libs/stream-monaco build
pnpm --dir libs/markstream-vue install --frozen-lockfile
pnpm --dir libs/markstream-vue run build:parser
pnpm --dir libs/markstream-vue/packages/markstream-react build
- name: Install frontend dependencies
run: pnpm install --frozen-lockfile
- name: Build with Tauri
uses: tauri-apps/tauri-action@v0
env:
NODE_OPTIONS: '--max_old_space_size=4096'
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TAURI_SIGNING_PRIVATE_KEY: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY }}
TAURI_SIGNING_PRIVATE_KEY_PASSWORD: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY_PASSWORD }}
with:
tagName: ${{ github.ref_name }}
releaseName: 'BoosApi Test ${{ github.ref_name }}'
releaseDraft: true
prerelease: true
tauriScript: pnpm tauri
args: --target x86_64-pc-windows-msvc
- name: Package Windows portable (zip)
shell: pwsh
run: |
$exe = "src-tauri/target/x86_64-pc-windows-msvc/release/BoosApi.exe"
$zipName = "BoosApi_${{ github.ref_name }}_windows-x64-portable.zip"
Compress-Archive -Path $exe -DestinationPath $zipName
- name: Upload Windows portable to release
uses: softprops/action-gh-release@v2
with:
tag_name: ${{ github.ref_name }}
draft: true
token: ${{ secrets.GITHUB_TOKEN }}
files: BoosApi_${{ github.ref_name }}_windows-x64-portable.zip