AI media harness for planning, generating, and editing locally
TypeScript
Add signed updater releases
Bittiee5bcf8134b8
diff --git a/README.md b/README.mdindex b499b7c..ea226e7 100644--- a/README.md+++ b/README.md@@ -29,6 +29,11 @@ folder and matching ZIP under `artifacts/`, without creating installers.produced, portable folder, and ZIP. Both scripts install locked dependenciesand build the production app before collecting outputs.+Installed releases check for updates automatically and offer **Settings → Updates**+to install and restart. `release.cmd` signs installers and generates the GitHub+Releases update manifest. See [desktop update setup and publishing](docs/updater.md)+for the signing key, release steps, and portable build behavior.+## Application icons`marketing/icon.png` is the source artwork for the application icon, browserdiff --git a/docs/updater.md b/docs/updater.mdnew file mode 100644index 0000000..b28b0b4--- /dev/null+++ b/docs/updater.md@@ -0,0 +1,70 @@+# Desktop updates++Installed release builds check on startup and expose **Settings → Updates** for+manual checks, release notes, download progress, and installation. Installation+is explicit and restarts Slopus. Close the project and finish or cancel queued+work first; unsaved project changes or videos also block installation. Failed+checks and downloads can be retried from Settings.++Browser previews, debug builds, and portable folders containing the+`slopus-portable` marker do not check for updates. Keep that marker when moving a+portable installation. Update portable copies by downloading a new portable ZIP.++## Signing key++The public key is committed in `src-tauri/tauri.conf.json`. The matching private+key was generated locally at `%USERPROFILE%\.tauri\slopus-updater.key`, outside+the repository, without a password. Back it up securely: existing installations+trust this key, and losing it prevents signing updates they will accept. Never+commit or upload the private key as a release asset.++`release.cmd` uses this path by default. On another build machine, restore the+same key and set these environment variables as appropriate:++```powershell+$env:TAURI_SIGNING_PRIVATE_KEY = 'C:\secure\slopus-updater.key'+# Set this only if the key is password-protected:+$env:TAURI_SIGNING_PRIVATE_KEY_PASSWORD = 'your-key-password'+```++For a new app identity before distributing any builds, a key can be generated+with `npx tauri signer generate --write-keys C:\secure\slopus-updater.key`.+Put the complete contents of the resulting `.pub` file in `plugins.updater.pubkey`.+Do not regenerate the key for each release.++## Publish a Windows update++1. Set the same new version in `package.json`, `package-lock.json`,+ `src-tauri/Cargo.toml`, and `src-tauri/tauri.conf.json`. Update the configured+ window title too. Cargo updates its lockfile during the build.+2. Optionally set `UPDATE_NOTES_FILE` to a UTF-8 text file containing release notes.+3. Run `release.cmd`. It builds signed installers, copies their `.sig` files,+ and writes `artifacts/latest.json` with the version, signatures and download URLs.+4. Create a GitHub Release in `bitti-ai/slopus` with tag **`v<version>`**, matching+ the manifest URLs. Upload `latest.json`, the setup EXE and its `.sig`, and the+ MSI and its `.sig` if produced. Upload the portable ZIP as a separate download.+ Publish the release as the latest stable release after all assets are present.++The app requests+`https://github.com/bitti-ai/slopus/releases/latest/download/latest.json` over+HTTPS and verifies each installer with the embedded public key. These assets+must be publicly downloadable; the app does not embed GitHub credentials. Until+the first release containing `latest.json` is published, checks will report an+error and leave the current app running.++The manifest generated by `release.cmd` covers the current Windows architecture+and includes NSIS/MSI-specific targets. When publishing more architectures or+operating systems, merge their platform entries into one `latest.json` before+uploading it. Tauri also supports signed macOS and Linux updater artifacts; the+existing Windows packaging script does not build those.++`package.cmd` still builds portable binaries without bundling, so it does not+need the signing key. Direct installer builds (`npm run tauri -- build`) require+`TAURI_SIGNING_PRIVATE_KEY` in the environment.++Before public distribution, test with two installed versions: publish the newer+signed build, launch the older updater-enabled build, then check, install and+verify the restarted version. A live upgrade cannot be tested until a newer+release is hosted.++Reference: [Tauri updater documentation](https://v2.tauri.app/plugin/updater/).diff --git a/package-lock.json b/package-lock.jsonindex b5c4f0a..7dcff59 100644--- a/package-lock.json+++ b/package-lock.json@@ -9,6 +9,8 @@"version": "0.1.0","dependencies": {"@tauri-apps/api": "^2.8.0",+ "@tauri-apps/plugin-process": "^2.3.1",+ "@tauri-apps/plugin-updater": "^2.11.0","lucide-react": "^0.468.0","mp4-muxer": "^5.2.2","mp4box": "^2.4.1",@@ -1558,6 +1560,24 @@"node": ">= 10"}},+ "node_modules/@tauri-apps/plugin-process": {+ "version": "2.3.1",+ "resolved": "https://registry.npmjs.org/@tauri-apps/plugin-process/-/plugin-process-2.3.1.tgz",+ "integrity": "sha512-nCa4fGVaDL/B9ai03VyPOjfAHRHSBz5v6F/ObsB73r/dA3MHHhZtldaDMIc0V/pnUw9ehzr2iEG+XkSEyC0JJA==",+ "license": "MIT OR Apache-2.0",+ "dependencies": {+ "@tauri-apps/api": "^2.8.0"+ }+ },+ "node_modules/@tauri-apps/plugin-updater": {+ "version": "2.11.0",+ "resolved": "https://registry.npmjs.org/@tauri-apps/plugin-updater/-/plugin-updater-2.11.0.tgz",+ "integrity": "sha512-AE36XkOoSna24G40jZMY15nzAnkXEPL/73tGoseGrtGOHuI/cZwWzHpZFLjKXDPgzYZ435z1gHu28LgrsBwIxQ==",+ "license": "MIT OR Apache-2.0",+ "dependencies": {+ "@tauri-apps/api": "^2.11.0"+ }+ },"node_modules/@testing-library/dom": {"version": "10.4.1","resolved": "https://registry.npmjs.org/@testing-library/dom/-/dom-10.4.1.tgz",diff --git a/package.cmd b/package.cmdindex 0c1e5b2..5767da9 100644--- a/package.cmd+++ b/package.cmd@@ -99,6 +99,7 @@ if exist "%OUTPUT_DIR%" ()mkdir "%OUTPUT_DIR%" || goto :failcopy /Y "%RELEASE_EXE%" "%OUTPUT_DIR%\Slopus.exe" >nul || goto :fail+> "%OUTPUT_DIR%\slopus-portable" echo Portable distribution - update by downloading a new portable ZIP.set "SLOPFAB_BUNDLED=no"if exist "%SLOPFAB_DIR%\slopfab.dll" (diff --git a/package.json b/package.jsonindex 692a90c..51ec540 100644--- a/package.json+++ b/package.json@@ -14,6 +14,8 @@},"dependencies": {"@tauri-apps/api": "^2.8.0",+ "@tauri-apps/plugin-process": "^2.3.1",+ "@tauri-apps/plugin-updater": "^2.11.0","lucide-react": "^0.468.0","mp4-muxer": "^5.2.2","mp4box": "^2.4.1",diff --git a/release.cmd b/release.cmdindex 4b45046..2ec2593 100644--- a/release.cmd+++ b/release.cmd@@ -8,6 +8,16 @@ set "ARTIFACTS_DIR=%ROOT_DIR%\artifacts"set "BUNDLE_DIR=%ROOT_DIR%\src-tauri\target\release\bundle"set "RELEASE_EXE=%ROOT_DIR%\src-tauri\target\release\slopus.exe"+rem Keep the private signing key outside the repository. CI can supply its own+rem TAURI_SIGNING_PRIVATE_KEY and TAURI_SIGNING_PRIVATE_KEY_PASSWORD instead.+if not defined TAURI_SIGNING_PRIVATE_KEY if exist "%USERPROFILE%\.tauri\slopus-updater.key" set "TAURI_SIGNING_PRIVATE_KEY=%USERPROFILE%\.tauri\slopus-updater.key"+if not defined TAURI_SIGNING_PRIVATE_KEY (+ echo ERROR: Set TAURI_SIGNING_PRIVATE_KEY before building a signed release.+ echo See docs/updater.md for signing key setup.+ goto :fail+)+node scripts\updater-manifest.mjs --check || goto :fail+rem The generation runtime is built by a separate project. Override withrem set SLOPFAB_DIR=...\build\Releaserem before running if it lives somewhere else.@@ -104,15 +114,19 @@ if not defined NSIS_SRC (goto :fail)copy /Y "%NSIS_SRC%" "%OUTPUT_SETUP%" >nul || goto :fail+copy /Y "%NSIS_SRC%.sig" "%OUTPUT_SETUP%.sig" >nul || goto :failecho Installer: %OUTPUT_STEM%-setup.exeif defined MSI_SRC (copy /Y "%MSI_SRC%" "%OUTPUT_MSI%" >nul || goto :fail+ copy /Y "%MSI_SRC%.sig" "%OUTPUT_MSI%.sig" >nul || goto :failecho MSI: %OUTPUT_STEM%.msi) else (echo MSI: not produced - skipping.)+node scripts\updater-manifest.mjs || goto :fail+rem Portable layout: the executable plus the generation runtime beside it. Therem previous folder is removed first so it never mixes two builds.if exist "%OUTPUT_DIR%" rd /s /q "%OUTPUT_DIR%"@@ -123,6 +137,7 @@ if exist "%OUTPUT_DIR%" ()mkdir "%OUTPUT_DIR%" || goto :failcopy /Y "%RELEASE_EXE%" "%OUTPUT_DIR%\Slopus.exe" >nul || goto :fail+> "%OUTPUT_DIR%\slopus-portable" echo Portable distribution - update by downloading a new portable ZIP.set "SLOPFAB_BUNDLED=no"if exist "%SLOPFAB_DIR%\slopfab.dll" (@@ -149,6 +164,8 @@ powershell.exe -NoProfile -NonInteractive -Command "$ErrorActionPreference='Stopecho.echo Package complete.echo %OUTPUT_SETUP%+echo %OUTPUT_SETUP%.sig+echo %ARTIFACTS_DIR%\latest.jsonif defined MSI_SRC echo %OUTPUT_MSI%echo %OUTPUT_ZIP%echo %OUTPUT_DIR%\diff --git a/scripts/updater-manifest.mjs b/scripts/updater-manifest.mjsnew file mode 100644index 0000000..34134a0--- /dev/null+++ b/scripts/updater-manifest.mjs@@ -0,0 +1,54 @@+import { readFileSync, writeFileSync } from 'node:fs';+import { basename, resolve } from 'node:path';+import { pathToFileURL } from 'node:url';++export function releaseVersion(root) {+ const version = JSON.parse(readFileSync(resolve(root, 'package.json'), 'utf8')).version;+ const config = JSON.parse(readFileSync(resolve(root, 'src-tauri/tauri.conf.json'), 'utf8'));+ const cargoVersion = readFileSync(resolve(root, 'src-tauri/Cargo.toml'), 'utf8').match(/^version\s*=\s*"([^"]+)"/m)?.[1];+ if (version !== config.version || version !== cargoVersion) {+ throw new Error('Release versions must match in package.json, src-tauri/tauri.conf.json and src-tauri/Cargo.toml.');+ }+ if (!config.bundle.createUpdaterArtifacts || !config.plugins?.updater?.pubkey || !config.plugins?.updater?.endpoints?.length) {+ throw new Error('Configure signed updater artifacts, a public key and an endpoint in tauri.conf.json first.');+ }+ return version;+}++export function createManifest({ version, arch, setupPath, msiPath, notes = '', repository = 'bitti-ai/slopus', date = new Date() }) {+ const targetArch = { x64: 'x86_64', arm64: 'aarch64', x86: 'i686' }[arch];+ if (!targetArch) throw new Error(`Unsupported release architecture: ${arch}`);+ if (!/^\d+\.\d+\.\d+(?:-[0-9A-Za-z.-]+)?(?:\+[0-9A-Za-z.-]+)?$/.test(version)) throw new Error('Invalid release version.');+ const base = `https://github.com/${repository}/releases/download/v${version}/`;+ const artifact = (path) => {+ // Read both files so a signature without its installer cannot be published.+ if (readFileSync(path).length === 0) throw new Error(`Empty installer: ${path}`);+ const signature = readFileSync(`${path}.sig`, 'utf8').trim();+ if (!signature) throw new Error(`Empty signature: ${path}.sig`);+ return { signature, url: base + encodeURIComponent(basename(path)) };+ };+ const setup = artifact(setupPath);+ const platforms = { [`windows-${targetArch}`]: setup, [`windows-${targetArch}-nsis`]: setup };+ if (msiPath) platforms[`windows-${targetArch}-msi`] = artifact(msiPath);+ return { version, notes, pub_date: date.toISOString(), platforms };+}++if (process.argv[1] && import.meta.url === pathToFileURL(resolve(process.argv[1])).href) {+ try {+ const root = resolve(import.meta.dirname, '..');+ const version = releaseVersion(root);+ if (process.argv.includes('--check')) {+ console.log(`Updater release configuration is ready for ${version}.`);+ } else {+ const { PACKAGE_ARCH: arch, OUTPUT_SETUP: setupPath, OUTPUT_MSI: outputMsi, MSI_SRC: msiSource, ARTIFACTS_DIR: outputDir, UPDATE_NOTES_FILE: notesFile } = process.env;+ if (!arch || !setupPath || !outputDir) throw new Error('Run this script through release.cmd.');+ const manifest = createManifest({ version, arch, setupPath, msiPath: msiSource ? outputMsi : undefined, notes: notesFile ? readFileSync(notesFile, 'utf8') : '' });+ const outputPath = resolve(outputDir, 'latest.json');+ writeFileSync(outputPath, JSON.stringify(manifest, null, 2) + '\n');+ console.log(`Updater manifest: ${outputPath}`);+ }+ } catch (error) {+ console.error(error.message);+ process.exitCode = 1;+ }+}diff --git a/scripts/updater-manifest.test.mjs b/scripts/updater-manifest.test.mjsnew file mode 100644index 0000000..6a50131--- /dev/null+++ b/scripts/updater-manifest.test.mjs@@ -0,0 +1,50 @@+import { mkdtempSync, writeFileSync, rmSync } from 'node:fs';+import { tmpdir } from 'node:os';+import { join, resolve, basename, dirname } from 'node:path';+import { afterEach, describe, expect, it } from 'vitest';+import { createManifest, releaseVersion } from './updater-manifest.mjs';++const directories = [];+afterEach(() => {+ for (const directory of directories.splice(0)) {+ if (dirname(resolve(directory)) !== resolve(tmpdir()) || !basename(directory).startsWith('slopus-updater-')) {+ throw new Error('Refusing to remove a path outside the test temporary directory.');+ }+ rmSync(directory, { recursive: true });+ }+});+const fixture = () => {+ const directory = mkdtempSync(join(tmpdir(), 'slopus-updater-'));+ directories.push(directory);+ const setupPath = join(directory, 'Slopus-0.2.0-windows-x64-setup.exe');+ writeFileSync(setupPath, 'installer fixture');+ writeFileSync(setupPath + '.sig', 'signed installer\n');+ return { version: '0.2.0', arch: 'x64', setupPath };+};++describe('GitHub updater manifest', () => {+ it('uses the uploaded filename and embeds signature contents with matching version tags', () => {+ const manifest = createManifest({ ...fixture(), notes: 'Changes', date: new Date('2026-09-09T12:00:00Z') });+ expect(manifest).toMatchObject({ version: '0.2.0', notes: 'Changes', pub_date: '2026-09-09T12:00:00.000Z' });+ expect(manifest.platforms['windows-x86_64']).toEqual({+ signature: 'signed installer', url: 'https://github.com/bitti-ai/slopus/releases/download/v0.2.0/Slopus-0.2.0-windows-x64-setup.exe',+ });+ expect(manifest.platforms['windows-x86_64-nsis']).toEqual(manifest.platforms['windows-x86_64']);+ });+ it('includes a separate MSI target when an MSI was produced', () => {+ const input = fixture();+ const msiPath = input.setupPath.replace('.exe', '.msi');+ writeFileSync(msiPath, 'msi fixture');+ writeFileSync(msiPath + '.sig', 'signed msi');+ expect(createManifest({ ...input, msiPath }).platforms['windows-x86_64-msi'].signature).toBe('signed msi');+ });+ it('fails instead of publishing an unsigned installer or unknown architecture', () => {+ const input = fixture();+ writeFileSync(input.setupPath + '.sig', '');+ expect(() => createManifest(input)).toThrow('Empty signature');+ expect(() => createManifest({ ...input, arch: 'unknown' })).toThrow('Unsupported release architecture');+ });+ it('accepts the configured repository release version', () => {+ expect(releaseVersion(resolve(import.meta.dirname, '..'))).toMatch(/^\d+\.\d+\.\d+/);+ });+});diff --git a/src-tauri/Cargo.lock b/src-tauri/Cargo.lockindex 9d043e4..73c573c 100644--- a/src-tauri/Cargo.lock+++ b/src-tauri/Cargo.lock@@ -47,6 +47,15 @@ version = "1.0.104"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "330a5ed07fa54e4702c9d6c4174f74427fc0ef6e214bbd677ae50a5099946470"+[[package]]+name = "arbitrary"+version = "1.4.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "c3d036a3c4ab069c7b410a2ce876bd74808d2d0888a82667669f8e783a898bf1"+dependencies = [+ "derive_arbitrary",+]+[[package]]name = "atk"version = "0.18.2"@@ -358,6 +367,16 @@ dependencies = ["version_check",]+[[package]]+name = "core-foundation"+version = "0.9.4"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "91e195e091a93c46f7102ec7818a2aa394e1e1771c3ab4825963fa03e45afb8f"+dependencies = [+ "core-foundation-sys",+ "libc",+]+[[package]]name = "core-foundation"version = "0.10.1"@@ -381,7 +400,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "064badf302c3194842cf2c5d61f56cc88e54a759313879cdf03abdd27d0c3b97"dependencies = ["bitflags 2.13.1",- "core-foundation",+ "core-foundation 0.10.1","core-graphics-types","foreign-types","libc",@@ -394,7 +413,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "3d44a101f213f6c4cdc1853d4b78aef6db6bdfa3468798cc1d9912f4735013eb"dependencies = ["bitflags 2.13.1",- "core-foundation",+ "core-foundation 0.10.1","libc",]@@ -574,6 +593,17 @@ dependencies = ["serde_core",]+[[package]]+name = "derive_arbitrary"+version = "1.4.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "1e567bd82dcff979e4b03460c307b3cdc9e96fde3d73bed1496d2bc75d9dd62a"+dependencies = [+ "proc-macro2",+ "quote",+ "syn 2.0.119",+]+[[package]]name = "derive_more"version = "2.1.1"@@ -810,6 +840,16 @@ dependencies = ["rustc_version",]+[[package]]+name = "filetime"+version = "0.2.29"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "5c287a33c7f0a620c38e641e7f60827713987b3c0f26e8ddc9462cc69cf75759"+dependencies = [+ "cfg-if",+ "libc",+]+[[package]]name = "find-msvc-tools"version = "0.1.11"@@ -1375,9 +1415,11 @@ dependencies = ["percent-encoding","pin-project-lite","socket2",+ "system-configuration","tokio","tower-service","tracing",+ "windows-registry",][[package]]@@ -1660,6 +1702,36 @@ dependencies = ["windows-sys 0.45.0",]+[[package]]+name = "jni"+version = "0.22.4"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "5efd9a482cf3a427f00d6b35f14332adc7902ce91efb778580e180ff90fa3498"+dependencies = [+ "cfg-if",+ "combine",+ "jni-macros",+ "jni-sys 0.4.1",+ "log",+ "simd_cesu8",+ "thiserror 2.0.20",+ "walkdir",+ "windows-link 0.2.1",+]++[[package]]+name = "jni-macros"+version = "0.22.4"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "a00109accc170f0bdb141fed3e393c565b6f5e072365c3bd58f5b062591560a3"+dependencies = [+ "proc-macro2",+ "quote",+ "rustc_version",+ "simd_cesu8",+ "syn 2.0.119",+]+[[package]]name = "jni-sys"version = "0.3.1"@@ -1871,6 +1943,12 @@ version = "0.3.17"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "6877bb514081ee2a7ff5ef9de3281f14a4dd4bceac4c09388074a6b5df8a139a"+[[package]]+name = "minisign-verify"+version = "0.2.5"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "22f9645cb765ea72b8111f36c522475d2daa0d22c957a9826437e97534bc4e9e"+[[package]]name = "miniz_oxide"version = "0.8.9"@@ -2119,6 +2197,18 @@ dependencies = ["objc2-core-foundation",]+[[package]]+name = "objc2-osa-kit"+version = "0.3.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "f112d1746737b0da274ef79a23aac283376f335f4095a083a267a082f21db0c0"+dependencies = [+ "bitflags 2.13.1",+ "objc2",+ "objc2-app-kit",+ "objc2-foundation",+]+[[package]]name = "objc2-quartz-core"version = "0.3.2"@@ -2182,12 +2272,32 @@ version = "1.21.4"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "9f7c3e4beb33f85d45ae3e3a1792185706c8e16d043238c593331cc7cd313b50"+[[package]]+name = "openssl-probe"+version = "0.2.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "7c87def4c32ab89d880effc9e097653c8da5d6ef28e6b539d313baaacfbafcbe"+[[package]]name = "option-ext"version = "0.2.0"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "04744f49eae99ab78e0d5c0b603ab218f515ea8cfe5a456d7629ad883a3b6e7d"+[[package]]+name = "osakit"+version = "0.3.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "732c71caeaa72c065bb69d7ea08717bd3f4863a4f451402fc9513e29dbd5261b"+dependencies = [+ "objc2",+ "objc2-foundation",+ "objc2-osa-kit",+ "serde",+ "serde_json",+ "thiserror 2.0.20",+]+[[package]]name = "pango"version = "0.18.3"@@ -2685,15 +2795,20 @@ dependencies = ["http-body","http-body-util","hyper",+ "hyper-rustls","hyper-util","js-sys","log","percent-encoding","pin-project-lite",+ "rustls",+ "rustls-pki-types",+ "rustls-platform-verifier","serde","serde_json","sync_wrapper","tokio",+ "tokio-rustls","tokio-util","tower","tower-http",@@ -2785,6 +2900,18 @@ dependencies = ["zeroize",]+[[package]]+name = "rustls-native-certs"+version = "0.8.4"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "dab5152771c58876a2146916e53e35057e1a4dfa2b9df0f0305b07f611fdea4d"+dependencies = [+ "openssl-probe",+ "rustls-pki-types",+ "schannel",+ "security-framework",+]+[[package]]name = "rustls-pki-types"version = "1.15.1"@@ -2795,6 +2922,33 @@ dependencies = ["zeroize",]+[[package]]+name = "rustls-platform-verifier"+version = "0.7.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "26d1e2536ce4f35f4846aa13bff16bd0ff40157cdb14cc056c7b14ba41233ba0"+dependencies = [+ "core-foundation 0.10.1",+ "core-foundation-sys",+ "jni 0.22.4",+ "log",+ "once_cell",+ "rustls",+ "rustls-native-certs",+ "rustls-platform-verifier-android",+ "rustls-webpki",+ "security-framework",+ "security-framework-sys",+ "webpki-root-certs",+ "windows-sys 0.61.2",+]++[[package]]+name = "rustls-platform-verifier-android"+version = "0.1.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "f87165f0995f63a9fbeea62b64d10b4d9d8e78ec6d7d51fb2125fda7bb36788f"+[[package]]name = "rustls-webpki"version = "0.103.15"@@ -2827,6 +2981,15 @@ dependencies = ["winapi-util",]+[[package]]+name = "schannel"+version = "0.1.29"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "91c1b7e4904c873ef0710c1f407dde2e6287de2bebc1bbbf7d430bb7cbffd939"+dependencies = [+ "windows-sys 0.61.2",+]+[[package]]name = "schemars"version = "0.8.22"@@ -2884,6 +3047,29 @@ version = "1.2.0"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49"+[[package]]+name = "security-framework"+version = "3.7.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "b7f4bc775c73d9a02cde8bf7b2ec4c9d12743edf609006c7facc23998404cd1d"+dependencies = [+ "bitflags 2.13.1",+ "core-foundation 0.10.1",+ "core-foundation-sys",+ "libc",+ "security-framework-sys",+]++[[package]]+name = "security-framework-sys"+version = "2.17.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "6ce2691df843ecc5d231c0b14ece2acc3efb62c0a398c7e1d875f3983ce020e3"+dependencies = [+ "core-foundation-sys",+ "libc",+]+[[package]]name = "selectors"version = "0.36.1"@@ -3107,6 +3293,22 @@ version = "0.3.10"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "3a219298ac11a56ea9a6d2120044824d6f01aeb034955e7af7bc16858527deea"+[[package]]+name = "simd_cesu8"+version = "1.2.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "11031e251abf8611c80f460e19dbdeb54a66db918e49c65a7065b46ac7aec520"+dependencies = [+ "rustc_version",+ "simdutf8",+]++[[package]]+name = "simdutf8"+version = "0.1.5"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "e3a9fe34e3e7a50316060351f37187a3f546bce95496156754b601a5fa71b76e"+[[package]]name = "siphasher"version = "1.0.3"@@ -3132,6 +3334,8 @@ dependencies = ["tauri","tauri-build","tauri-plugin-dialog",+ "tauri-plugin-process",+ "tauri-plugin-updater","tempfile","windows-sys 0.59.0",]@@ -3305,6 +3509,27 @@ dependencies = ["syn 2.0.119",]+[[package]]+name = "system-configuration"+version = "0.7.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "a13f3d0daba03132c0aa9767f98351b3488edc2c100cda2d2ec2b04f3d8d3c8b"+dependencies = [+ "bitflags 2.13.1",+ "core-foundation 0.9.4",+ "system-configuration-sys",+]++[[package]]+name = "system-configuration-sys"+version = "0.6.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "8e1d1b10ced5ca923a1fcb8d03e96b8d3268065d724548c0211415ff6ac6bac4"+dependencies = [+ "core-foundation-sys",+ "libc",+]+[[package]]name = "system-deps"version = "6.2.2"@@ -3326,7 +3551,7 @@ checksum = "d1c93047acf68669466a34690ac58cca7010bd1b201e1ec86f1fd0a75d3dd4a9"dependencies = ["bitflags 2.13.1","block2",- "core-foundation",+ "core-foundation 0.10.1","core-graphics","crossbeam-channel","dbus",@@ -3336,7 +3561,7 @@ dependencies = ["gdkwayland-sys","gdkx11-sys","gtk",- "jni",+ "jni 0.21.1","libc","log","ndk",@@ -3369,6 +3594,17 @@ dependencies = ["syn 2.0.119",]+[[package]]+name = "tar"+version = "0.4.46"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "3f6221d9a6003c78398e3b239969f352578258df48c8eb051caadae0015bc840"+dependencies = [+ "filetime",+ "libc",+ "xattr",+]+[[package]]name = "target-lexicon"version = "0.12.16"@@ -3392,7 +3628,7 @@ dependencies = ["gtk","heck 0.5.0","http",- "jni",+ "jni 0.21.1","libc","log","mime",@@ -3546,6 +3782,49 @@ dependencies = ["url",]+[[package]]+name = "tauri-plugin-process"+version = "2.3.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "d55511a7bf6cd70c8767b02c97bf8134fa434daf3926cfc1be0a0f94132d165a"+dependencies = [+ "tauri",+ "tauri-plugin",+]++[[package]]+name = "tauri-plugin-updater"+version = "2.11.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "b28d8cabdeb0564f03ae261963de4bc3d98321cd3d213e76a81b7d344e5df606"+dependencies = [+ "base64 0.22.1",+ "dirs",+ "flate2",+ "futures-util",+ "http",+ "infer",+ "log",+ "minisign-verify",+ "osakit",+ "percent-encoding",+ "reqwest 0.13.4",+ "rustls",+ "semver",+ "serde",+ "serde_json",+ "tar",+ "tauri",+ "tauri-plugin",+ "tempfile",+ "thiserror 2.0.20",+ "time",+ "tokio",+ "url",+ "windows-sys 0.60.2",+ "zip",+]+[[package]]name = "tauri-runtime"version = "2.11.3"@@ -3556,7 +3835,7 @@ dependencies = ["dpi","gtk","http",- "jni",+ "jni 0.21.1","objc2","objc2-ui-kit","objc2-web-kit",@@ -3579,7 +3858,7 @@ checksum = "4e6fac707727b7a2f48e4ded90976324267371073edbb415ffb73bb0458d203f"dependencies = ["gtk","http",- "jni",+ "jni 0.21.1","log","objc2","objc2-app-kit",@@ -4336,6 +4615,15 @@ dependencies = ["system-deps",]+[[package]]+name = "webpki-root-certs"+version = "1.0.9"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "b96554aa2acc8ccdb7e1c9a58a7a68dd5d13bccc69cd124cb09406db612a1c9b"+dependencies = [+ "rustls-pki-types",+]+[[package]]name = "webpki-roots"version = "1.0.9"@@ -4530,6 +4818,17 @@ dependencies = ["windows-link 0.1.3",]+[[package]]+name = "windows-registry"+version = "0.6.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "02752bf7fbdcce7f2a27a742f798510f3e5ad88dbe84871e5168e2120c3d5720"+dependencies = [+ "windows-link 0.2.1",+ "windows-result 0.4.1",+ "windows-strings 0.5.1",+]+[[package]]name = "windows-result"version = "0.3.4"@@ -4879,7 +5178,7 @@ dependencies = ["gtk","http","javascriptcore-rs",- "jni",+ "jni 0.21.1","libc","ndk","objc2",@@ -4926,6 +5225,16 @@ dependencies = ["pkg-config",]+[[package]]+name = "xattr"+version = "1.6.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "32e45ad4206f6d2479085147f02bc2ef834ac85886624a23575ae137c8aa8156"+dependencies = [+ "libc",+ "rustix",+]+[[package]]name = "yoke"version = "0.8.3"@@ -5009,6 +5318,18 @@ dependencies = ["syn 3.0.3",]+[[package]]+name = "zip"+version = "4.6.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "caa8cd6af31c3b31c6631b8f483848b91589021b28fffe50adada48d4f4d2ed1"+dependencies = [+ "arbitrary",+ "crc32fast",+ "indexmap 2.14.0",+ "memchr",+]+[[package]]name = "zmij"version = "1.0.23"diff --git a/src-tauri/Cargo.toml b/src-tauri/Cargo.tomlindex 736a3fa..888c5ae 100644--- a/src-tauri/Cargo.toml+++ b/src-tauri/Cargo.toml@@ -21,6 +21,8 @@ serde = { version = "1", features = ["derive"] }serde_json = "1"tauri = { version = "2", features = [] }tauri-plugin-dialog = "2"+tauri-plugin-process = "2"+tauri-plugin-updater = "2"libloading = "0.8"getrandom = "0.3"reqwest = { version = "0.12", default-features = false, features = ["blocking", "json", "rustls-tls"] }diff --git a/src-tauri/capabilities/default.json b/src-tauri/capabilities/default.jsonindex 133b1f0..0cfe218 100644--- a/src-tauri/capabilities/default.json+++ b/src-tauri/capabilities/default.json@@ -3,6 +3,6 @@"identifier": "default","description": "Default permissions for the Slopus desktop window","windows": ["main"],- "permissions": ["core:default"]+ "permissions": ["core:default", "updater:default", "process:allow-restart"]}diff --git a/src-tauri/src/lib.rs b/src-tauri/src/lib.rsindex ff59c41..b65433e 100644--- a/src-tauri/src/lib.rs+++ b/src-tauri/src/lib.rs@@ -2728,6 +2728,17 @@ fn reveal_diagnostic_log() -> Result<diagnostics::DiagnosticLogInfo, String> {diagnostics::reveal_log()}+/// Portable distributions carry a marker because Windows updates launch an+/// installer and cannot replace a portable folder in place.+#[tauri::command]+fn app_updater_enabled() -> bool {+ !cfg!(debug_assertions)+ && std::env::current_exe()+ .ok()+ .and_then(|exe| exe.parent().map(|dir| !dir.join("slopus-portable").exists()))+ .unwrap_or(false)+}+#[cfg_attr(mobile, tauri::mobile_entry_point)]pub fn run() {tauri::Builder::default()@@ -2784,7 +2795,10 @@ pub fn run() {}}).plugin(tauri_plugin_dialog::init())+ .plugin(tauri_plugin_updater::Builder::new().build())+ .plugin(tauri_plugin_process::init()).invoke_handler(tauri::generate_handler![+ app_updater_enabled,write_diagnostic_log,diagnostic_log_info,reveal_diagnostic_log,diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.jsonindex 2ac0f35..42e2e6b 100644--- a/src-tauri/tauri.conf.json+++ b/src-tauri/tauri.conf.json@@ -40,7 +40,18 @@"icons/icon.ico"],"shortDescription": "Agentic video creation workspace",- "longDescription": "Slopus keeps professional AI-assisted video projects in folders you control."+ "longDescription": "Slopus keeps professional AI-assisted video projects in folders you control.",+ "createUpdaterArtifacts": true+ },+ "plugins": {+ "updater": {+ "endpoints": [+ "https://github.com/bitti-ai/slopus/releases/latest/download/latest.json"+ ],+ "pubkey": "dW50cnVzdGVkIGNvbW1lbnQ6IG1pbmlzaWduIHB1YmxpYyBrZXk6IERDOTFDOTkyMDJGM0NBMEIKUldRTHl2TUNrc21SM0JqYnVrWVEvckhrdEliSkFMMDQ4YThCVWM3UzNVaHV4NGlFanN1SXZwWXQK",+ "windows": {+ "installMode": "passive"+ }+ }}}-