π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Refine Ensu Tauri v2 migration
Manav Rathi898246ad75dc
diff --git a/.github/scripts/ensu-version.mjs b/.github/scripts/ensu-version.mjsindex 89798107c8..813a725e36 100644--- a/.github/scripts/ensu-version.mjs+++ b/.github/scripts/ensu-version.mjs@@ -34,18 +34,6 @@ function sourceVersion() {return JSON.parse(read(files.packageJson)).version;}-function packageLockVersions() {- const packageLock = JSON.parse(read(files.packageLock));- return {- root: packageLock.version,- packageRoot: packageLock.packages?.[""]?.version,- };-}--function tauriVersion() {- return JSON.parse(read(files.tauri)).version;-}-function value(file, regex) {return read(file).match(regex)?.[1];}@@ -61,16 +49,6 @@ function replace(file, regex, replacement) {write(file, next);}-function setPackageLockVersion(version) {- const packageLock = JSON.parse(read(files.packageLock));- if (!packageLock.packages?.[""]) {- throw new Error("package-lock.json packages[\"\"]: no root package found");- }- packageLock.version = version;- packageLock.packages[""].version = version;- write(files.packageLock, `${JSON.stringify(packageLock, null, 4)}\n`);-}-function expect(label, actual, wanted) {if (actual !== wanted) throw new Error(`${label}: expected ${wanted}, found ${actual}`);}@@ -78,11 +56,10 @@ function expect(label, actual, wanted) {function check() {const version = sourceVersion();const releaseVersion = trimVersion(version);- const packageLockVersionsValue = packageLockVersions();- expect("tauri.conf.json", tauriVersion(), version);- expect("package-lock.json", packageLockVersionsValue.root, version);- expect("package-lock.json packages[\"\"]", packageLockVersionsValue.packageRoot, version);+ expect("tauri.conf.json", value(files.tauri, /^\s*"version"\s*:\s*"([^"]+)"/m), version);+ expect("package-lock.json", value(files.packageLock, /"name": "ensu-desktop",\n\s+"version": "([^"]+)"/), version);+ expect("package-lock.json packages[\"\"]", value(files.packageLock, /"": \{\n\s+"name": "ensu-desktop",\n\s+"version": "([^"]+)"/), version);expect("Cargo.toml", value(files.cargoToml, /\[package\][\s\S]*?^version = "([^"]+)"/m), version);expect("Cargo.lock", value(files.cargoLock, /\[\[package\]\]\nname = "ensu-desktop"\nversion = "([^"]+)"/), version);expect("Android versionName", value(files.android, /versionName = "([^"]+)"/), releaseVersion);@@ -99,8 +76,9 @@ function setVersion(version) {const releaseVersion = trimVersion(version);replace(files.packageJson, /("name": "ensu-desktop",\n\s+"version": ")[^"]+(")/, (_m, a, b) => `${a}${version}${b}`);- setPackageLockVersion(version);- replace(files.tauri, /("version"\s*:\s*")[^"]+(")/, (_m, a, b) => `${a}${version}${b}`);+ replace(files.packageLock, /("name": "ensu-desktop",\n\s+"version": ")[^"]+(")/, (_m, a, b) => `${a}${version}${b}`);+ replace(files.packageLock, /("": \{\n\s+"name": "ensu-desktop",\n\s+"version": ")[^"]+(")/, (_m, a, b) => `${a}${version}${b}`);+ replace(files.tauri, /^(\s*"version"\s*:\s*")[^"]+(")/m, (_m, a, b) => `${a}${version}${b}`);replace(files.cargoToml, /(\[package\][\s\S]*?^version = ")[^"]+(")/m, (_m, a, b) => `${a}${version}${b}`);replace(files.cargoLock, /(\[\[package\]\]\nname = "ensu-desktop"\nversion = ")[^"]+(")/, (_m, a, b) => `${a}${version}${b}`);replace(files.android, /versionName = "[^"]+"/, `versionName = "${releaseVersion}"`);diff --git a/rust/apps/ensu/package-lock.json b/rust/apps/ensu/package-lock.jsonindex 997f12d8ee..6c4f6659bc 100644--- a/rust/apps/ensu/package-lock.json+++ b/rust/apps/ensu/package-lock.json@@ -1,295 +1,295 @@{- "name": "ensu-desktop",- "version": "0.1.17-beta",- "lockfileVersion": 3,- "requires": true,- "packages": {- "": {- "name": "ensu-desktop",- "version": "0.1.17-beta",- "dependencies": {- "@tauri-apps/api": "2.11.0",- "@tauri-apps/plugin-dialog": "2.7.1",- "@tauri-apps/plugin-fs": "2.5.1",- "@tauri-apps/plugin-opener": "2.5.4",- "@tauri-apps/plugin-process": "2.3.1",- "@tauri-apps/plugin-updater": "2.10.1"- },- "devDependencies": {- "@tauri-apps/cli": "2.11.2"- }- },- "node_modules/@tauri-apps/api": {- "version": "2.11.0",- "resolved": "https://registry.npmjs.org/@tauri-apps/api/-/api-2.11.0.tgz",- "integrity": "sha512-7CinYODhky9lmO23xHnUFv0Xt43fbtWMyxZcLcRBlFkcgXKuEirBvHpmtJ89YMhyeGcq20Wuc47Fa4XjyniywA==",- "license": "Apache-2.0 OR MIT",- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/tauri"- }- },- "node_modules/@tauri-apps/cli": {- "version": "2.11.2",- "resolved": "https://registry.npmjs.org/@tauri-apps/cli/-/cli-2.11.2.tgz",- "integrity": "sha512-bk3HemqvGRoy+5D/dVMUQHKMYLglD0jVnMm/0iGMH6ufZ+p8r14m6BpIixwij3PBvZdvORUp1YifTD8QxVZ1Nw==",- "dev": true,- "license": "Apache-2.0 OR MIT",- "bin": {- "tauri": "tauri.js"- },- "engines": {- "node": ">= 10"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/tauri"- },- "optionalDependencies": {- "@tauri-apps/cli-darwin-arm64": "2.11.2",- "@tauri-apps/cli-darwin-x64": "2.11.2",- "@tauri-apps/cli-linux-arm-gnueabihf": "2.11.2",- "@tauri-apps/cli-linux-arm64-gnu": "2.11.2",- "@tauri-apps/cli-linux-arm64-musl": "2.11.2",- "@tauri-apps/cli-linux-riscv64-gnu": "2.11.2",- "@tauri-apps/cli-linux-x64-gnu": "2.11.2",- "@tauri-apps/cli-linux-x64-musl": "2.11.2",- "@tauri-apps/cli-win32-arm64-msvc": "2.11.2",- "@tauri-apps/cli-win32-ia32-msvc": "2.11.2",- "@tauri-apps/cli-win32-x64-msvc": "2.11.2"- }- },- "node_modules/@tauri-apps/cli-darwin-arm64": {- "version": "2.11.2",- "resolved": "https://registry.npmjs.org/@tauri-apps/cli-darwin-arm64/-/cli-darwin-arm64-2.11.2.tgz",- "integrity": "sha512-+4UZzLt+eOAEQCwgd+TqKgyUJMrvx+BgdXLLaqJYmPqzP+nE6YZr/hY6CWLYGQb8jFn99jEkmC6uA3tNvamA1w==",- "cpu": [- "arm64"- ],- "dev": true,- "license": "Apache-2.0 OR MIT",- "optional": true,- "os": [- "darwin"- ],- "engines": {- "node": ">= 10"- }- },- "node_modules/@tauri-apps/cli-darwin-x64": {- "version": "2.11.2",- "resolved": "https://registry.npmjs.org/@tauri-apps/cli-darwin-x64/-/cli-darwin-x64-2.11.2.tgz",- "integrity": "sha512-VjYYtZUPqDMLutSfJEyxFE3Bz+DPi7c8wC3imckgvciLDZLq4qwKJxBicg0BXGhXjJsl8vKWgWRFNMPELQ+Xyg==",- "cpu": [- "x64"- ],- "dev": true,- "license": "Apache-2.0 OR MIT",- "optional": true,- "os": [- "darwin"- ],- "engines": {- "node": ">= 10"- }- },- "node_modules/@tauri-apps/cli-linux-arm-gnueabihf": {- "version": "2.11.2",- "resolved": "https://registry.npmjs.org/@tauri-apps/cli-linux-arm-gnueabihf/-/cli-linux-arm-gnueabihf-2.11.2.tgz",- "integrity": "sha512-yMemD6f4i95AQriS8EazyOFzbE34yjnP16i3IOzpHGQvBoy2DjypFMFBq0NtPuITURv/cOGguRtHR5d79/9CSA==",- "cpu": [- "arm"- ],- "dev": true,- "license": "Apache-2.0 OR MIT",- "optional": true,- "os": [- "linux"- ],- "engines": {- "node": ">= 10"- }- },- "node_modules/@tauri-apps/cli-linux-arm64-gnu": {- "version": "2.11.2",- "resolved": "https://registry.npmjs.org/@tauri-apps/cli-linux-arm64-gnu/-/cli-linux-arm64-gnu-2.11.2.tgz",- "integrity": "sha512-cgI91D2wL8GSgoWwZXDqt+DwnuZCP2/bz03QAE4TrhgAKIsrB4hX26W/H1EONPUUNkqrsgeCD0wU6pcNjV/5kw==",- "cpu": [- "arm64"- ],- "dev": true,- "license": "Apache-2.0 OR MIT",- "optional": true,- "os": [- "linux"- ],- "engines": {- "node": ">= 10"- }- },- "node_modules/@tauri-apps/cli-linux-arm64-musl": {- "version": "2.11.2",- "resolved": "https://registry.npmjs.org/@tauri-apps/cli-linux-arm64-musl/-/cli-linux-arm64-musl-2.11.2.tgz",- "integrity": "sha512-X1rm0BERqAAggtYTESSgXrS3sz4Sb/OiPiz54UqISlXW+GkR3vNIGnsy/lejNmoXGVqri3Q53BCfQiclOIyRPw==",- "cpu": [- "arm64"- ],- "dev": true,- "license": "Apache-2.0 OR MIT",- "optional": true,- "os": [- "linux"- ],- "engines": {- "node": ">= 10"- }- },- "node_modules/@tauri-apps/cli-linux-riscv64-gnu": {- "version": "2.11.2",- "resolved": "https://registry.npmjs.org/@tauri-apps/cli-linux-riscv64-gnu/-/cli-linux-riscv64-gnu-2.11.2.tgz",- "integrity": "sha512-usbMLJbT3KtkOrBMDVeGYNM35aTHXx38SJSzTMSqqjeUIOQ+iVPjb2yAGNAE+KqmBbAx4FOFIyMeKXx2M/JKGQ==",- "cpu": [- "riscv64"- ],- "dev": true,- "license": "Apache-2.0 OR MIT",- "optional": true,- "os": [- "linux"- ],- "engines": {- "node": ">= 10"- }- },- "node_modules/@tauri-apps/cli-linux-x64-gnu": {- "version": "2.11.2",- "resolved": "https://registry.npmjs.org/@tauri-apps/cli-linux-x64-gnu/-/cli-linux-x64-gnu-2.11.2.tgz",- "integrity": "sha512-Ru4gwJKPG0ctVGchRGpRup4Y4lW2SSfFnrbQcyHhCliKy4g8Qz97TrUgCur4CbWyAgKxvGh3SjrkA0LDYzDGiw==",- "cpu": [- "x64"- ],- "dev": true,- "license": "Apache-2.0 OR MIT",- "optional": true,- "os": [- "linux"- ],- "engines": {- "node": ">= 10"- }- },- "node_modules/@tauri-apps/cli-linux-x64-musl": {- "version": "2.11.2",- "resolved": "https://registry.npmjs.org/@tauri-apps/cli-linux-x64-musl/-/cli-linux-x64-musl-2.11.2.tgz",- "integrity": "sha512-eUm7T6clN1MMmNSRQ9gaWsQdyehQx2Gmn5hht/QUlqZQI/qcP2OJK5dnaxqwFzCr2HdsEo9ydxaqcS1oJzMvUw==",- "cpu": [- "x64"- ],- "dev": true,- "license": "Apache-2.0 OR MIT",- "optional": true,- "os": [- "linux"- ],- "engines": {- "node": ">= 10"- }- },- "node_modules/@tauri-apps/cli-win32-arm64-msvc": {- "version": "2.11.2",- "resolved": "https://registry.npmjs.org/@tauri-apps/cli-win32-arm64-msvc/-/cli-win32-arm64-msvc-2.11.2.tgz",- "integrity": "sha512-HeeZW80jU+gVTOEX4X/hC6NVSAdDVXajwP5fxIZ/3z9WvUC7qrudX2GMTilYq6Dg0e0sk0XgsAJD1hZ5wPBXUA==",- "cpu": [- "arm64"- ],- "dev": true,- "license": "Apache-2.0 OR MIT",- "optional": true,- "os": [- "win32"- ],- "engines": {- "node": ">= 10"- }- },- "node_modules/@tauri-apps/cli-win32-ia32-msvc": {- "version": "2.11.2",- "resolved": "https://registry.npmjs.org/@tauri-apps/cli-win32-ia32-msvc/-/cli-win32-ia32-msvc-2.11.2.tgz",- "integrity": "sha512-YhjQNZcXfbkCLyazSv1nPnJ9iRFE1wm6kc51FDbU10/Dk09io+6PAGMLjkxnX2GdM0qMnDmTjstY8mTDVvtKeA==",- "cpu": [- "ia32"- ],- "dev": true,- "license": "Apache-2.0 OR MIT",- "optional": true,- "os": [- "win32"- ],- "engines": {- "node": ">= 10"- }- },- "node_modules/@tauri-apps/cli-win32-x64-msvc": {- "version": "2.11.2",- "resolved": "https://registry.npmjs.org/@tauri-apps/cli-win32-x64-msvc/-/cli-win32-x64-msvc-2.11.2.tgz",- "integrity": "sha512-d2JchlFIpZevZVReyqhQOekJmb1UH3rhZ5VX6sH3ty9ETE0TKQavpihvoScUXfKKpW6HZC0MrFGRU0ZtD+w3gA==",- "cpu": [- "x64"- ],- "dev": true,- "license": "Apache-2.0 OR MIT",- "optional": true,- "os": [- "win32"- ],- "engines": {- "node": ">= 10"- }- },- "node_modules/@tauri-apps/plugin-dialog": {- "version": "2.7.1",- "resolved": "https://registry.npmjs.org/@tauri-apps/plugin-dialog/-/plugin-dialog-2.7.1.tgz",- "integrity": "sha512-OK1UBXYt+ojcmxMktzzuyonYIFta8CmAASpX+CA+DTGK24KlHjhYI6x2iOJ/TjZF4N7/ACK1oFmEOjIY9IhzOQ==",- "license": "MIT OR Apache-2.0",- "dependencies": {- "@tauri-apps/api": "^2.11.0"- }- },- "node_modules/@tauri-apps/plugin-fs": {- "version": "2.5.1",- "resolved": "https://registry.npmjs.org/@tauri-apps/plugin-fs/-/plugin-fs-2.5.1.tgz",- "integrity": "sha512-9Lz+Jopp6QyeEWhlpkMx4R/+P9HgR+AVAI4vOZhlT8Xaymtz8iVI/Ov984/XTqgJz/5gz5NretqPB/XEMS3NhQ==",- "license": "MIT OR Apache-2.0",- "dependencies": {- "@tauri-apps/api": "^2.11.0"- }- },- "node_modules/@tauri-apps/plugin-opener": {- "version": "2.5.4",- "resolved": "https://registry.npmjs.org/@tauri-apps/plugin-opener/-/plugin-opener-2.5.4.tgz",- "integrity": "sha512-1HnPkb+AmgO29HBazm4uPLKB+r7zzcTBW1d0fyYp1uP+jwtpoiNDGKMMzz58SFp49nOIrxdE3aUJtT57lfO9CQ==",- "license": "MIT OR Apache-2.0",- "dependencies": {- "@tauri-apps/api": "^2.11.0"- }- },- "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.10.1",- "resolved": "https://registry.npmjs.org/@tauri-apps/plugin-updater/-/plugin-updater-2.10.1.tgz",- "integrity": "sha512-NFYMg+tWOZPJdzE/PpFj2qfqwAWwNS3kXrb1tm1gnBJ9mYzZ4WDRrwy8udzWoAnfGCHLuePNLY1WVCNHnh3eRA==",- "license": "MIT OR Apache-2.0",- "dependencies": {- "@tauri-apps/api": "^2.10.1"- }- }+ "name": "ensu-desktop",+ "version": "0.1.17-beta",+ "lockfileVersion": 3,+ "requires": true,+ "packages": {+ "": {+ "name": "ensu-desktop",+ "version": "0.1.17-beta",+ "dependencies": {+ "@tauri-apps/api": "2.11.0",+ "@tauri-apps/plugin-dialog": "2.7.1",+ "@tauri-apps/plugin-fs": "2.5.1",+ "@tauri-apps/plugin-opener": "2.5.4",+ "@tauri-apps/plugin-process": "2.3.1",+ "@tauri-apps/plugin-updater": "2.10.1"+ },+ "devDependencies": {+ "@tauri-apps/cli": "2.11.2"+ }+ },+ "node_modules/@tauri-apps/api": {+ "version": "2.11.0",+ "resolved": "https://registry.npmjs.org/@tauri-apps/api/-/api-2.11.0.tgz",+ "integrity": "sha512-7CinYODhky9lmO23xHnUFv0Xt43fbtWMyxZcLcRBlFkcgXKuEirBvHpmtJ89YMhyeGcq20Wuc47Fa4XjyniywA==",+ "license": "Apache-2.0 OR MIT",+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/tauri"+ }+ },+ "node_modules/@tauri-apps/cli": {+ "version": "2.11.2",+ "resolved": "https://registry.npmjs.org/@tauri-apps/cli/-/cli-2.11.2.tgz",+ "integrity": "sha512-bk3HemqvGRoy+5D/dVMUQHKMYLglD0jVnMm/0iGMH6ufZ+p8r14m6BpIixwij3PBvZdvORUp1YifTD8QxVZ1Nw==",+ "dev": true,+ "license": "Apache-2.0 OR MIT",+ "bin": {+ "tauri": "tauri.js"+ },+ "engines": {+ "node": ">= 10"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/tauri"+ },+ "optionalDependencies": {+ "@tauri-apps/cli-darwin-arm64": "2.11.2",+ "@tauri-apps/cli-darwin-x64": "2.11.2",+ "@tauri-apps/cli-linux-arm-gnueabihf": "2.11.2",+ "@tauri-apps/cli-linux-arm64-gnu": "2.11.2",+ "@tauri-apps/cli-linux-arm64-musl": "2.11.2",+ "@tauri-apps/cli-linux-riscv64-gnu": "2.11.2",+ "@tauri-apps/cli-linux-x64-gnu": "2.11.2",+ "@tauri-apps/cli-linux-x64-musl": "2.11.2",+ "@tauri-apps/cli-win32-arm64-msvc": "2.11.2",+ "@tauri-apps/cli-win32-ia32-msvc": "2.11.2",+ "@tauri-apps/cli-win32-x64-msvc": "2.11.2"+ }+ },+ "node_modules/@tauri-apps/cli-darwin-arm64": {+ "version": "2.11.2",+ "resolved": "https://registry.npmjs.org/@tauri-apps/cli-darwin-arm64/-/cli-darwin-arm64-2.11.2.tgz",+ "integrity": "sha512-+4UZzLt+eOAEQCwgd+TqKgyUJMrvx+BgdXLLaqJYmPqzP+nE6YZr/hY6CWLYGQb8jFn99jEkmC6uA3tNvamA1w==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "Apache-2.0 OR MIT",+ "optional": true,+ "os": [+ "darwin"+ ],+ "engines": {+ "node": ">= 10"+ }+ },+ "node_modules/@tauri-apps/cli-darwin-x64": {+ "version": "2.11.2",+ "resolved": "https://registry.npmjs.org/@tauri-apps/cli-darwin-x64/-/cli-darwin-x64-2.11.2.tgz",+ "integrity": "sha512-VjYYtZUPqDMLutSfJEyxFE3Bz+DPi7c8wC3imckgvciLDZLq4qwKJxBicg0BXGhXjJsl8vKWgWRFNMPELQ+Xyg==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "Apache-2.0 OR MIT",+ "optional": true,+ "os": [+ "darwin"+ ],+ "engines": {+ "node": ">= 10"+ }+ },+ "node_modules/@tauri-apps/cli-linux-arm-gnueabihf": {+ "version": "2.11.2",+ "resolved": "https://registry.npmjs.org/@tauri-apps/cli-linux-arm-gnueabihf/-/cli-linux-arm-gnueabihf-2.11.2.tgz",+ "integrity": "sha512-yMemD6f4i95AQriS8EazyOFzbE34yjnP16i3IOzpHGQvBoy2DjypFMFBq0NtPuITURv/cOGguRtHR5d79/9CSA==",+ "cpu": [+ "arm"+ ],+ "dev": true,+ "license": "Apache-2.0 OR MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">= 10"+ }+ },+ "node_modules/@tauri-apps/cli-linux-arm64-gnu": {+ "version": "2.11.2",+ "resolved": "https://registry.npmjs.org/@tauri-apps/cli-linux-arm64-gnu/-/cli-linux-arm64-gnu-2.11.2.tgz",+ "integrity": "sha512-cgI91D2wL8GSgoWwZXDqt+DwnuZCP2/bz03QAE4TrhgAKIsrB4hX26W/H1EONPUUNkqrsgeCD0wU6pcNjV/5kw==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "Apache-2.0 OR MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">= 10"+ }+ },+ "node_modules/@tauri-apps/cli-linux-arm64-musl": {+ "version": "2.11.2",+ "resolved": "https://registry.npmjs.org/@tauri-apps/cli-linux-arm64-musl/-/cli-linux-arm64-musl-2.11.2.tgz",+ "integrity": "sha512-X1rm0BERqAAggtYTESSgXrS3sz4Sb/OiPiz54UqISlXW+GkR3vNIGnsy/lejNmoXGVqri3Q53BCfQiclOIyRPw==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "Apache-2.0 OR MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">= 10"+ }+ },+ "node_modules/@tauri-apps/cli-linux-riscv64-gnu": {+ "version": "2.11.2",+ "resolved": "https://registry.npmjs.org/@tauri-apps/cli-linux-riscv64-gnu/-/cli-linux-riscv64-gnu-2.11.2.tgz",+ "integrity": "sha512-usbMLJbT3KtkOrBMDVeGYNM35aTHXx38SJSzTMSqqjeUIOQ+iVPjb2yAGNAE+KqmBbAx4FOFIyMeKXx2M/JKGQ==",+ "cpu": [+ "riscv64"+ ],+ "dev": true,+ "license": "Apache-2.0 OR MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">= 10"+ }+ },+ "node_modules/@tauri-apps/cli-linux-x64-gnu": {+ "version": "2.11.2",+ "resolved": "https://registry.npmjs.org/@tauri-apps/cli-linux-x64-gnu/-/cli-linux-x64-gnu-2.11.2.tgz",+ "integrity": "sha512-Ru4gwJKPG0ctVGchRGpRup4Y4lW2SSfFnrbQcyHhCliKy4g8Qz97TrUgCur4CbWyAgKxvGh3SjrkA0LDYzDGiw==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "Apache-2.0 OR MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">= 10"+ }+ },+ "node_modules/@tauri-apps/cli-linux-x64-musl": {+ "version": "2.11.2",+ "resolved": "https://registry.npmjs.org/@tauri-apps/cli-linux-x64-musl/-/cli-linux-x64-musl-2.11.2.tgz",+ "integrity": "sha512-eUm7T6clN1MMmNSRQ9gaWsQdyehQx2Gmn5hht/QUlqZQI/qcP2OJK5dnaxqwFzCr2HdsEo9ydxaqcS1oJzMvUw==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "Apache-2.0 OR MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">= 10"+ }+ },+ "node_modules/@tauri-apps/cli-win32-arm64-msvc": {+ "version": "2.11.2",+ "resolved": "https://registry.npmjs.org/@tauri-apps/cli-win32-arm64-msvc/-/cli-win32-arm64-msvc-2.11.2.tgz",+ "integrity": "sha512-HeeZW80jU+gVTOEX4X/hC6NVSAdDVXajwP5fxIZ/3z9WvUC7qrudX2GMTilYq6Dg0e0sk0XgsAJD1hZ5wPBXUA==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "Apache-2.0 OR MIT",+ "optional": true,+ "os": [+ "win32"+ ],+ "engines": {+ "node": ">= 10"+ }+ },+ "node_modules/@tauri-apps/cli-win32-ia32-msvc": {+ "version": "2.11.2",+ "resolved": "https://registry.npmjs.org/@tauri-apps/cli-win32-ia32-msvc/-/cli-win32-ia32-msvc-2.11.2.tgz",+ "integrity": "sha512-YhjQNZcXfbkCLyazSv1nPnJ9iRFE1wm6kc51FDbU10/Dk09io+6PAGMLjkxnX2GdM0qMnDmTjstY8mTDVvtKeA==",+ "cpu": [+ "ia32"+ ],+ "dev": true,+ "license": "Apache-2.0 OR MIT",+ "optional": true,+ "os": [+ "win32"+ ],+ "engines": {+ "node": ">= 10"+ }+ },+ "node_modules/@tauri-apps/cli-win32-x64-msvc": {+ "version": "2.11.2",+ "resolved": "https://registry.npmjs.org/@tauri-apps/cli-win32-x64-msvc/-/cli-win32-x64-msvc-2.11.2.tgz",+ "integrity": "sha512-d2JchlFIpZevZVReyqhQOekJmb1UH3rhZ5VX6sH3ty9ETE0TKQavpihvoScUXfKKpW6HZC0MrFGRU0ZtD+w3gA==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "Apache-2.0 OR MIT",+ "optional": true,+ "os": [+ "win32"+ ],+ "engines": {+ "node": ">= 10"+ }+ },+ "node_modules/@tauri-apps/plugin-dialog": {+ "version": "2.7.1",+ "resolved": "https://registry.npmjs.org/@tauri-apps/plugin-dialog/-/plugin-dialog-2.7.1.tgz",+ "integrity": "sha512-OK1UBXYt+ojcmxMktzzuyonYIFta8CmAASpX+CA+DTGK24KlHjhYI6x2iOJ/TjZF4N7/ACK1oFmEOjIY9IhzOQ==",+ "license": "MIT OR Apache-2.0",+ "dependencies": {+ "@tauri-apps/api": "^2.11.0"+ }+ },+ "node_modules/@tauri-apps/plugin-fs": {+ "version": "2.5.1",+ "resolved": "https://registry.npmjs.org/@tauri-apps/plugin-fs/-/plugin-fs-2.5.1.tgz",+ "integrity": "sha512-9Lz+Jopp6QyeEWhlpkMx4R/+P9HgR+AVAI4vOZhlT8Xaymtz8iVI/Ov984/XTqgJz/5gz5NretqPB/XEMS3NhQ==",+ "license": "MIT OR Apache-2.0",+ "dependencies": {+ "@tauri-apps/api": "^2.11.0"+ }+ },+ "node_modules/@tauri-apps/plugin-opener": {+ "version": "2.5.4",+ "resolved": "https://registry.npmjs.org/@tauri-apps/plugin-opener/-/plugin-opener-2.5.4.tgz",+ "integrity": "sha512-1HnPkb+AmgO29HBazm4uPLKB+r7zzcTBW1d0fyYp1uP+jwtpoiNDGKMMzz58SFp49nOIrxdE3aUJtT57lfO9CQ==",+ "license": "MIT OR Apache-2.0",+ "dependencies": {+ "@tauri-apps/api": "^2.11.0"+ }+ },+ "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.10.1",+ "resolved": "https://registry.npmjs.org/@tauri-apps/plugin-updater/-/plugin-updater-2.10.1.tgz",+ "integrity": "sha512-NFYMg+tWOZPJdzE/PpFj2qfqwAWwNS3kXrb1tm1gnBJ9mYzZ4WDRrwy8udzWoAnfGCHLuePNLY1WVCNHnh3eRA==",+ "license": "MIT OR Apache-2.0",+ "dependencies": {+ "@tauri-apps/api": "^2.10.1"+ }}+ }}diff --git a/rust/apps/ensu/src-tauri/tauri.conf.json b/rust/apps/ensu/src-tauri/tauri.conf.jsonindex b97fd46fab..2569e040d0 100644--- a/rust/apps/ensu/src-tauri/tauri.conf.json+++ b/rust/apps/ensu/src-tauri/tauri.conf.json@@ -11,7 +11,6 @@"frontendDist": "../../../../web/apps/ensu/out"},"app": {- "withGlobalTauri": true,"windows": [{"title": "Ensu",diff --git a/web/apps/ensu/src/pages/chat.tsx b/web/apps/ensu/src/pages/chat.tsxindex ea99cf30d5..34ca1d515d 100644--- a/web/apps/ensu/src/pages/chat.tsx+++ b/web/apps/ensu/src/pages/chat.tsx@@ -3752,9 +3752,7 @@ const Page: React.FC = () => {event.payload.type === "over") {if (canHandleImageDrop) {- setIsImageDragActive(- (isActive) => isActive || true,- );+ setIsImageDragActive(true);}return;}diff --git a/web/apps/ensu/src/services/app-update.ts b/web/apps/ensu/src/services/app-update.tsindex 1acf929550..3a72fdec21 100644--- a/web/apps/ensu/src/services/app-update.ts+++ b/web/apps/ensu/src/services/app-update.ts@@ -29,12 +29,8 @@ export const checkForAppUpdates = async (): Promise<AppUpdateCheckResult> => {return { kind: "up-to-date" };}- const version = update.version;- try {- await update.close();- } catch (e) {- log.warn("Failed to close Ensu updater resource", e);- }+ const { version } = update;+ await update.close();return { kind: "available", version };} catch (e) {log.error("Failed to auto-update Ensu", e);diff --git a/web/apps/ensu/src/services/tauri-runtime.ts b/web/apps/ensu/src/services/tauri-runtime.tsindex b8713daf56..8ebe1446cf 100644--- a/web/apps/ensu/src/services/tauri-runtime.ts+++ b/web/apps/ensu/src/services/tauri-runtime.ts@@ -1,14 +1,10 @@-type TauriRuntimeWindow = Window & { isTauri?: unknown };+type TauriGlobal = typeof globalThis & { isTauri?: unknown };-export const isTauriRuntime = () => {- if (typeof window === "undefined") return false;-- const tauriWindow = window as TauriRuntimeWindow;- return (- tauriWindow.isTauri === true ||- "__TAURI__" in tauriWindow ||- "__TAURI_IPC__" in tauriWindow ||- "__TAURI_INTERNALS__" in tauriWindow ||- "__TAURI_METADATA__" in tauriWindow- );-};+/**+ * Return true if we're running under Tauri.+ *+ * TThis is an inlined variant of `isTauri` from from `@tauri-apps/api/core`+ * so that we can detect Tauri runtime without importing the entire package.+ */+export const isTauriRuntime = () =>+ (globalThis as TauriGlobal).isTauri === true;