From b5abb32c7208f19ff3f36d2e3ede9c48f7de8353 Mon Sep 17 00:00:00 2001 From: billlyzhaoyh Date: Sun, 15 Nov 2026 19:48:13 +0000 Subject: [PATCH 1/2] release: v0.3.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Live recording with a live transcript, speaker controls and private notes, and recovery of recordings interrupted by a crash. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- app/package-lock.json | 4 ++-- app/package.json | 2 +- app/src-tauri/Cargo.lock | 2 +- app/src-tauri/Cargo.toml | 2 +- app/src-tauri/tauri.conf.json | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/app/package-lock.json b/app/package-lock.json index 5e20b26..765b0ce 100644 --- a/app/package-lock.json +++ b/app/package-lock.json @@ -1,12 +1,12 @@ { "name": "kindtech-transcribe-app", - "version": "0.2.1", + "version": "0.3.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "kindtech-transcribe-app", - "version": "0.2.1", + "version": "0.3.0", "dependencies": { "@tauri-apps/api": "^2", "@tauri-apps/plugin-dialog": "^2", diff --git a/app/package.json b/app/package.json index 340f7cf..296fa3e 100644 --- a/app/package.json +++ b/app/package.json @@ -1,7 +1,7 @@ { "name": "kindtech-transcribe-app", "private": true, - "version": "0.2.1", + "version": "0.3.0", "type": "module", "description": "Privacy-first, CPU-only, zero-egress local transcription app shell (Tauri v2 + React 19). PR2: hardened shell + network-crate gate only.", "scripts": { diff --git a/app/src-tauri/Cargo.lock b/app/src-tauri/Cargo.lock index 4395a38..ddbea58 100644 --- a/app/src-tauri/Cargo.lock +++ b/app/src-tauri/Cargo.lock @@ -1994,7 +1994,7 @@ dependencies = [ [[package]] name = "kindtech-transcribe-app" -version = "0.2.1" +version = "0.3.0" dependencies = [ "chrono", "cpal", diff --git a/app/src-tauri/Cargo.toml b/app/src-tauri/Cargo.toml index 86f43cb..5a1c94e 100644 --- a/app/src-tauri/Cargo.toml +++ b/app/src-tauri/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "kindtech-transcribe-app" -version = "0.2.1" +version = "0.3.0" description = "Hardened, zero-egress local transcription app shell (Tauri v2)." edition = "2021" license = "Apache-2.0" diff --git a/app/src-tauri/tauri.conf.json b/app/src-tauri/tauri.conf.json index 0cd1794..15e92f1 100644 --- a/app/src-tauri/tauri.conf.json +++ b/app/src-tauri/tauri.conf.json @@ -1,7 +1,7 @@ { "$schema": "https://schema.tauri.app/config/2", "productName": "Folio", - "version": "0.2.1", + "version": "0.3.0", "identifier": "uk.kindtech.folio", "build": { "beforeDevCommand": "npm run dev", From 35cecbf0e62ffe9c93e1e0a222c853f7342c0165 Mon Sep 17 00:00:00 2001 From: billlyzhaoyh Date: Sun, 15 Nov 2026 20:10:48 +0000 Subject: [PATCH 2/2] build: cross-build the Windows installer on a Mac MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit scripts/build-windows-on-mac.sh builds the hardened NSIS installer with cargo-xwin, then checks the vendor key is embedded and that the exe needs only DLLs Windows ships. For releases while CI is unavailable. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- docs/build-from-source.md | 17 ++++++++++++++ scripts/build-windows-on-mac.sh | 41 +++++++++++++++++++++++++++++++++ 2 files changed, 58 insertions(+) create mode 100755 scripts/build-windows-on-mac.sh diff --git a/docs/build-from-source.md b/docs/build-from-source.md index c637780..5da55d6 100644 --- a/docs/build-from-source.md +++ b/docs/build-from-source.md @@ -66,6 +66,23 @@ Installers land under `app/src-tauri/target/{release,debug}/bundle/`: - Windows → `nsis/*.exe` - Linux → `appimage/*.AppImage`, `deb/*.deb` +### Windows installer from a Mac + +Without CI, a Mac can cross-build the Windows installer with +[`scripts/build-windows-on-mac.sh`](https://github.com/KindTechUK/folio/blob/main/scripts/build-windows-on-mac.sh): + +```bash +brew install nsis llvm lld # one-time setup +rustup target add x86_64-pc-windows-msvc +cargo install --locked cargo-xwin +scripts/build-windows-on-mac.sh /path/to/vendor-public.spki.pem +``` + +The key must be the one the official model packs are signed with. The script checks that the key +is embedded and that the app needs no DLL that Windows doesn't ship. Tauri calls cross-compilation +experimental, and the installer is unsigned, so test it on Windows before you share it. The installer +lands in `app/src-tauri/target/x86_64-pc-windows-msvc/release/bundle/nsis/`. + ## The zero-egress gate The product guarantee is that the shipped binaries link **no** networking crates. Prove diff --git a/scripts/build-windows-on-mac.sh b/scripts/build-windows-on-mac.sh new file mode 100755 index 0000000..62ed30f --- /dev/null +++ b/scripts/build-windows-on-mac.sh @@ -0,0 +1,41 @@ +#!/bin/bash +# Cross-build the Windows x64 installer (NSIS -setup.exe) on a Mac, without GitHub Actions. +# +# Usage: scripts/build-windows-on-mac.sh /path/to/vendor-public.spki.pem +# +# The key must be the public key the official model packs are signed with, or the packs won't +# import. It is compiled into every official release; to recover it from one, mount the release's +# .dmg and run: strings -n 8 Folio.app/Contents/MacOS/kindtech-transcribe-app | grep -A2 "BEGIN PUBLIC KEY" +# +# One-time setup: +# brew install nsis llvm lld +# rustup target add x86_64-pc-windows-msvc +# cargo install --locked cargo-xwin +# +# Tauri calls cross-compilation experimental, and the installer is unsigned. Test the result on Windows. +# Output: app/src-tauri/target/x86_64-pc-windows-msvc/release/bundle/nsis/Folio__x64-setup.exe +set -euo pipefail + +key="${1:?usage: $0 /path/to/vendor-public.spki.pem}" +[ -f "$key" ] || { echo "no such key file: $key" >&2; exit 1; } +cd "$(dirname "$0")/../app" + +export PATH="/opt/homebrew/opt/llvm/bin:/opt/homebrew/opt/lld/bin:$HOME/.cargo/bin:$PATH" +for tool in makensis lld-link llvm-rc cargo-xwin; do + command -v "$tool" >/dev/null || { echo "missing $tool; see the one-time setup in $0" >&2; exit 1; } +done +export XWIN_CACHE_DIR="${XWIN_CACHE_DIR:-$HOME/.cache/cargo-xwin}" # Windows SDK, downloaded once +VENDOR_PUBKEY_SPKI_PEM="$(cat "$key")" +export VENDOR_PUBKEY_SPKI_PEM + +npm ci +npm run tauri build -- --runner cargo-xwin --target x86_64-pc-windows-msvc --features hardened + +exe=src-tauri/target/x86_64-pc-windows-msvc/release/kindtech-transcribe-app.exe +# The build must have embedded this key, and nothing but Windows' own DLLs may be needed at runtime. +# grep -q would exit early and SIGPIPE strings, failing the pipeline under pipefail. +strings -n 8 "$exe" | grep -F "$(sed -n 2p "$key")" >/dev/null || { echo "key not embedded in $exe" >&2; exit 1; } +if llvm-objdump -p "$exe" | grep "DLL Name" | grep -viE "api-ms-win-|advapi32|bcryptprimitives|combase|comctl32|dbghelp|dwmapi|dxgi|gdi32|kernel32|mmdevapi|ntdll|ole32|oleaut32|setupapi|shell32|shlwapi|user32|uxtheme|version|winmm|ws2_32|crypt32|bcrypt|userenv|propsys"; then + echo "the exe needs a DLL Windows doesn't ship (listed above)" >&2; exit 1 +fi +ls -l src-tauri/target/x86_64-pc-windows-msvc/release/bundle/nsis/*.exe