From 9e2486bee32f044b02daf3e31b4f74c3f7b1e3ae Mon Sep 17 00:00:00 2001 From: Laxyny Date: Tue, 23 Jun 2026 18:02:26 +0200 Subject: [PATCH] Release v0.1.2 --- .github/workflows/release.yml | 7 +++++-- Cargo.lock | 6 +++--- Cargo.toml | 2 +- bindings/python/pyproject.toml | 2 +- docs/RELEASE.md | 4 ++++ inspectra-gui/package-lock.json | 4 ++-- inspectra-gui/package.json | 2 +- inspectra-gui/src-tauri/Cargo.toml | 2 +- inspectra-gui/src-tauri/tauri.conf.json | 2 +- scripts/prepare-release.mjs | 18 +++++++++++++++++- 10 files changed, 36 insertions(+), 13 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 030408a..43254ab 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -30,7 +30,6 @@ concurrency: env: CARGO_TERM_COLOR: always - RUST_TOOLCHAIN: 1.85.1 RELEASE_TAG: ${{ github.event_name == 'workflow_dispatch' && inputs.tag || github.ref_name }} RELEASE_DRAFT: ${{ github.event_name == 'workflow_dispatch' && format('{0}', inputs.draft) || 'false' }} RELEASE_PRERELEASE: ${{ github.event_name == 'workflow_dispatch' && format('{0}', inputs.prerelease) || format('{0}', contains(github.ref_name, '-')) }} @@ -45,18 +44,22 @@ jobs: include: - name: Windows os: windows-latest + rust_toolchain: stable rust_targets: "" args: "" - name: Linux os: ubuntu-22.04 + rust_toolchain: 1.88.0 rust_targets: "" args: "" - name: macOS arm64 os: macos-latest + rust_toolchain: stable rust_targets: aarch64-apple-darwin,x86_64-apple-darwin args: --target aarch64-apple-darwin - name: macOS x64 os: macos-latest + rust_toolchain: stable rust_targets: aarch64-apple-darwin,x86_64-apple-darwin args: --target x86_64-apple-darwin @@ -70,7 +73,7 @@ jobs: - name: Install Rust uses: dtolnay/rust-toolchain@master with: - toolchain: ${{ env.RUST_TOOLCHAIN }} + toolchain: ${{ matrix.rust_toolchain }} targets: ${{ matrix.rust_targets }} - name: Install Node.js diff --git a/Cargo.lock b/Cargo.lock index 9a70071..042be62 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1556,7 +1556,7 @@ dependencies = [ [[package]] name = "inspectra-core" -version = "0.1.0" +version = "0.1.2" dependencies = [ "anyhow", "env_logger", @@ -1573,7 +1573,7 @@ dependencies = [ [[package]] name = "inspectra-gui" -version = "0.1.0" +version = "0.1.2" dependencies = [ "base64 0.21.7", "image", @@ -1588,7 +1588,7 @@ dependencies = [ [[package]] name = "inspectra-python" -version = "0.1.0" +version = "0.1.2" dependencies = [ "inspectra-core", "pyo3", diff --git a/Cargo.toml b/Cargo.toml index e2a56a7..0df98f1 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -7,7 +7,7 @@ members = [ resolver = "2" [workspace.package] -version = "0.1.1" +version = "0.1.2" edition = "2021" authors = ["Nodasys "] license = "MIT" diff --git a/bindings/python/pyproject.toml b/bindings/python/pyproject.toml index 9c4d85e..0cd6568 100644 --- a/bindings/python/pyproject.toml +++ b/bindings/python/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "maturin" [project] name = "inspectra" -version = "0.1.1" +version = "0.1.2" description = "Memory analysis and manipulation framework" authors = [ { name = "Nodasys", email = "kevin.gregoire@nodasys.com" } diff --git a/docs/RELEASE.md b/docs/RELEASE.md index 54baf17..9a19024 100644 --- a/docs/RELEASE.md +++ b/docs/RELEASE.md @@ -8,6 +8,9 @@ then uploads the generated bundles to the matching GitHub Release. ## Release artifacts The workflow is triggered by tags named `vX.Y.Z`, for example `v0.2.0`. +The Linux build intentionally uses a pinned Rust toolchain while Inspectra is on +the Tauri v1 stack, because its WebKitGTK dependency chain is sensitive to newer +Rust releases. Expected artifacts: @@ -31,6 +34,7 @@ node scripts/prepare-release.mjs 0.2.0 The script synchronizes the version in: - `Cargo.toml` +- `Cargo.lock` - `inspectra-gui/src-tauri/Cargo.toml` - `inspectra-gui/src-tauri/tauri.conf.json` - `inspectra-gui/package.json` diff --git a/inspectra-gui/package-lock.json b/inspectra-gui/package-lock.json index 1031f4d..3f91131 100644 --- a/inspectra-gui/package-lock.json +++ b/inspectra-gui/package-lock.json @@ -1,12 +1,12 @@ { "name": "inspectra-gui", - "version": "0.1.1", + "version": "0.1.2", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "inspectra-gui", - "version": "0.1.1", + "version": "0.1.2", "devDependencies": { "@tauri-apps/cli": "^1.5.0" } diff --git a/inspectra-gui/package.json b/inspectra-gui/package.json index aa5cbf3..eafad13 100644 --- a/inspectra-gui/package.json +++ b/inspectra-gui/package.json @@ -1,6 +1,6 @@ { "name": "inspectra-gui", - "version": "0.1.1", + "version": "0.1.2", "description": "Inspectra Memory Analysis Framework - GUI", "scripts": { "tauri": "tauri", diff --git a/inspectra-gui/src-tauri/Cargo.toml b/inspectra-gui/src-tauri/Cargo.toml index a8dc5ab..1fcab3b 100644 --- a/inspectra-gui/src-tauri/Cargo.toml +++ b/inspectra-gui/src-tauri/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "inspectra-gui" -version = "0.1.1" +version = "0.1.2" edition = "2021" authors = ["Nodasys "] diff --git a/inspectra-gui/src-tauri/tauri.conf.json b/inspectra-gui/src-tauri/tauri.conf.json index 141e977..f3026f7 100644 --- a/inspectra-gui/src-tauri/tauri.conf.json +++ b/inspectra-gui/src-tauri/tauri.conf.json @@ -8,7 +8,7 @@ }, "package": { "productName": "Inspectra", - "version": "0.1.1" + "version": "0.1.2" }, "tauri": { "allowlist": { diff --git a/scripts/prepare-release.mjs b/scripts/prepare-release.mjs index cf66584..29dfe23 100644 --- a/scripts/prepare-release.mjs +++ b/scripts/prepare-release.mjs @@ -38,6 +38,11 @@ function writeProjectFile(path, contents) { } function record(path, changed) { + const existing = changes.find((entry) => entry.path === path); + if (existing) { + existing.changed = existing.changed || changed; + return; + } changes.push({ path, changed }); } @@ -88,6 +93,17 @@ replaceOnce( "Python package version", ); +for (const packageName of ["inspectra-core", "inspectra-gui", "inspectra-python"]) { + replaceOnce( + "Cargo.lock", + new RegExp( + `(\\[\\[package\\]\\]\\r?\\nname = "${packageName}"\\r?\\nversion = ")[^"]+(")`, + ), + `$1${version}$2`, + `${packageName} lockfile version`, + ); +} + updateJson("inspectra-gui/src-tauri/tauri.conf.json", (data) => { data.package.version = version; }); @@ -123,7 +139,7 @@ if (unchanged.length > 0) { } console.log("\nNext release commands:"); -console.log("git add Cargo.toml inspectra-gui bindings/python/pyproject.toml"); +console.log("git add Cargo.toml Cargo.lock inspectra-gui bindings/python/pyproject.toml"); console.log(`git commit -m "Release ${tag}"`); console.log(`git tag ${tag}`); console.log(`git push origin main ${tag}`);