From b06bf08cc32d42a7f7a6d3a84441c174ff8930d0 Mon Sep 17 00:00:00 2001 From: Mae PUGIN <48982737+mornepousse@users.noreply.github.com> Date: Tue, 7 Apr 2026 16:23:12 +0200 Subject: [PATCH] =?UTF-8?q?release:=20v1.0.0=20=E2=80=94=20KeSp=20Controll?= =?UTF-8?q?er=20multi-platform?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Rename package to KeSp_controller - Version 1.0.0 - GitHub Actions workflow for Linux/Windows/macOS releases - Auto-build on tag push (v*) - Window title and version strings updated Co-Authored-By: Claude Opus 4.6 (1M context) --- .github/workflows/release.yml | 67 ++++++++++++++++++++++++++++++++++ Cargo.lock | 24 ++++++------ Cargo.toml | 4 +- ui/components/status_bar.slint | 2 +- ui/main.slint | 2 +- ui/tabs/tab_settings.slint | 2 +- 6 files changed, 84 insertions(+), 17 deletions(-) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..ab86f47 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,67 @@ +name: Release + +on: + push: + tags: ['v*'] + +jobs: + build: + strategy: + matrix: + include: + - os: ubuntu-latest + target: x86_64-unknown-linux-gnu + name: KeSp_controller-linux-x86_64 + - os: windows-latest + target: x86_64-pc-windows-msvc + name: KeSp_controller-windows-x86_64.exe + - os: macos-13 + target: x86_64-apple-darwin + name: KeSp_controller-macos-intel + - os: macos-latest + target: aarch64-apple-darwin + name: KeSp_controller-macos-arm64 + + runs-on: ${{ matrix.os }} + + steps: + - uses: actions/checkout@v4 + + - uses: dtolnay/rust-toolchain@stable + with: + targets: ${{ matrix.target }} + + - name: Install system deps (Linux) + if: runner.os == 'Linux' + run: sudo apt-get update && sudo apt-get install -y libudev-dev + + - name: Build + run: cargo build --release --target ${{ matrix.target }} + + - name: Rename binary + shell: bash + run: | + src="target/${{ matrix.target }}/release/KeSp_controller" + [ -f "${src}.exe" ] && src="${src}.exe" + cp "$src" "${{ matrix.name }}" + + - uses: actions/upload-artifact@v4 + with: + name: ${{ matrix.name }} + path: ${{ matrix.name }} + + release: + needs: build + runs-on: ubuntu-latest + permissions: + contents: write + steps: + - uses: actions/download-artifact@v4 + + - uses: softprops/action-gh-release@v2 + with: + files: | + KeSp_controller-linux-x86_64/KeSp_controller-linux-x86_64 + KeSp_controller-windows-x86_64.exe/KeSp_controller-windows-x86_64.exe + KeSp_controller-macos-intel/KeSp_controller-macos-intel + KeSp_controller-macos-arm64/KeSp_controller-macos-arm64 diff --git a/Cargo.lock b/Cargo.lock index 41df5da..c00d127 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2,6 +2,18 @@ # It is not intended for manual editing. version = 4 +[[package]] +name = "KeSp_controller" +version = "1.0.0" +dependencies = [ + "rfd", + "serde", + "serde_json", + "serialport", + "slint", + "slint-build", +] + [[package]] name = "ab_glyph" version = "0.2.32" @@ -2555,18 +2567,6 @@ dependencies = [ "wasm-bindgen", ] -[[package]] -name = "kase-controller" -version = "0.6.0" -dependencies = [ - "rfd", - "serde", - "serde_json", - "serialport", - "slint", - "slint-build", -] - [[package]] name = "keyboard-types" version = "0.7.0" diff --git a/Cargo.toml b/Cargo.toml index 27b5243..97f1e24 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] -name = "kase-controller" -version = "0.6.0" +name = "KeSp_controller" +version = "1.0.0" edition = "2021" [dependencies] diff --git a/ui/components/status_bar.slint b/ui/components/status_bar.slint index fcaaeb1..f86049e 100644 --- a/ui/components/status_bar.slint +++ b/ui/components/status_bar.slint @@ -30,7 +30,7 @@ export component StatusBar inherits Rectangle { // Version Text { - text: "v0.6.0"; + text: "v1.0.0"; color: Theme.fg-secondary; font-size: 11px; vertical-alignment: center; diff --git a/ui/main.slint b/ui/main.slint index 55ba6ce..4018240 100644 --- a/ui/main.slint +++ b/ui/main.slint @@ -45,7 +45,7 @@ component DarkTab inherits Rectangle { } export component MainWindow inherits Window { - title: "KaSe Controller"; + title: "KeSp Controller"; preferred-width: 1000px; preferred-height: 700px; min-width: 600px; diff --git a/ui/tabs/tab_settings.slint b/ui/tabs/tab_settings.slint index 1b6a332..e05a88f 100644 --- a/ui/tabs/tab_settings.slint +++ b/ui/tabs/tab_settings.slint @@ -132,7 +132,7 @@ export component TabSettings inherits Rectangle { spacing: 8px; Text { text: "About"; color: Theme.fg-primary; font-size: 14px; font-weight: 600; } - Text { text: "KeSp Controller v0.6.0"; color: Theme.fg-secondary; font-size: 12px; } + Text { text: "KeSp Controller v1.0.0"; color: Theme.fg-secondary; font-size: 12px; } Text { text: "Split keyboard configurator"; color: Theme.fg-secondary; font-size: 12px; } Text { text: "Made with Slint"; color: Theme.accent-purple; font-size: 11px; } }