Release app config: the engine travels inside every installer, signed updater artifacts overlay, macOS 15 minimum

This commit is contained in:
Niko1221 committed 2026-10-19 07:28:37 +02:00
1 parent 98b865c56f
commit 09b8b54d19
4 files changed
+45 -3

No files matched your search

+3 -2
View File
@@ -35,7 +35,8 @@
"../../host/package.json": "host/package.json",
"resources/node": "node",
"resources/control": "control",
"resources/harness": "harness"
"resources/harness": "harness",
"resources/engine-bundle": "engine-bundle"
},
"linux": {
"appimage": {
@@ -43,7 +44,7 @@
}
},
"macOS": {
"minimumSystemVersion": "11.0",
"minimumSystemVersion": "15.0",
"entitlements": "entitlements.plist"
},
"createUpdaterArtifacts": false,
@@ -0,0 +1,5 @@
{
"bundle": {
"createUpdaterArtifacts": true
}
}
+3 -1
View File
@@ -115,7 +115,9 @@ A key rotation is a release that carries both public keys; the old private key s
python packaging/feed_tool.py sign-package <engine package folder> --key <feed-key.json>
python packaging/feed_tool.py pack-engine <engine package folder> --out RELEASE/engine
python packaging/feed_tool.py pack-control <control bundle folder> --version V --platform P --out RELEASE/control
TAURI_SIGNING_PRIVATE_KEY=<key> npx tauri build --config tauri.release.conf.json # makes the signed installers
# the app installers carry the engine out of the box: fill apps/desktop/src-tauri/resources/engine-bundle/<package folder> with the signed
# engine packages first (the tester builds do the same); tauri.conf.json lists that folder as a resource for every build
TAURI_SIGNING_PRIVATE_KEY=<path to tauri-updater.key> npx tauri build --config src-tauri/tauri.release.conf.json # signed installers + latest.json inputs
python packaging/feed_tool.py build-feed --out RELEASE --sequence N --key <feed-key.json> --engine RELEASE/engine --control RELEASE/control --app-json <tauri latest.json>
python packaging/feed_tool.py verify-feed RELEASE --pub <feed-key.pub.json>
+34
View File
@@ -0,0 +1,34 @@
"""The release app configuration: the engine travels inside every installer, the updater signs, the Mac minimum matches the Metal engine."""
from __future__ import annotations
import json
import unittest
from pathlib import Path
TAURI = Path(__file__).resolve().parents[2] / "apps" / "desktop" / "src-tauri"
def load(name: str) -> dict:
return json.loads((TAURI / name).read_text(encoding="utf-8-sig"))
class ReleaseConfig(unittest.TestCase):
def test_every_installer_bundles_the_engine(self):
self.assertEqual(load("tauri.conf.json")["bundle"]["resources"]["resources/engine-bundle"], "engine-bundle")
self.assertEqual(load("tauri.tester.conf.json")["bundle"]["resources"]["resources/engine-bundle"], "engine-bundle") # the same place
def test_the_release_overlay_makes_signed_updater_artifacts(self):
self.assertIs(load("tauri.release.conf.json")["bundle"]["createUpdaterArtifacts"], True)
self.assertIs(load("tauri.conf.json")["bundle"]["createUpdaterArtifacts"], False) # a development build needs no private key
def test_the_mac_app_needs_the_macos_the_metal_engine_needs(self):
self.assertEqual(load("tauri.conf.json")["bundle"]["macOS"]["minimumSystemVersion"], "15.0")
def test_the_updater_points_at_github_releases(self):
up = load("tauri.conf.json")["plugins"]["updater"]
self.assertEqual(up["endpoints"], ["https://github.com/Niko1221/Strata/releases/latest/download/latest.json"])
self.assertNotIn("REPLACE", up["pubkey"])
if __name__ == "__main__":
unittest.main()