From 214178da7a8ecb2dde41af59a556831ebc9b263e Mon Sep 17 00:00:00 2001 From: Tlntin Date: Sat, 18 Mar 2023 11:28:16 +0800 Subject: [PATCH] Pake-cli adds the parameter to select the packaging format. --- src-tauri/tauri.conf.json | 73 +++++++++++---------------------- src-tauri/tauri.linux.conf.json | 60 +++++++++++++-------------- 2 files changed, 54 insertions(+), 79 deletions(-) diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json index 48ed098..257bd74 100644 --- a/src-tauri/tauri.conf.json +++ b/src-tauri/tauri.conf.json @@ -1,54 +1,31 @@ { "package": { - "productName": "baidu", - "version": "1.0.0" + "productName": "WeRead", + "version": "1.0.0" }, "tauri": { - "windows": [ - { - "url": "https://www.baidu.com", - "transparent": false, - "fullscreen": false, - "width": 1200, - "height": 780, - "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" - ] + "windows": [ + { + "url": "https://weread.qq.com/", + "transparent": true, + "fullscreen": false, + "width": 1200, + "height": 780, + "resizable": true } + ], + "security": { + "csp": null + }, + "updater": { + "active": false + } + }, + "build": { + "devPath": "../dist", + "distDir": "../dist", + "beforeBuildCommand": "", + "beforeDevCommand": "" } -} \ No newline at end of file + } + \ No newline at end of file diff --git a/src-tauri/tauri.linux.conf.json b/src-tauri/tauri.linux.conf.json index 205bacf..8934409 100644 --- a/src-tauri/tauri.linux.conf.json +++ b/src-tauri/tauri.linux.conf.json @@ -1,34 +1,32 @@ { "tauri": { - "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" - ] - } + "bundle": { + "icon": ["png/weread_512.png"], + "identifier": "com.tw93.weread", + "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" + ], + "files": {"/usr/share/applications/com-tw93-weread.desktop": "assets/com-tw93-weread.desktop"} + }, + "externalBin": [], + "longDescription": "", + "resources": [], + "shortDescription": "", + "targets": ["deb", "appimage"] + } } -} \ No newline at end of file + } + \ No newline at end of file