diff --git a/.env.example b/.env.example index bed4e7d..6cf4442 100644 --- a/.env.example +++ b/.env.example @@ -26,7 +26,7 @@ APPLE_DISTRIBUTION_IDENTITY= APPLE_INSTALLER_IDENTITY= # "Mac App Store Connect" provisioning profile for com.patchbay.patchprobe (keep it outside the repo) APPLE_PROVISIONING_PROFILE= -# Optional: CFBundleVersion of the upload (defaults to a yyyymmddHHMM timestamp) +# Optional: overrides the CFBundleVersion counter in rust/app/src-tauri/appstore/build-number BUILD_NUMBER= # --- Tauri updater signing (only if the updater plugin is ever enabled) ---------------- diff --git a/.github/workflows/bundle.yml b/.github/workflows/bundle.yml new file mode 100644 index 0000000..efef197 --- /dev/null +++ b/.github/workflows/bundle.yml @@ -0,0 +1,65 @@ +name: Bundle + +on: + workflow_dispatch: + push: + tags: ["v*"] + +env: + CARGO_TERM_COLOR: always + +jobs: + bundle: + name: ${{ matrix.os }} + permissions: + contents: read + strategy: + fail-fast: false + matrix: + include: + - os: windows-latest + bundles: msi,nsis + - os: ubuntu-22.04 + bundles: appimage,deb + runs-on: ${{ matrix.os }} + steps: + - uses: actions/checkout@v5 + + - name: Install Tauri system dependencies (Linux) + 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 \ + build-essential libssl-dev patchelf + + - uses: actions/setup-node@v5 + with: + node-version: 22 + cache: npm + cache-dependency-path: rust/app/package-lock.json + + - uses: dtolnay/rust-toolchain@stable + + - uses: Swatinem/rust-cache@v2 + with: + workspaces: rust + + - name: npm ci + working-directory: rust/app + run: npm ci + + - name: Build installers + working-directory: rust/app + run: npx tauri build --bundles ${{ matrix.bundles }} + + - uses: actions/upload-artifact@v4 + with: + name: patchprobe-${{ runner.os }}-x64 + path: | + rust/target/release/bundle/msi/*.msi + rust/target/release/bundle/nsis/*.exe + rust/target/release/bundle/appimage/*.AppImage + rust/target/release/bundle/deb/*.deb + if-no-files-found: error + retention-days: 30 diff --git a/README.md b/README.md index 91d81cb..9e4a45b 100644 --- a/README.md +++ b/README.md @@ -160,15 +160,17 @@ Everything runs locally: no account, no cloud, no telemetry. ## Downloads -> **Version 1.0.0.** The macOS build is for **Apple silicon**, signed with an Apple Developer ID -> and notarized. Intel, Windows and Linux packages are coming soon; until then, -> [build from source](#build-from-source). +> **Latest release: 1.0.1.** The [Windows x64 release](https://github.com/Patchbay-s/PatchProbe/releases/tag/v1.0.1) +> contains tested MSI and NSIS installers. The [macOS 1.0.0 release](https://github.com/Patchbay-s/PatchProbe/releases/tag/v1.0.0) +> is for **Apple silicon**, signed with an Apple Developer ID and notarized. Linux x64 packages are +> available as [test workflow artifacts](https://github.com/Patchbay-s/PatchProbe/actions/runs/39068547383), +> not as a production release. ### macOS | Build | File | Notes | |---|---|---| -| App, Apple silicon (arm64) | [`PatchProbe_1.0.0_aarch64.dmg`](https://github.com/Patchbay-s/PatchProbe/releases/download/v1.0.0/PatchProbe_1.0.0_aarch64.dmg) | Signed and notarized, all features | +| App, Apple silicon (arm64) | [`PatchProbe_1.0.0_macos-aarch64.dmg`](https://github.com/Patchbay-s/PatchProbe/releases/download/v1.0.0/PatchProbe_1.0.0_macos-aarch64.dmg) | Signed and notarized, all features | | Mac App Store | Coming soon | Sandboxed edition: no MAC addresses, vendors, traceroute or nmap | | App, universal (Apple silicon + Intel) | `PatchProbe__universal.dmg` | Coming soon | @@ -185,16 +187,20 @@ Verify the download against [`SHA256SUMS.txt`](https://github.com/Patchbay-s/Pat | Build | Installer | Portable | |---|---|---| -| x64 (64-bit Intel/AMD) | `patchprobe--windows-x64.msi` — coming soon | `patchprobe--windows-x64-portable.zip` — coming soon | -| arm64 | `patchprobe--windows-arm64.msi` — coming soon | `patchprobe--windows-arm64-portable.zip` — coming soon | +| x64 (64-bit Intel/AMD) | [MSI](https://github.com/Patchbay-s/PatchProbe/releases/download/v1.0.1/PatchProbe_1.0.1_windows-x64_en-US.msi) · [NSIS](https://github.com/Patchbay-s/PatchProbe/releases/download/v1.0.1/PatchProbe_1.0.1_windows-x64-setup.exe) | Not currently built | +| arm64 | Coming soon | Coming soon | ### Linux | Format | x86_64 | aarch64 (ARM64) | |---|---|---| -| AppImage | `patchprobe--linux-x86_64.AppImage` — coming soon | `patchprobe--linux-aarch64.AppImage` — coming soon | -| Debian/Ubuntu | `patchprobe--linux-x86_64.deb` — coming soon | `patchprobe--linux-aarch64.deb` — coming soon | -| Fedora/RHEL/openSUSE | `patchprobe--linux-x86_64.rpm` — coming soon | `patchprobe--linux-aarch64.rpm` — coming soon | +| AppImage | [`patchprobe-Linux-x64` artifact](https://github.com/Patchbay-s/PatchProbe/actions/runs/39068547383) | Coming soon | +| Debian/Ubuntu | [`patchprobe-Linux-x64` artifact](https://github.com/Patchbay-s/PatchProbe/actions/runs/39068547383) | Coming soon | +| Fedora/RHEL/openSUSE | Not currently built | Not currently built | + +Open the workflow run above and download the Linux artifact from **Artifacts**. +Artifacts are retained for 30 days. These unsigned packages are for testing and are not a +production release. **nmap** is never bundled. Install it separately if you want service detection. @@ -245,14 +251,15 @@ See [CONTRIBUTING.md](CONTRIBUTING.md) for per-OS details and the permissions a ## Status -Current version: **1.0.0**, [released](https://github.com/Patchbay-s/PatchProbe/releases/tag/v1.0.0) for -Apple silicon (signed and notarized). Follow the +Current published Windows version: **1.0.1**, [released](https://github.com/Patchbay-s/PatchProbe/releases/tag/v1.0.1). +The macOS Apple silicon release remains **1.0.0**, signed and notarized. Follow the [releases page](https://github.com/Patchbay-s/PatchProbe/releases) for updates. What works today: - Everything described above is implemented in the Rust/Tauri app and covered by about 200 automated tests (parsers and protocol decoders fed with fixtures from all three OS, network techniques against loopback test servers, engine concurrency and cancellation). -- CI builds, lints and tests the workspace on macOS, Windows and Linux. +- CI builds, lints, tests and packages the workspace on macOS, Windows and Linux. Windows x64 + installers were tested successfully; Linux packages remain test artifacts. What is missing or known to be rough: @@ -283,6 +290,7 @@ people who work backstage and those who keep their lab running. | | **PatchProbe** | Fast network scanner for macOS, Windows & Linux | *you are here* | | | **PatchTime** | Overtime and work summaries | [Code](https://github.com/Patchbay-s/PatchTime) | | | **PatchNode** | iPhone, iPad & Mac dashboard for your homelab | [Code](https://github.com/Patchbay-s/PatchNode) | +| **PatchPad** | Game controller tester for macOS, Windows & Linux | [Code](https://github.com/Patchbay-s/PatchPad) | ## Responsible use diff --git a/rust/Cargo.lock b/rust/Cargo.lock index 5220907..e28b737 100644 --- a/rust/Cargo.lock +++ b/rust/Cargo.lock @@ -2283,7 +2283,7 @@ dependencies = [ [[package]] name = "patchprobe-app" -version = "1.0.0" +version = "1.0.1" dependencies = [ "chrono", "patchprobe-core", @@ -2300,7 +2300,7 @@ dependencies = [ [[package]] name = "patchprobe-core" -version = "1.0.0" +version = "1.0.1" dependencies = [ "async-trait", "chrono", @@ -2319,7 +2319,7 @@ dependencies = [ [[package]] name = "patchprobe-platform" -version = "1.0.0" +version = "1.0.1" dependencies = [ "async-trait", "directories", diff --git a/rust/Cargo.toml b/rust/Cargo.toml index f158df6..8ebce93 100644 --- a/rust/Cargo.toml +++ b/rust/Cargo.toml @@ -7,7 +7,7 @@ members = [ ] [workspace.package] -version = "1.0.0" +version = "1.0.1" edition = "2021" license = "GPL-3.0-only" publish = false diff --git a/rust/app/package-lock.json b/rust/app/package-lock.json index a571d4e..e5f2428 100644 --- a/rust/app/package-lock.json +++ b/rust/app/package-lock.json @@ -1,12 +1,12 @@ { "name": "patchprobe-app", - "version": "1.0.0", + "version": "1.0.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "patchprobe-app", - "version": "1.0.0", + "version": "1.0.1", "license": "GPL-3.0-only", "dependencies": { "@tauri-apps/api": "^2.12.3", diff --git a/rust/app/package.json b/rust/app/package.json index f89b4be..82772f8 100644 --- a/rust/app/package.json +++ b/rust/app/package.json @@ -1,7 +1,7 @@ { "name": "patchprobe-app", "private": true, - "version": "1.0.0", + "version": "1.0.1", "license": "GPL-3.0-only", "type": "module", "scripts": { diff --git a/rust/app/scripts/release-appstore.sh b/rust/app/scripts/release-appstore.sh index 0d083a1..3e15a00 100755 --- a/rust/app/scripts/release-appstore.sh +++ b/rust/app/scripts/release-appstore.sh @@ -41,8 +41,10 @@ has_identity "$APPLE_INSTALLER_IDENTITY" || fail "certificat introuvable : $APPL fail "APPLE_PROVISIONING_PROFILE doit pointer vers le profil « Mac App Store Connect » (.provisionprofile)." version="$(node -p 'require(process.argv[1]).version' "$app_dir/src-tauri/tauri.conf.json")" -# CFBundleVersion doit croître à chaque envoi pour une même version. -build_number="${BUILD_NUMBER:-$(date +%Y%m%d%H%M)}" +# CFBundleVersion doit croître à chaque envoi : compteur versionné dans `appstore/build-number`, +# à incrémenter avant chaque soumission (BUILD_NUMBER reste prioritaire pour un envoi ponctuel). +build_number="${BUILD_NUMBER:-$(tr -d '[:space:]' < "$app_dir/src-tauri/appstore/build-number")}" +[[ "$build_number" =~ ^[0-9]+$ ]] || fail "numéro de build invalide : « $build_number »." # Binaire universel si la cible Intel est installée, sinon Apple silicon seulement : l'App Store # n'accepte alors le paquet qu'avec macOS 12.0 minimum (erreur 90869). diff --git a/rust/app/src-tauri/appstore/Entitlements.plist.in b/rust/app/src-tauri/appstore/Entitlements.plist.in index 1768ae2..e4930c1 100644 --- a/rust/app/src-tauri/appstore/Entitlements.plist.in +++ b/rust/app/src-tauri/appstore/Entitlements.plist.in @@ -9,9 +9,6 @@ com.apple.security.network.client - - com.apple.security.network.server - com.apple.security.files.user-selected.read-write diff --git a/rust/app/src-tauri/appstore/build-number b/rust/app/src-tauri/appstore/build-number new file mode 100644 index 0000000..8ccca7d --- /dev/null +++ b/rust/app/src-tauri/appstore/build-number @@ -0,0 +1 @@ +202610180000 diff --git a/rust/app/src-tauri/tauri.conf.json b/rust/app/src-tauri/tauri.conf.json index 3c48a2e..e5c019b 100644 --- a/rust/app/src-tauri/tauri.conf.json +++ b/rust/app/src-tauri/tauri.conf.json @@ -1,7 +1,7 @@ { "$schema": "https://schema.tauri.app/config/2", "productName": "PatchProbe", - "version": "1.0.0", + "version": "1.0.1", "identifier": "com.patchbay.patchprobe", "build": { "beforeDevCommand": "npm run dev",