fix up some bug for linux

This commit is contained in:
Tlntin
2023-04-08 14:08:36 +08:00
parent 902814a78c
commit 415817927d
3 changed files with 4 additions and 6 deletions

6
script/build.sh vendored
View File

@@ -133,10 +133,10 @@ do
new_desktop="${PROJECT_FOLDER}/src-tauri/assets/${package_prefix}-${package_name}.desktop" new_desktop="${PROJECT_FOLDER}/src-tauri/assets/${package_prefix}-${package_name}.desktop"
new_desktop_map_path="/usr/share/applications/${package_prefix}-${package_name}.desktop" new_desktop_map_path="/usr/share/applications/${package_prefix}-${package_name}.desktop"
for file in `ls ${PROJECT_FOLDER}/src-tauri/assets/` for file in `ls ${PROJECT_FOLDER}/src-tauri/assets/*.desktop`
do do
mv "${PROJECT_FOLDER}/src-tauri/assets/${file}" "${new_desktop}" mv "${file}" "${new_desktop}"
echo mv "${PROJECT_FOLDER}/src-tauri/assets/${file}" "${new_desktop}" echo mv "${file}" "${new_desktop}"
done done
# clear desktop file with regex # clear desktop file with regex
$sd "\"files\": \{\"(.*)\"\}" "\"files\": \{\"\"\}" src-tauri/tauri.linux.conf.json $sd "\"files\": \{\"(.*)\"\}" "\"files\": \{\"\"\}" src-tauri/tauri.linux.conf.json

0
script/sd-linux-x86_64 vendored Normal file → Executable file
View File

View File

@@ -11,9 +11,7 @@
"curl", "curl",
"wget" "wget"
], ],
"files": { "files": {"/usr/share/applications/com-tw93-weread.desktop": "assets/com-tw93-weread.desktop"}
"/usr/share/applications/com-tw93-weread.desktop": "assets/com-tw93-weread.desktop"
}
}, },
"externalBin": [], "externalBin": [],
"longDescription": "", "longDescription": "",