Pake-cli adds the parameter to select the packaging format.

This commit is contained in:
Tlntin
2023-03-18 11:28:16 +08:00
parent 3edfa892d1
commit 214178da7a
2 changed files with 54 additions and 79 deletions

View File

@@ -1,54 +1,31 @@
{ {
"package": { "package": {
"productName": "baidu", "productName": "WeRead",
"version": "1.0.0" "version": "1.0.0"
}, },
"tauri": { "tauri": {
"windows": [ "windows": [
{ {
"url": "https://www.baidu.com", "url": "https://weread.qq.com/",
"transparent": false, "transparent": true,
"fullscreen": false, "fullscreen": false,
"width": 1200, "width": 1200,
"height": 780, "height": 780,
"resizable": true "resizable": true
}
],
"security": {
"csp": null
},
"updater": {
"active": false
},
"bundle": {
"icon": [
"/home/tlntin/data/code/rust_study/pake-tw93/Pake/src-tauri/png/icon_512.png"
],
"identifier": "pake-f9751d",
"active": true,
"category": "DeveloperTool",
"copyright": "",
"deb": {
"depends": [
"libwebkit2gtk-4.0-dev",
"build-essential",
"curl",
"wget",
"libssl-dev",
"libgtk-3-dev",
"libayatana-appindicator3-dev",
"librsvg2-dev",
"gnome-video-effects",
"gnome-video-effects-extra"
]
},
"externalBin": [],
"longDescription": "",
"resources": [],
"shortDescription": "",
"targets": [
"deb"
]
} }
],
"security": {
"csp": null
},
"updater": {
"active": false
}
},
"build": {
"devPath": "../dist",
"distDir": "../dist",
"beforeBuildCommand": "",
"beforeDevCommand": ""
} }
} }

View File

@@ -1,34 +1,32 @@
{ {
"tauri": { "tauri": {
"bundle": { "bundle": {
"icon": [ "icon": ["png/weread_512.png"],
"/home/tlntin/data/code/rust_study/pake-tw93/Pake/src-tauri/png/icon_512.png" "identifier": "com.tw93.weread",
], "active": true,
"identifier": "pake-f9751d", "category": "DeveloperTool",
"active": true, "copyright": "",
"category": "DeveloperTool", "deb": {
"copyright": "", "depends": [
"deb": { "libwebkit2gtk-4.0-dev",
"depends": [ "build-essential",
"libwebkit2gtk-4.0-dev", "curl",
"build-essential", "wget",
"curl", "libssl-dev",
"wget", "libgtk-3-dev",
"libssl-dev", "libayatana-appindicator3-dev",
"libgtk-3-dev", "librsvg2-dev",
"libayatana-appindicator3-dev", "gnome-video-effects",
"librsvg2-dev", "gnome-video-effects-extra"
"gnome-video-effects", ],
"gnome-video-effects-extra" "files": {"/usr/share/applications/com-tw93-weread.desktop": "assets/com-tw93-weread.desktop"}
] },
}, "externalBin": [],
"externalBin": [], "longDescription": "",
"longDescription": "", "resources": [],
"resources": [], "shortDescription": "",
"shortDescription": "", "targets": ["deb", "appimage"]
"targets": [ }
"deb"
]
}
} }
} }