fix: symlink issue bundling for linux #5781 (#6391)

* bundler for linux: fix error on pre-existing links

* fix: symlink issue bundling for linux #5781
This commit is contained in:
passivedragon
2023-03-17 19:03:40 +01:00
committed by GitHub
parent c46c09f31d
commit 2f70d8da2b
2 changed files with 7 additions and 2 deletions

5
.changes/fix-5781.md Normal file
View File

@@ -0,0 +1,5 @@
---
'tauri-bundler': 'patch'
---
Fixed error during bundling process for the appimage target on subsequent bundling attempts.

View File

@@ -55,9 +55,9 @@ chmod +x "{{tauri_tools_path}}/AppRun-${ARCH}"
cp "{{tauri_tools_path}}/AppRun-${ARCH}" AppRun
cp "{{icon_path}}" .DirIcon
ln -s "{{icon_path}}" "{{app_name}}.png"
ln -sf "{{icon_path}}" "{{app_name}}.png"
ln -s "usr/share/applications/{{app_name}}.desktop" "{{app_name}}.desktop"
ln -sf "usr/share/applications/{{app_name}}.desktop" "{{app_name}}.desktop"
cd ..