mirror of
https://github.com/Momoko-Ayase/Senbei.git
synced 2026-11-24 02:52:47 +08:00
feat(gui): finalize native desktop release 1.4.0
Apply the reviewed five-language wording and action-button sizing fixes. Preserve serialized English messages and report wire values. Honor configured resource limits during added-file identification, with regression tests for UI requests and native package inspection. Build and package the CLI and desktop app together in CI and release archives, including the font license and usage instructions. Bump workspace and browser bindings to 1.4.0 without upgrading third-party dependencies.
This commit is contained in:
1 parent
5121ec8ee3
commit
20a68b1c73
24 files changed
+537
-351
No files matched your search
@@ -59,13 +59,15 @@ jobs:
|
||||
- os: windows-latest
|
||||
target: x86_64-pc-windows-msvc
|
||||
bin: senbei.exe
|
||||
gui_bin: senbei-gui.exe
|
||||
- os: ubuntu-latest
|
||||
target: x86_64-unknown-linux-gnu
|
||||
bin: senbei
|
||||
gui_bin: senbei-gui
|
||||
runs-on: ${{ matrix.os }}
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- run: cargo build --release --locked
|
||||
- run: cargo build --release --locked -p senbei-cli -p senbei-gui
|
||||
- name: Package senbei-<version>-<target>
|
||||
shell: bash
|
||||
run: |
|
||||
@@ -74,7 +76,9 @@ jobs:
|
||||
name="senbei-$version-${{ matrix.target }}"
|
||||
mkdir -p "stage/$name"
|
||||
cp "target/release/${{ matrix.bin }}" "stage/$name/"
|
||||
cp LICENSE "stage/$name/"
|
||||
cp "target/release/${{ matrix.gui_bin }}" "stage/$name/"
|
||||
cp LICENSE README.md "stage/$name/"
|
||||
cp senbei-gui/assets/fonts/OFL.txt "stage/$name/ASUL-OFL.txt"
|
||||
awk '/^## Legal notice and intended use/{f=1} f && /^## / && !/Legal notice/{exit} f' \
|
||||
README.md > "stage/$name/LEGAL-NOTICE.md"
|
||||
echo "package=$name" >> "$GITHUB_ENV"
|
||||
@@ -85,6 +89,7 @@ jobs:
|
||||
with:
|
||||
name: ${{ env.package }}
|
||||
path: stage/
|
||||
if-no-files-found: error
|
||||
retention-days: 14
|
||||
|
||||
web:
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
name: Release
|
||||
|
||||
# Publishing a GitHub release:
|
||||
# - cli-assets builds the Windows and Linux CLI binaries and attaches
|
||||
# senbei-<version>-<target>.zip (binary + LICENSE + the legal
|
||||
# notice extracted from README.md) to the release.
|
||||
# - cli-assets builds the Windows and Linux CLI and desktop GUI and attaches
|
||||
# senbei-<version>-<target>.zip (both binaries, README, LICENSE, the Asul
|
||||
# font license, and the legal notice extracted from README.md).
|
||||
# - deploy-web rebuilds the browser app and pushes it to Cloudflare Pages
|
||||
# (https://senbei.pages.dev). Requires two repository secrets:
|
||||
# CLOUDFLARE_API_TOKEN (Pages:Edit) and CLOUDFLARE_ACCOUNT_ID. The Pages
|
||||
@@ -27,13 +27,15 @@ jobs:
|
||||
- os: windows-latest
|
||||
target: x86_64-pc-windows-msvc
|
||||
bin: senbei.exe
|
||||
gui_bin: senbei-gui.exe
|
||||
- os: ubuntu-latest
|
||||
target: x86_64-unknown-linux-gnu
|
||||
bin: senbei
|
||||
gui_bin: senbei-gui
|
||||
runs-on: ${{ matrix.os }}
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- run: cargo build --release --locked
|
||||
- run: cargo build --release --locked -p senbei-cli -p senbei-gui
|
||||
- name: Package senbei-<version>-<target>
|
||||
shell: bash
|
||||
run: |
|
||||
@@ -42,7 +44,9 @@ jobs:
|
||||
name="senbei-$version-${{ matrix.target }}"
|
||||
mkdir -p "stage/$name"
|
||||
cp "target/release/${{ matrix.bin }}" "stage/$name/"
|
||||
cp LICENSE "stage/$name/"
|
||||
cp "target/release/${{ matrix.gui_bin }}" "stage/$name/"
|
||||
cp LICENSE README.md "stage/$name/"
|
||||
cp senbei-gui/assets/fonts/OFL.txt "stage/$name/ASUL-OFL.txt"
|
||||
awk '/^## Legal notice and intended use/{f=1} f && /^## / && !/Legal notice/{exit} f' \
|
||||
README.md > "stage/$name/LEGAL-NOTICE.md"
|
||||
# Release assets are served as-is (unlike CI artifacts, which the
|
||||
|
||||
Reference in new issue
Block a user