Skip to content

Commit 2f70d8d

Browse files
fix: symlink issue bundling for linux #5781 (#6391)
* bundler for linux: fix error on pre-existing links * fix: symlink issue bundling for linux #5781
1 parent c46c09f commit 2f70d8d

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.changes/fix-5781.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'tauri-bundler': 'patch'
3+
---
4+
5+
Fixed error during bundling process for the appimage target on subsequent bundling attempts.

tooling/bundler/src/bundle/linux/templates/appimage

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,9 @@ chmod +x "{{tauri_tools_path}}/AppRun-${ARCH}"
5555
cp "{{tauri_tools_path}}/AppRun-${ARCH}" AppRun
5656

5757
cp "{{icon_path}}" .DirIcon
58-
ln -s "{{icon_path}}" "{{app_name}}.png"
58+
ln -sf "{{icon_path}}" "{{app_name}}.png"
5959

60-
ln -s "usr/share/applications/{{app_name}}.desktop" "{{app_name}}.desktop"
60+
ln -sf "usr/share/applications/{{app_name}}.desktop" "{{app_name}}.desktop"
6161

6262
cd ..
6363

0 commit comments

Comments
 (0)