-
I use the tauri.conf.json: {
"$schema": "../node_modules/@tauri-apps/cli/schema.json",
"build": {
"beforeBuildCommand": "yarn export",
"beforeDevCommand": "yarn export:dev",
"devPath": "http://localhost:3000",
"distDir": "../out",
"withGlobalTauri": true
},
"package": {
"productName": "ChatGPT Next Web",
"version": "2.9.3"
},
"tauri": {
"allowlist": {
"all": true,
"protocol": {
"asset": true,
"all": true,
"assetScope": ["*", "asset"]
},
"fs": {
"all": true,
"readFile": true,
"writeFile": false,
"readDir": false,
"copyFile": false,
"createDir": true,
"removeDir": true,
"removeFile": false,
"renameFile": false,
"exists": true,
"scope": ["$RESOURCE/**", "$APPCACHE/**", "$APPDATA/**"]
},
"path": {
"all": true
},
"shell": {
"all": false,
"execute": false,
"sidecar": true,
"open": true,
"scope": [
{
"name": "binaries/realesrgan-ncnn-vulkan",
"sidecar": true,
"args": [
"-i",
{
"validator": "\\S*"
},
"-o",
{
"validator": "\\S*"
},
"-s",
{
"validator": "\\S*"
},
"-n",
{
"validator": "\\S*"
},
"-f",
{
"validator": "\\S*"
},
"-m",
{
"validator": "models"
},
"-v"
]
},
{
"name": "binaries/ffmpeg",
"sidecar": true,
"args": [
{
"validator": "\\S+"
},
"-i",
{
"validator": "\\S+"
},
"-qscale:v",
{
"validator": "\\S*"
},
"-qmin",
{
"validator": "\\S*"
},
"-qmax",
{
"validator": "\\S*"
},
"-vsync",
{
"validator": "\\S*"
},
"-map",
{
"validator": "\\S*"
},
"-c:a",
"copy",
"-c:v",
"libx264",
"-r",
"23.98",
"-pix_fmt",
"yuv420p"
]
},
{
"name": "binaries/../binaries/ffmpeg",
"sidecar": true,
"args": [
{
"validator": "\\S*"
},
"-i",
{
"validator": "\\S+"
},
"-ss",
{
"validator": "\\S*"
},
"-frames:v",
{
"validator": "\\S*"
},
"-f",
{
"validator": "\\S*"
},
"-an",
"",
"-vf",
{
"validator": "\\S*"
},
"-y",
""
]
}
]
},
"dialog": {
"all": true,
"ask": true,
"confirm": true,
"message": true,
"open": true,
"save": true
},
"clipboard": {
"all": true,
"writeText": true,
"readText": true
},
"window": {
"all": false,
"close": true,
"hide": true,
"maximize": true,
"minimize": true,
"setIcon": true,
"setIgnoreCursorEvents": true,
"setResizable": true,
"show": true,
"startDragging": true,
"unmaximize": true,
"unminimize": true
}
},
"bundle": {
"active": true,
"category": "DeveloperTool",
"copyright": "2023, Zhang Yifei All Rights Reserved.",
"deb": {
"depends": []
},
"externalBin": [
"binaries/realesrgan-ncnn-vulkan",
"binaries/ffmpeg",
"binaries/../binaries/ffmpeg"
],
"icon": [
"icons/32x32.png",
"icons/128x128.png",
"icons/[email protected]",
"icons/icon.icns",
"icons/icon.ico"
],
"identifier": "com.yida.chatgpt.next.web",
"longDescription": "ChatGPT Next Web is a cross-platform ChatGPT client, including Web/Win/Linux/OSX/PWA.",
"macOS": {
"entitlements": null,
"exceptionDomain": "",
"frameworks": [],
"providerShortName": null,
"signingIdentity": null
},
"resources": ["models/*"],
"shortDescription": "ChatGPT Next Web App",
"targets": "all",
"windows": {
"certificateThumbprint": null,
"digestAlgorithm": "sha256",
"timestampUrl": ""
}
},
"security": {
"csp": "default-src 'self'; img-src 'self' asset: https://asset.localhost asset://localhost"
},
"updater": {
"active": true,
"endpoints": [
"https://github.com/Yidadaa/ChatGPT-Next-Web/releases/latest/download/latest.json"
],
"dialog": false,
"windows": {
"installMode": "passive"
},
"pubkey": "dW50cnVzdGVkIGNvbW1lbnQ6IG1pbmlzaWduIHB1YmxpYyBrZXk6IERFNDE4MENFM0Y1RTZBOTQKUldTVWFsNC96b0JCM3RqM2NmMnlFTmxIaStRaEJrTHNOU2VqRVlIV1hwVURoWUdVdEc1eDcxVEYK"
},
"windows": [
{
"fullscreen": false,
"height": 600,
"resizable": true,
"title": "ChatGPT Next Web",
"width": 960,
"hiddenTitle": true,
"titleBarStyle": "Overlay"
}
]
}
}
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Could you please open a feature request for this? imo this needs to be properly implemented on the Tauri side :) |
Beta Was this translation helpful? Give feedback.
-
Actually you can just config like this {
"name": "binaries/ffmpeg",
"sidecar": true,
"args": true
}
|
Beta Was this translation helpful? Give feedback.
Actually you can just config like this
"args": true
means any argument list is allowed. See doc