🐛 Fixed the issue of package file transfer under Linux

This commit is contained in:
Tw93
2025-08-21 20:31:55 +08:00
parent 65cf0d272b
commit e2bc7859e2
2 changed files with 3 additions and 6 deletions

View File

@@ -167,9 +167,9 @@ StartupNotify=true
await fsExtra.writeFile(srcDesktopFilePath, desktopContent);
// Set up desktop file in bundle configuration
// Use relative path from .pake directory to assets
// Use absolute path from src-tauri directory to assets
tauriConf.bundle.linux.deb.files = {
[`/usr/share/applications/${desktopFileName}`]: `../assets/${desktopFileName}`,
[`/usr/share/applications/${desktopFileName}`]: `assets/${desktopFileName}`,
};
const validTargets = ['deb', 'appimage', 'rpm'];

View File

@@ -5,10 +5,7 @@
"active": true,
"linux": {
"deb": {
"depends": ["curl", "wget"],
"files": {
"/usr/share/applications/com-pake-weekly.desktop": "assets/com-pake-weekly.desktop"
}
"depends": ["curl", "wget"]
}
},
"targets": ["deb", "appimage"]