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/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",