Migrate to Tauri V2

This commit is contained in:
kwaroran
2024-10-09 20:07:59 +09:00
parent 0e99d96088
commit 5a931d4ba0
23 changed files with 13225 additions and 1601 deletions

View File

@@ -2,108 +2,41 @@
"build": {
"beforeDevCommand": "pnpm dev",
"beforeBuildCommand": "pnpm build",
"devPath": "http://localhost:5174",
"distDir": "../dist",
"withGlobalTauri": false
"frontendDist": "../dist",
"devUrl": "http://localhost:5174"
},
"package": {
"productName": "RisuAI",
"version": "135.0.0"
"bundle": {
"active": true,
"icon": [
"icons/32x32.png",
"icons/128x128.png",
"icons/128x128@2x.png",
"icons/icon.icns",
"icons/icon.ico"
],
"resources": [
"src-python/*"
],
"targets": "all",
"createUpdaterArtifacts": "v1Compatible"
},
"tauri": {
"allowlist": {
"app": {
"all": true
},
"process": {
"relaunch": true
},
"protocol": {
"all": true,
"assetScope": ["asset","$APPDATA","$APPDATA/*","$APPDATA/**/*", "/data/**/*"]
},
"all": false,
"shell": {
"all": false,
"open": true
},
"fs":{
"all": true,
"scope": ["$APPDATA","$APPDATA/*","$APPDATA/**/*", "$DOWNLOAD/*", "/data/**/*", "$RESOURCE/*"]
},
"path":{
"all": true
},
"http": {
"all": true,
"request": true,
"scope": ["https://*/*", "https://*/**/*","http://*/*", "http://*/**/*"]
},
"window": {
"center": false,
"close": false,
"create": false,
"hide": false,
"maximize": true,
"minimize": false,
"print": false,
"requestUserAttention": false,
"setAlwaysOnTop": false,
"setCursorGrab": false,
"setCursorIcon": false,
"setCursorPosition": false,
"setCursorVisible": false,
"setDecorations": false,
"setFocus": false,
"setFullscreen": true,
"setIcon": false,
"setIgnoreCursorEvents": false,
"setMaxSize": false,
"setMinSize": false,
"setPosition": false,
"setResizable": false,
"setSize": false,
"setSkipTaskbar": false,
"setTitle": false,
"show": false,
"startDragging": false,
"unmaximize": false,
"unminimize": false
},
"dialog": {
"all": true
},
"os": {
"all": true
}
},
"bundle": {
"active": true,
"icon": [
"icons/32x32.png",
"icons/128x128.png",
"icons/128x128@2x.png",
"icons/icon.icns",
"icons/icon.ico"
],
"identifier": "co.aiclient.risu",
"targets": "all",
"resources": [
"src-python/*"
]
},
"security": {
"csp": null
},
"productName": "RisuAI",
"mainBinaryName": "RisuAI",
"version": "135.0.0",
"identifier": "co.aiclient.risu",
"plugins": {
"updater": {
"active": true,
"endpoints": ["https://github.com/kwaroran/RisuAI/releases/latest/download/latest.json"],
"dialog": false,
"pubkey": "dW50cnVzdGVkIGNvbW1lbnQ6IG1pbmlzaWduIHB1YmxpYyBrZXk6IDU2ODMzOTIxMDMxOTY1MUYKUldRZlpSa0RJVG1EVmx5Vm1WYlhFM29HMEJrUTRrYmg5dDQ0RFpvdUphNDdxQmVlWXJHVmV5TEYK",
"endpoints": [
"https://github.com/kwaroran/RisuAI/releases/latest/download/latest.json"
],
"windows": {
"installMode": "passive"
}
},
}
},
"app": {
"withGlobalTauri": false,
"windows": [
{
"fullscreen": false,
@@ -113,8 +46,21 @@
"height": 768,
"minWidth": 300,
"minHeight": 500,
"fileDropEnabled": false
"dragDropEnabled": false
}
]
],
"security": {
"assetProtocol": {
"scope": [
"asset",
"$APPDATA",
"$APPDATA/*",
"$APPDATA/**/*",
"/data/**/*"
],
"enable": true
},
"csp": null
}
}
}
}