mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-12-06 14:56:23 +01:00
Compare commits
3
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1e8ecfd1a2 | ||
|
|
6196bf2a21 | ||
|
|
1b8342bdae |
No files matched your search
@@ -22,13 +22,10 @@ function snapshot(directory) {
|
|||||||
for (const entry of readdirSync(directory, { withFileTypes: true })) {
|
for (const entry of readdirSync(directory, { withFileTypes: true })) {
|
||||||
const source = join(directory, entry.name);
|
const source = join(directory, entry.name);
|
||||||
// Only descend through the bundler's immediate output folders. This excludes
|
// Only descend through the bundler's immediate output folders. This excludes
|
||||||
// .app trees and the extracted CEF deb contents (which contain executables).
|
// .app trees (which contain executables).
|
||||||
if (entry.isDirectory() && directory === bundle) {
|
if (entry.isDirectory() && directory === bundle) {
|
||||||
snapshot(source);
|
snapshot(source);
|
||||||
} else if (
|
} else if (entry.isFile() && extensions.test(entry.name)) {
|
||||||
entry.isFile() &&
|
|
||||||
(extensions.test(entry.name) || /^yaak-cef_.*_linux_.*\.tar\.gz$/.test(entry.name))
|
|
||||||
) {
|
|
||||||
// Match tauri-action's default macOS updater asset naming exactly.
|
// Match tauri-action's default macOS updater asset naming exactly.
|
||||||
const arch = env.RELEASE_ARCH === "arm64" ? "aarch64" : "x64";
|
const arch = env.RELEASE_ARCH === "arm64" ? "aarch64" : "x64";
|
||||||
const assetName = entry.name.replace(/\.app\.tar\.gz(\.sig)?$/, `_${arch}.app.tar.gz$1`);
|
const assetName = entry.name.replace(/\.app\.tar\.gz(\.sig)?$/, `_${arch}.app.tar.gz$1`);
|
||||||
@@ -65,7 +62,6 @@ if (existsSync(destination)) {
|
|||||||
workflowSha: env.GITHUB_WORKFLOW_SHA,
|
workflowSha: env.GITHUB_WORKFLOW_SHA,
|
||||||
tauriAction: "tauri-apps/tauri-action@v0",
|
tauriAction: "tauri-apps/tauri-action@v0",
|
||||||
platform: env.RELEASE_PLATFORM,
|
platform: env.RELEASE_PLATFORM,
|
||||||
runtime: env.RELEASE_RUNTIME,
|
|
||||||
arch: env.RELEASE_ARCH,
|
arch: env.RELEASE_ARCH,
|
||||||
target: env.RELEASE_TARGET,
|
target: env.RELEASE_TARGET,
|
||||||
args: env.RELEASE_ARGS,
|
args: env.RELEASE_ARGS,
|
||||||
|
|||||||
@@ -32,56 +32,32 @@ jobs:
|
|||||||
args: '--target aarch64-apple-darwin --config ./tauri.release.conf.json --config ''{"build":{"features":["updater","license","wry"]}}'''
|
args: '--target aarch64-apple-darwin --config ./tauri.release.conf.json --config ''{"build":{"features":["updater","license","wry"]}}'''
|
||||||
yaak_arch: "arm64"
|
yaak_arch: "arm64"
|
||||||
os: "macos"
|
os: "macos"
|
||||||
runtime: "wry"
|
|
||||||
targets: "aarch64-apple-darwin"
|
targets: "aarch64-apple-darwin"
|
||||||
- platform: "macos-latest" # for Intel-based Macs.
|
- platform: "macos-latest" # for Intel-based Macs.
|
||||||
args: '--target x86_64-apple-darwin --config ./tauri.release.conf.json --config ''{"build":{"features":["updater","license","wry"]}}'''
|
args: '--target x86_64-apple-darwin --config ./tauri.release.conf.json --config ''{"build":{"features":["updater","license","wry"]}}'''
|
||||||
yaak_arch: "x64"
|
yaak_arch: "x64"
|
||||||
os: "macos"
|
os: "macos"
|
||||||
runtime: "wry"
|
|
||||||
targets: "x86_64-apple-darwin"
|
targets: "x86_64-apple-darwin"
|
||||||
- platform: "ubuntu-22.04"
|
- platform: "ubuntu-22.04"
|
||||||
args: '--config ./tauri.release.conf.json --config ''{"build":{"features":["updater","license","wry"]}}'''
|
args: '--config ./tauri.release.conf.json --config ''{"build":{"features":["updater","license","wry"]}}'''
|
||||||
yaak_arch: "x64"
|
yaak_arch: "x64"
|
||||||
os: "ubuntu"
|
os: "ubuntu"
|
||||||
runtime: "wry"
|
|
||||||
targets: ""
|
targets: ""
|
||||||
- platform: "ubuntu-22.04-arm"
|
- platform: "ubuntu-22.04-arm"
|
||||||
args: '--config ./tauri.release.conf.json --config ''{"build":{"features":["updater","license","wry"]}}'''
|
args: '--config ./tauri.release.conf.json --config ''{"build":{"features":["updater","license","wry"]}}'''
|
||||||
yaak_arch: "arm64"
|
yaak_arch: "arm64"
|
||||||
os: "ubuntu"
|
os: "ubuntu"
|
||||||
runtime: "wry"
|
|
||||||
targets: ""
|
|
||||||
- platform: "ubuntu-22.04"
|
|
||||||
args: >-
|
|
||||||
--bundles deb
|
|
||||||
--config ./tauri.release.conf.json
|
|
||||||
--config '{"productName":"yaak-cef","mainBinaryName":"yaak-cef","identifier":"app.yaak.desktop.cef","build":{"features":["license","cef"]},"bundle":{"createUpdaterArtifacts":false}}'
|
|
||||||
yaak_arch: "x64"
|
|
||||||
os: "ubuntu"
|
|
||||||
runtime: "cef"
|
|
||||||
targets: ""
|
|
||||||
- platform: "ubuntu-22.04-arm"
|
|
||||||
args: >-
|
|
||||||
--bundles deb
|
|
||||||
--config ./tauri.release.conf.json
|
|
||||||
--config '{"productName":"yaak-cef","mainBinaryName":"yaak-cef","identifier":"app.yaak.desktop.cef","build":{"features":["license","cef"]},"bundle":{"createUpdaterArtifacts":false}}'
|
|
||||||
yaak_arch: "arm64"
|
|
||||||
os: "ubuntu"
|
|
||||||
runtime: "cef"
|
|
||||||
targets: ""
|
targets: ""
|
||||||
- platform: "windows-latest"
|
- platform: "windows-latest"
|
||||||
args: '--config ./tauri.release.conf.json --config ''{"build":{"features":["updater","license","wry"]}}'''
|
args: '--config ./tauri.release.conf.json --config ''{"build":{"features":["updater","license","wry"]}}'''
|
||||||
yaak_arch: "x64"
|
yaak_arch: "x64"
|
||||||
os: "windows"
|
os: "windows"
|
||||||
runtime: "wry"
|
|
||||||
targets: ""
|
targets: ""
|
||||||
# Windows ARM64
|
# Windows ARM64
|
||||||
- platform: "windows-latest"
|
- platform: "windows-latest"
|
||||||
args: '--target aarch64-pc-windows-msvc --config ./tauri.release.conf.json --config ''{"build":{"features":["updater","license","wry"]}}'''
|
args: '--target aarch64-pc-windows-msvc --config ./tauri.release.conf.json --config ''{"build":{"features":["updater","license","wry"]}}'''
|
||||||
yaak_arch: "arm64"
|
yaak_arch: "arm64"
|
||||||
os: "windows"
|
os: "windows"
|
||||||
runtime: "wry"
|
|
||||||
targets: "aarch64-pc-windows-msvc"
|
targets: "aarch64-pc-windows-msvc"
|
||||||
runs-on: ${{ matrix.platform }}
|
runs-on: ${{ matrix.platform }}
|
||||||
timeout-minutes: 360
|
timeout-minutes: 360
|
||||||
@@ -105,13 +81,6 @@ jobs:
|
|||||||
shared-key: ci
|
shared-key: ci
|
||||||
cache-on-failure: true
|
cache-on-failure: true
|
||||||
|
|
||||||
- name: Cache CEF (Linux only)
|
|
||||||
if: matrix.os == 'ubuntu' && matrix.runtime == 'cef'
|
|
||||||
uses: actions/cache@v4
|
|
||||||
with:
|
|
||||||
path: ~/.cache/tauri-cef
|
|
||||||
key: cef-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('Cargo.lock') }}
|
|
||||||
|
|
||||||
- name: install dependencies (Linux only)
|
- name: install dependencies (Linux only)
|
||||||
if: matrix.os == 'ubuntu'
|
if: matrix.os == 'ubuntu'
|
||||||
run: |
|
run: |
|
||||||
@@ -227,32 +196,9 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
RELEASE_TARGET: ${{ matrix.targets }}
|
RELEASE_TARGET: ${{ matrix.targets }}
|
||||||
RELEASE_PLATFORM: ${{ matrix.platform }}
|
RELEASE_PLATFORM: ${{ matrix.platform }}
|
||||||
RELEASE_RUNTIME: ${{ matrix.runtime }}
|
|
||||||
RELEASE_ARCH: ${{ matrix.yaak_arch }}
|
RELEASE_ARCH: ${{ matrix.yaak_arch }}
|
||||||
RELEASE_ARGS: ${{ matrix.args }}
|
RELEASE_ARGS: ${{ matrix.args }}
|
||||||
|
|
||||||
- name: Build and upload CEF tarball from deb (Linux only)
|
|
||||||
if: matrix.os == 'ubuntu' && matrix.runtime == 'cef'
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
run: |
|
|
||||||
set -euo pipefail
|
|
||||||
deb=$(find target/release/bundle/deb -maxdepth 1 -type f -name '*.deb' | head -n 1)
|
|
||||||
version="${GITHUB_REF_NAME#v}"
|
|
||||||
extract_dir="target/release/bundle/deb/yaak-cef-linux-${{ matrix.yaak_arch }}"
|
|
||||||
tarball="target/release/bundle/deb/yaak-cef_${version}_linux_${{ matrix.yaak_arch }}.tar.gz"
|
|
||||||
rm -rf "$extract_dir"
|
|
||||||
mkdir -p "$extract_dir"
|
|
||||||
dpkg-deb -x "$deb" "$extract_dir"
|
|
||||||
tar -C "$extract_dir" -czf "$tarball" .
|
|
||||||
for attempt in 1 2 3 4; do
|
|
||||||
if gh release upload "$GITHUB_REF_NAME" "$tarball" --clobber; then
|
|
||||||
break
|
|
||||||
fi
|
|
||||||
if [ "$attempt" -eq 4 ]; then exit 1; fi
|
|
||||||
sleep 10
|
|
||||||
done
|
|
||||||
|
|
||||||
# Build a per-machine NSIS installer for enterprise deployment (PDQ, SCCM, Intune)
|
# Build a per-machine NSIS installer for enterprise deployment (PDQ, SCCM, Intune)
|
||||||
- name: Build and upload machine-wide installer (Windows only)
|
- name: Build and upload machine-wide installer (Windows only)
|
||||||
if: matrix.os == 'windows'
|
if: matrix.os == 'windows'
|
||||||
@@ -292,7 +238,6 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
RELEASE_TARGET: ${{ matrix.targets }}
|
RELEASE_TARGET: ${{ matrix.targets }}
|
||||||
RELEASE_PLATFORM: ${{ matrix.platform }}
|
RELEASE_PLATFORM: ${{ matrix.platform }}
|
||||||
RELEASE_RUNTIME: ${{ matrix.runtime }}
|
|
||||||
RELEASE_ARCH: ${{ matrix.yaak_arch }}
|
RELEASE_ARCH: ${{ matrix.yaak_arch }}
|
||||||
RELEASE_ARGS: ${{ matrix.args }}
|
RELEASE_ARGS: ${{ matrix.args }}
|
||||||
|
|
||||||
@@ -300,7 +245,7 @@ jobs:
|
|||||||
if: ${{ !cancelled() }}
|
if: ${{ !cancelled() }}
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: release-${{ github.ref_name }}-${{ matrix.platform }}-${{ matrix.runtime }}-${{ matrix.yaak_arch }}-${{ github.run_id }}-attempt-${{ github.run_attempt }}
|
name: release-${{ github.ref_name }}-${{ matrix.platform }}-${{ matrix.yaak_arch }}-${{ github.run_id }}-attempt-${{ github.run_attempt }}
|
||||||
path: ${{ runner.temp }}/yaak-release-artifacts/
|
path: ${{ runner.temp }}/yaak-release-artifacts/
|
||||||
retention-days: 7
|
retention-days: 7
|
||||||
if-no-files-found: warn
|
if-no-files-found: warn
|
||||||
|
|||||||
Generated
+378
-1106
File diff suppressed because it is too large.
Load diff
+4
-8
@@ -67,14 +67,14 @@ schemars = { version = "0.8.22", features = ["chrono"] }
|
|||||||
serde = "1.0.228"
|
serde = "1.0.228"
|
||||||
serde_json = "1.0.145"
|
serde_json = "1.0.145"
|
||||||
sha2 = "0.11.1"
|
sha2 = "0.11.1"
|
||||||
tauri = { version = "2.11.1", default-features = false, features = [
|
tauri = { version = "2.12.7", default-features = false, features = [
|
||||||
"common-controls-v6",
|
"common-controls-v6",
|
||||||
"compression",
|
"compression",
|
||||||
"dynamic-acl",
|
"dynamic-acl",
|
||||||
] }
|
] }
|
||||||
tauri-plugin = "2.6.1"
|
tauri-plugin = "2.7.4"
|
||||||
tauri-plugin-dialog = { version = "2.7.1", default-features = false }
|
tauri-plugin-dialog = { version = "2.8.4", default-features = false }
|
||||||
tauri-plugin-shell = "2.3.5"
|
tauri-plugin-shell = "2.6.0"
|
||||||
thiserror = "2.0.17"
|
thiserror = "2.0.17"
|
||||||
tokio = "1.48.0"
|
tokio = "1.48.0"
|
||||||
ts-rs = "11.1.0"
|
ts-rs = "11.1.0"
|
||||||
@@ -122,7 +122,3 @@ yaak-window = { path = "crates-tauri/yaak-window" }
|
|||||||
|
|
||||||
[profile.release]
|
[profile.release]
|
||||||
strip = false
|
strip = false
|
||||||
|
|
||||||
[patch.crates-io]
|
|
||||||
tauri = { git = "https://github.com/tauri-apps/tauri", rev = "d9bc695c18d9a25baec21d8a5f36d72e3a14ee53" }
|
|
||||||
tauri-build = { git = "https://github.com/tauri-apps/tauri", rev = "d9bc695c18d9a25baec21d8a5f36d72e3a14ee53" }
|
|
||||||
@@ -21,21 +21,21 @@
|
|||||||
"@dnd-kit/core": "^6.3.1",
|
"@dnd-kit/core": "^6.3.1",
|
||||||
"@gilbarbara/deep-equal": "^0.4.1",
|
"@gilbarbara/deep-equal": "^0.4.1",
|
||||||
"@lezer/highlight": "^1.2.5",
|
"@lezer/highlight": "^1.2.5",
|
||||||
"@lezer/lr": "^1.4.11",
|
"@lezer/lr": "^1.4.12",
|
||||||
"@mjackson/multipart-parser": "^0.10.1",
|
"@mjackson/multipart-parser": "^0.10.1",
|
||||||
"@replit/codemirror-emacs": "^6.1.0",
|
"@replit/codemirror-emacs": "^6.1.0",
|
||||||
"@replit/codemirror-vim": "^6.3.0",
|
"@replit/codemirror-vim": "^6.3.0",
|
||||||
"@replit/codemirror-vscode-keymap": "^6.0.2",
|
"@replit/codemirror-vscode-keymap": "^6.0.2",
|
||||||
"@shopify/lang-jsonc": "^1.0.1",
|
"@shopify/lang-jsonc": "^1.0.1",
|
||||||
"@tanstack/react-query": "^5.105.0",
|
"@tanstack/react-query": "^5.107.1",
|
||||||
"@tanstack/react-router": "^1.170.46",
|
"@tanstack/react-router": "^1.170.46",
|
||||||
"@tanstack/react-virtual": "^3.14.24",
|
"@tanstack/react-virtual": "^3.14.26",
|
||||||
"@tauri-apps/api": "^2.12.4",
|
"@tauri-apps/api": "^2.12.5",
|
||||||
"@tauri-apps/plugin-clipboard-manager": "^2.5.0",
|
"@tauri-apps/plugin-clipboard-manager": "^2.5.0",
|
||||||
"@tauri-apps/plugin-dialog": "^2.8.4",
|
"@tauri-apps/plugin-dialog": "^2.8.4",
|
||||||
"@tauri-apps/plugin-fs": "^2.7.1",
|
"@tauri-apps/plugin-fs": "^2.7.1",
|
||||||
"@tauri-apps/plugin-log": "^2.10.1",
|
"@tauri-apps/plugin-log": "^2.10.2",
|
||||||
"@tauri-apps/plugin-opener": "^2.7.2",
|
"@tauri-apps/plugin-opener": "^2.7.3",
|
||||||
"@tauri-apps/plugin-os": "^2.4.0",
|
"@tauri-apps/plugin-os": "^2.4.0",
|
||||||
"@tauri-apps/plugin-shell": "^2.6.0",
|
"@tauri-apps/plugin-shell": "^2.6.0",
|
||||||
"buffer": "^6.0.3",
|
"buffer": "^6.0.3",
|
||||||
@@ -47,17 +47,17 @@
|
|||||||
"eventemitter3": "^5.0.1",
|
"eventemitter3": "^5.0.1",
|
||||||
"focus-trap-react": "^12.0.3",
|
"focus-trap-react": "^12.0.3",
|
||||||
"fuzzbunny": "^1.0.1",
|
"fuzzbunny": "^1.0.1",
|
||||||
"graphql": "^17.0.2",
|
"graphql": "^17.1.0",
|
||||||
"history": "^5.3.0",
|
"history": "^5.3.0",
|
||||||
"jotai": "^2.18.0",
|
"jotai": "^2.18.0",
|
||||||
"jotai-family": "^1.0.1",
|
"jotai-family": "^1.0.1",
|
||||||
"js-md5": "^0.9.2",
|
"js-md5": "^0.9.2",
|
||||||
"jsonc-parser": "^3.3.1",
|
"jsonc-parser": "^3.3.1",
|
||||||
"lucide-react": "^1.64.0",
|
"lucide-react": "^1.73.0",
|
||||||
"mime": "^4.1.2",
|
"mime": "^4.1.2",
|
||||||
"motion": "^14.8.0",
|
"motion": "^14.14.0",
|
||||||
"nanoid": "^6.0.2",
|
"nanoid": "^6.0.2",
|
||||||
"papaparse": "^5.4.1",
|
"papaparse": "^5.7.1",
|
||||||
"parse-color": "^1.0.0",
|
"parse-color": "^1.0.0",
|
||||||
"react": "^19.3.1",
|
"react": "^19.3.1",
|
||||||
"react-colorful": "^5.6.1",
|
"react-colorful": "^5.6.1",
|
||||||
@@ -77,8 +77,8 @@
|
|||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@lezer/generator": "^1.8.1",
|
"@lezer/generator": "^1.8.1",
|
||||||
"@rolldown/plugin-babel": "^0.3.0",
|
"@rolldown/plugin-babel": "^0.3.1",
|
||||||
"@tanstack/router-plugin": "^1.168.48",
|
"@tanstack/router-plugin": "^1.169.0",
|
||||||
"@types/babel__core": "^7.20.5",
|
"@types/babel__core": "^7.20.5",
|
||||||
"@types/node": "^22.20.5",
|
"@types/node": "^22.20.5",
|
||||||
"@types/papaparse": "^5.3.16",
|
"@types/papaparse": "^5.3.16",
|
||||||
@@ -88,15 +88,15 @@
|
|||||||
"@types/react-syntax-highlighter": "^15.5.13",
|
"@types/react-syntax-highlighter": "^15.5.13",
|
||||||
"@types/uuid": "^10.0.0",
|
"@types/uuid": "^10.0.0",
|
||||||
"@types/whatwg-mimetype": "^5.0.0",
|
"@types/whatwg-mimetype": "^5.0.0",
|
||||||
"@vitejs/plugin-react": "^6.1.2",
|
"@vitejs/plugin-react": "^6.3.0",
|
||||||
"@yaakapp-internal/theme": "^1.0.0",
|
"@yaakapp-internal/theme": "^1.0.0",
|
||||||
"@yaakapp-internal/ui": "^1.0.0",
|
"@yaakapp-internal/ui": "^1.0.0",
|
||||||
"babel-plugin-react-compiler": "^1.0.0",
|
"babel-plugin-react-compiler": "^1.0.0",
|
||||||
"happy-dom": "^21.0.4",
|
"happy-dom": "^21.0.4",
|
||||||
"rollup": "^4.66.0",
|
"rollup": "^4.68.3",
|
||||||
"vite": "npm:@voidzero-dev/vite-plus-core@^1.4.0",
|
"vite": "npm:@voidzero-dev/vite-plus-core@^1.6.0",
|
||||||
"vite-plugin-static-copy": "^4.1.1",
|
"vite-plugin-static-copy": "^4.1.1",
|
||||||
"vite-plugin-wasm": "^3.5.0",
|
"vite-plugin-wasm": "^3.5.0",
|
||||||
"vite-plus": "^1.4.0"
|
"vite-plus": "^1.6.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -10,33 +10,33 @@
|
|||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@dnd-kit/core": "^6.3.1",
|
"@dnd-kit/core": "^6.3.1",
|
||||||
"@tanstack/react-query": "^5.105.0",
|
"@tanstack/react-query": "^5.107.1",
|
||||||
"@tanstack/react-virtual": "^3.14.24",
|
"@tanstack/react-virtual": "^3.14.26",
|
||||||
"@tauri-apps/api": "^2.12.4",
|
"@tauri-apps/api": "^2.12.5",
|
||||||
"@tauri-apps/plugin-dialog": "^2.8.4",
|
"@tauri-apps/plugin-dialog": "^2.8.4",
|
||||||
"@tauri-apps/plugin-opener": "^2.7.2",
|
"@tauri-apps/plugin-opener": "^2.7.3",
|
||||||
"@tauri-apps/plugin-os": "^2.4.0",
|
"@tauri-apps/plugin-os": "^2.4.0",
|
||||||
"@yaakapp-internal/proxy-lib": "^1.0.0",
|
"@yaakapp-internal/proxy-lib": "^1.0.0",
|
||||||
"@yaakapp-internal/theme": "^1.0.0",
|
"@yaakapp-internal/theme": "^1.0.0",
|
||||||
"@yaakapp-internal/ui": "^1.0.0",
|
"@yaakapp-internal/ui": "^1.0.0",
|
||||||
"classnames": "^2.5.1",
|
"classnames": "^2.5.1",
|
||||||
"jotai": "^2.18.0",
|
"jotai": "^2.18.0",
|
||||||
"motion": "^14.8.0",
|
"motion": "^14.14.0",
|
||||||
"react": "^19.3.1",
|
"react": "^19.3.1",
|
||||||
"react-dom": "^19.3.1",
|
"react-dom": "^19.3.1",
|
||||||
"tldts": "^7.4.19",
|
"tldts": "^7.5.2",
|
||||||
"vkbeautify": "^0.99.3"
|
"vkbeautify": "^0.99.3"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@rolldown/plugin-babel": "^0.3.0",
|
"@rolldown/plugin-babel": "^0.3.1",
|
||||||
"@types/babel__core": "^7.20.5",
|
"@types/babel__core": "^7.20.5",
|
||||||
"@types/react": "^19.2.0",
|
"@types/react": "^19.2.0",
|
||||||
"@types/react-dom": "^19.2.0",
|
"@types/react-dom": "^19.2.0",
|
||||||
"@vitejs/plugin-react": "^6.1.2",
|
"@vitejs/plugin-react": "^6.3.0",
|
||||||
"babel-plugin-react-compiler": "^1.0.0",
|
"babel-plugin-react-compiler": "^1.0.0",
|
||||||
"typescript": "^5.8.3",
|
"typescript": "^5.8.3",
|
||||||
"vite": "npm:@voidzero-dev/vite-plus-core@^1.4.0",
|
"vite": "npm:@voidzero-dev/vite-plus-core@^1.6.0",
|
||||||
"vite-plugin-wasm": "^3.5.0",
|
"vite-plugin-wasm": "^3.5.0",
|
||||||
"vite-plus": "^1.4.0"
|
"vite-plus": "^1.6.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -13,13 +13,12 @@ crate-type = ["staticlib", "cdylib", "lib"]
|
|||||||
[features]
|
[features]
|
||||||
cargo-clippy = []
|
cargo-clippy = []
|
||||||
default = []
|
default = []
|
||||||
cef = ["tauri/cef", "tauri-plugin-dialog/xdg-portal"]
|
|
||||||
wry = ["tauri/wry", "tauri/x11", "tauri/dbus", "tauri-plugin-dialog/gtk3"]
|
wry = ["tauri/wry", "tauri/x11", "tauri/dbus", "tauri-plugin-dialog/gtk3"]
|
||||||
updater = []
|
updater = []
|
||||||
license = ["yaak-license"]
|
license = ["yaak-license"]
|
||||||
|
|
||||||
[build-dependencies]
|
[build-dependencies]
|
||||||
tauri-build = { version = "2.6.1", features = [] }
|
tauri-build = { version = "2.7.6", features = [] }
|
||||||
|
|
||||||
[target.'cfg(target_os = "linux")'.dependencies]
|
[target.'cfg(target_os = "linux")'.dependencies]
|
||||||
openssl-sys = { version = "0.9.105", features = ["vendored"] } # For Ubuntu installation to work
|
openssl-sys = { version = "0.9.105", features = ["vendored"] } # For Ubuntu installation to work
|
||||||
@@ -56,16 +55,16 @@ reqwest = { workspace = true, features = [
|
|||||||
serde = { workspace = true, features = ["derive"] }
|
serde = { workspace = true, features = ["derive"] }
|
||||||
serde_json = { workspace = true, features = ["raw_value"] }
|
serde_json = { workspace = true, features = ["raw_value"] }
|
||||||
tauri = { workspace = true, features = ["devtools", "protocol-asset"] }
|
tauri = { workspace = true, features = ["devtools", "protocol-asset"] }
|
||||||
tauri-plugin-clipboard-manager = "2.3.2"
|
tauri-plugin-clipboard-manager = "2.5.0"
|
||||||
tauri-plugin-deep-link = "2.4.9"
|
tauri-plugin-deep-link = "2.6.3"
|
||||||
tauri-plugin-dialog = { workspace = true }
|
tauri-plugin-dialog = { workspace = true }
|
||||||
tauri-plugin-fs = "2.5.1"
|
tauri-plugin-fs = "2.7.1"
|
||||||
tauri-plugin-log = { version = "2.8.0", features = ["colored"] }
|
tauri-plugin-log = { version = "2.10.2", features = ["colored"] }
|
||||||
tauri-plugin-opener = "2.5.4"
|
tauri-plugin-opener = "2.7.3"
|
||||||
tauri-plugin-os = "2.3.2"
|
tauri-plugin-os = "2.4.0"
|
||||||
tauri-plugin-shell = { workspace = true }
|
tauri-plugin-shell = { workspace = true }
|
||||||
tauri-plugin-single-instance = { version = "2.4.2", features = ["deep-link"] }
|
tauri-plugin-single-instance = { version = "2.5.5", features = ["deep-link"] }
|
||||||
tauri-plugin-updater = "2.10.1"
|
tauri-plugin-updater = "2.14.1"
|
||||||
thiserror = { workspace = true }
|
thiserror = { workspace = true }
|
||||||
tokio = { workspace = true, features = ["sync"] }
|
tokio = { workspace = true, features = ["sync"] }
|
||||||
tokio-stream = "0.1.17"
|
tokio-stream = "0.1.17"
|
||||||
|
|||||||
@@ -75,12 +75,10 @@ mod uri_scheme;
|
|||||||
mod window_menu;
|
mod window_menu;
|
||||||
mod ws_ext;
|
mod ws_ext;
|
||||||
|
|
||||||
#[cfg(not(any(feature = "cef", feature = "wry")))]
|
#[cfg(not(feature = "wry"))]
|
||||||
compile_error!("Enable one Tauri runtime feature: `cef` or `wry`.");
|
compile_error!("Enable the Tauri runtime feature: `wry`.");
|
||||||
|
|
||||||
#[cfg(feature = "cef")]
|
#[cfg(feature = "wry")]
|
||||||
type TauriRuntime = tauri::Cef;
|
|
||||||
#[cfg(all(not(feature = "cef"), feature = "wry"))]
|
|
||||||
type TauriRuntime = tauri::Wry;
|
type TauriRuntime = tauri::Wry;
|
||||||
|
|
||||||
fn setup_window_menu<R: Runtime>(win: &WebviewWindow<R>) -> Result<()> {
|
fn setup_window_menu<R: Runtime>(win: &WebviewWindow<R>) -> Result<()> {
|
||||||
@@ -1202,7 +1200,6 @@ async fn cmd_check_for_updates<R: Runtime>(
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[cfg_attr(mobile, tauri::mobile_entry_point)]
|
#[cfg_attr(mobile, tauri::mobile_entry_point)]
|
||||||
#[cfg_attr(feature = "cef", tauri::cef_entry_point)]
|
|
||||||
pub fn run() {
|
pub fn run() {
|
||||||
// GUI apps launched via Finder/launchd inherit a 256 open-file soft limit on macOS
|
// GUI apps launched via Finder/launchd inherit a 256 open-file soft limit on macOS
|
||||||
// (1024 on most Linux desktops). SQLite WAL connections hold ~3 fds each, so raise
|
// (1024 on most Linux desktops). SQLite WAL connections hold ~3 fds each, so raise
|
||||||
@@ -1440,7 +1437,13 @@ pub fn run() {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
RunEvent::Exit => restart::relaunch_if_requested(),
|
RunEvent::Exit => {
|
||||||
|
// The single-instance lock is otherwise released only after this handler
|
||||||
|
// returns, so the relaunched app could find it, hand its launch to this
|
||||||
|
// dying instance and quit. A no-op where the plugin isn't registered.
|
||||||
|
tauri_plugin_single_instance::destroy(app_handle);
|
||||||
|
restart::relaunch_if_requested();
|
||||||
|
}
|
||||||
_ => {}
|
_ => {}
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -371,8 +371,8 @@ async fn cmd_sync_watch<R: Runtime>(
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// Build the router with every command in the schema registered to its
|
/// Build the router with every command in the schema registered to its
|
||||||
/// adapter here. Generic over the runtime so the same registry serves Wry and
|
/// adapter here. Generic over the runtime, as the commands it registers are.
|
||||||
/// CEF builds. Adding a command means adding it to the schema *and* writing an
|
/// Adding a command means adding it to the schema *and* writing an
|
||||||
/// adapter below; a missing adapter fails to compile rather than 404 at runtime.
|
/// adapter below; a missing adapter fails to compile rather than 404 at runtime.
|
||||||
macro_rules! register_commands {
|
macro_rules! register_commands {
|
||||||
( $( $name:ident ( $req:ty ) -> $res:ty ),* $(,)? ) => {
|
( $( $name:ident ( $req:ty ) -> $res:ty ),* $(,)? ) => {
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ name = "tauri_app_proxy_lib"
|
|||||||
crate-type = ["staticlib", "cdylib", "lib"]
|
crate-type = ["staticlib", "cdylib", "lib"]
|
||||||
|
|
||||||
[build-dependencies]
|
[build-dependencies]
|
||||||
tauri-build = { version = "2.6.1", features = [] }
|
tauri-build = { version = "2.7.6", features = [] }
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
default = ["wry"]
|
default = ["wry"]
|
||||||
@@ -23,9 +23,9 @@ log = { workspace = true }
|
|||||||
serde_json = { workspace = true }
|
serde_json = { workspace = true }
|
||||||
tauri = { workspace = true, features = ["devtools"] }
|
tauri = { workspace = true, features = ["devtools"] }
|
||||||
tauri-plugin-dialog = { workspace = true }
|
tauri-plugin-dialog = { workspace = true }
|
||||||
tauri-plugin-opener = "2.5.4"
|
tauri-plugin-opener = "2.7.3"
|
||||||
tauri-plugin-os = "2.3.2"
|
tauri-plugin-os = "2.4.0"
|
||||||
tauri-plugin-updater = { version = "2.10.1", optional = true }
|
tauri-plugin-updater = { version = "2.14.1", optional = true }
|
||||||
tokio = { workspace = true, features = ["sync"] }
|
tokio = { workspace = true, features = ["sync"] }
|
||||||
yaak-mac-window = { workspace = true }
|
yaak-mac-window = { workspace = true }
|
||||||
yaak-proxy-lib = { workspace = true }
|
yaak-proxy-lib = { workspace = true }
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ serde = { workspace = true, features = ["derive"] }
|
|||||||
serde_json = { workspace = true }
|
serde_json = { workspace = true }
|
||||||
tauri = { workspace = true }
|
tauri = { workspace = true }
|
||||||
tauri-plugin-dialog = { workspace = true }
|
tauri-plugin-dialog = { workspace = true }
|
||||||
tauri-plugin-updater = "2.10.1"
|
tauri-plugin-updater = "2.14.1"
|
||||||
thiserror = { workspace = true }
|
thiserror = { workspace = true }
|
||||||
tokio = { workspace = true, features = ["sync", "time", "macros"] }
|
tokio = { workspace = true, features = ["sync", "time", "macros"] }
|
||||||
ts-rs = { workspace = true }
|
ts-rs = { workspace = true }
|
||||||
@@ -330,11 +330,13 @@ async fn start_integrated_update<R: Runtime>(
|
|||||||
let ack_wait = Duration::from_secs(3);
|
let ack_wait = Duration::from_secs(3);
|
||||||
let reply_id = generate_reply_id();
|
let reply_id = generate_reply_id();
|
||||||
|
|
||||||
// 1) Start listening BEFORE emitting to avoid missing a fast reply
|
// 1) Start listening BEFORE emitting to avoid missing a fast reply. On the app, not the
|
||||||
|
// window: Tauri drops a window's listeners when it closes, and the prompt may still be
|
||||||
|
// answered from another window showing it again (the frontend replies to every window).
|
||||||
let (tx, mut rx) = tokio::sync::mpsc::unbounded_channel::<UpdateResponse>();
|
let (tx, mut rx) = tokio::sync::mpsc::unbounded_channel::<UpdateResponse>();
|
||||||
let w_for_listener = window.clone();
|
let app_handle = window.app_handle().clone();
|
||||||
|
|
||||||
let event_id = w_for_listener.listen(reply_id.clone(), move |ev| {
|
let event_id = app_handle.listen(reply_id.clone(), move |ev| {
|
||||||
match serde_json::from_str::<UpdateResponse>(ev.payload()) {
|
match serde_json::from_str::<UpdateResponse>(ev.payload()) {
|
||||||
Ok(UpdateResponse::Ack) => {
|
Ok(UpdateResponse::Ack) => {
|
||||||
let _ = tx.send(UpdateResponse::Ack);
|
let _ = tx.send(UpdateResponse::Ack);
|
||||||
@@ -349,16 +351,16 @@ async fn start_integrated_update<R: Runtime>(
|
|||||||
});
|
});
|
||||||
|
|
||||||
// Make sure we always unlisten
|
// Make sure we always unlisten
|
||||||
struct Unlisten<'a, R: Runtime> {
|
struct Unlisten<R: Runtime> {
|
||||||
win: &'a WebviewWindow<R>,
|
app: tauri::AppHandle<R>,
|
||||||
id: tauri::EventId,
|
id: tauri::EventId,
|
||||||
}
|
}
|
||||||
impl<'a, R: Runtime> Drop for Unlisten<'a, R> {
|
impl<R: Runtime> Drop for Unlisten<R> {
|
||||||
fn drop(&mut self) {
|
fn drop(&mut self) {
|
||||||
self.win.unlisten(self.id);
|
self.app.unlisten(self.id);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
let _guard = Unlisten { win: window, id: event_id };
|
let _guard = Unlisten { app: app_handle, id: event_id };
|
||||||
|
|
||||||
// 2) Emit the event now that listener is in place
|
// 2) Emit the event now that listener is in place
|
||||||
let info = UpdateInfo {
|
let info = UpdateInfo {
|
||||||
|
|||||||
@@ -33,5 +33,5 @@ r2d2_sqlite = { version = "0.32" }
|
|||||||
# nanoid pulls getrandom, which needs to be told how to reach the browser's
|
# nanoid pulls getrandom, which needs to be told how to reach the browser's
|
||||||
# CSPRNG on wasm32-unknown-unknown. Native targets are unaffected.
|
# CSPRNG on wasm32-unknown-unknown. Native targets are unaffected.
|
||||||
[target.'cfg(target_arch = "wasm32")'.dependencies]
|
[target.'cfg(target_arch = "wasm32")'.dependencies]
|
||||||
getrandom = { version = "0.4.3", features = ["wasm_js"] }
|
getrandom = { version = "0.3.4", features = ["wasm_js"] }
|
||||||
uuid = { version = "1", features = ["js"] }
|
uuid = { version = "1", features = ["js"] }
|
||||||
@@ -3,7 +3,7 @@
|
|||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"private": true,
|
"private": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"jsonpath-plus": "^11.2.2"
|
"jsonpath-plus": "^11.3.0"
|
||||||
},
|
},
|
||||||
"main": "index.ts",
|
"main": "index.ts",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
Generated
+935
-1148
File diff suppressed because it is too large.
Load diff
+10
-10
@@ -126,22 +126,22 @@
|
|||||||
"@codemirror/legacy-modes": "^6.5.5"
|
"@codemirror/legacy-modes": "^6.5.5"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@rolldown/plugin-babel": "^0.3.0",
|
"@rolldown/plugin-babel": "^0.3.1",
|
||||||
"@tailwindcss/postcss": "^4.3.2",
|
"@tailwindcss/postcss": "^4.3.5",
|
||||||
"@tauri-apps/cli": "npm:@tauri-apps/cli-cef@3.0.0-alpha.6",
|
"@tauri-apps/cli": "^2.12.6",
|
||||||
"@types/babel__core": "^7.20.5",
|
"@types/babel__core": "^7.20.5",
|
||||||
"@vitejs/plugin-react": "^6.1.2",
|
"@vitejs/plugin-react": "^6.3.0",
|
||||||
"@yaakapp/cli": "2026.9.0",
|
"@yaakapp/cli": "2026.9.1",
|
||||||
"babel-plugin-react-compiler": "^1.0.0",
|
"babel-plugin-react-compiler": "^1.0.0",
|
||||||
"dotenv-cli": "^11.1.0",
|
"dotenv-cli": "^11.1.0",
|
||||||
"nodejs-file-downloader": "^4.13.0",
|
"nodejs-file-downloader": "^4.13.0",
|
||||||
"npm-run-all": "^4.1.5",
|
"npm-run-all": "^4.1.5",
|
||||||
"postcss": "^8.5.32",
|
"postcss": "^8.5.33",
|
||||||
"tailwindcss": "^4.3.2",
|
"tailwindcss": "^4.3.2",
|
||||||
"tar": "^7.5.22",
|
"tar": "^7.5.23",
|
||||||
"typescript": "^5.8.3",
|
"typescript": "^5.8.3",
|
||||||
"vite": "npm:@voidzero-dev/vite-plus-core@^1.4.0",
|
"vite": "npm:@voidzero-dev/vite-plus-core@^1.6.0",
|
||||||
"vite-plus": "^1.4.0",
|
"vite-plus": "^1.6.0",
|
||||||
"vitest": "^4.1.12",
|
"vitest": "^4.1.12",
|
||||||
"yauzl": "^3.4.0"
|
"yauzl": "^3.4.0"
|
||||||
},
|
},
|
||||||
@@ -149,7 +149,7 @@
|
|||||||
"@vitest/mocker": "^4.1.12",
|
"@vitest/mocker": "^4.1.12",
|
||||||
"js-yaml": "^4.3.1",
|
"js-yaml": "^4.3.1",
|
||||||
"underscore": "^1.13.8",
|
"underscore": "^1.13.8",
|
||||||
"vite": "npm:@voidzero-dev/vite-plus-core@^1.4.0"
|
"vite": "npm:@voidzero-dev/vite-plus-core@^1.6.0"
|
||||||
},
|
},
|
||||||
"packageManager": "npm@11.11.1"
|
"packageManager": "npm@11.11.1"
|
||||||
}
|
}
|
||||||
@@ -13,11 +13,11 @@
|
|||||||
"@yaakapp-internal/rpc-schema": "^1.0.0",
|
"@yaakapp-internal/rpc-schema": "^1.0.0",
|
||||||
"@yaakapp-internal/web": "^1.0.0",
|
"@yaakapp-internal/web": "^1.0.0",
|
||||||
"@yaakapp-internal/wasm": "^1.0.0",
|
"@yaakapp-internal/wasm": "^1.0.0",
|
||||||
"@tauri-apps/api": "^2.12.4",
|
"@tauri-apps/api": "^2.12.5",
|
||||||
"@tauri-apps/plugin-clipboard-manager": "^2.5.0",
|
"@tauri-apps/plugin-clipboard-manager": "^2.5.0",
|
||||||
"@tauri-apps/plugin-dialog": "^2.8.4",
|
"@tauri-apps/plugin-dialog": "^2.8.4",
|
||||||
"@tauri-apps/plugin-fs": "^2.7.1",
|
"@tauri-apps/plugin-fs": "^2.7.1",
|
||||||
"@tauri-apps/plugin-opener": "^2.7.2",
|
"@tauri-apps/plugin-opener": "^2.7.3",
|
||||||
"@tauri-apps/plugin-os": "^2.4.0"
|
"@tauri-apps/plugin-os": "^2.4.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -6,7 +6,7 @@
|
|||||||
"build:main": "esbuild src/index.ts --bundle --platform=node --outfile=../../crates-tauri/yaak-app-client/vendored/plugin-runtime/index.cjs"
|
"build:main": "esbuild src/index.ts --bundle --platform=node --outfile=../../crates-tauri/yaak-app-client/vendored/plugin-runtime/index.cjs"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"ws": "^8.22.0",
|
"ws": "^8.23.0",
|
||||||
"yauzl": "^3.4.0"
|
"yauzl": "^3.4.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
"main": "src/index.ts",
|
"main": "src/index.ts",
|
||||||
"types": "src/index.ts",
|
"types": "src/index.ts",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@tauri-apps/api": "^2.12.4",
|
"@tauri-apps/api": "^2.12.5",
|
||||||
"@yaakapp-internal/plugins": "^1.0.0",
|
"@yaakapp-internal/plugins": "^1.0.0",
|
||||||
"parse-color": "^1.0.0"
|
"parse-color": "^1.0.0"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -16,9 +16,9 @@
|
|||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@hono/mcp": "^0.3.5",
|
"@hono/mcp": "^0.3.5",
|
||||||
"@hono/node-server": "^2.1.6",
|
"@hono/node-server": "^2.1.8",
|
||||||
"@modelcontextprotocol/sdk": "^1.32.2",
|
"@modelcontextprotocol/sdk": "^1.32.2",
|
||||||
"hono": "^4.13.16",
|
"hono": "^4.13.18",
|
||||||
"zod": "^4.6.7"
|
"zod": "^4.6.7"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
|||||||
@@ -15,6 +15,6 @@
|
|||||||
"test": "vp test --run tests"
|
"test": "vp test --run tests"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"httpntlm": "^1.8.13"
|
"httpntlm": "^1.8.14"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -12,7 +12,7 @@
|
|||||||
"test": "vp test --run tests"
|
"test": "vp test --run tests"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"jsonpath-plus": "^11.2.2"
|
"jsonpath-plus": "^11.3.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/jsonpath": "^0.2.4"
|
"@types/jsonpath": "^0.2.4"
|
||||||
|
|||||||
Reference in new issue
Block a user