Переглянути джерело

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

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

* fix: symlink issue bundling for linux #5781
passivedragon 2 роки тому
батько
коміт
2f70d8da2b

+ 5 - 0
.changes/fix-5781.md

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

+ 2 - 2
tooling/bundler/src/bundle/linux/templates/appimage

@@ -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 ..