From 2f70d8da2bc079400bb49e6793f755306049aab2 Mon Sep 17 00:00:00 2001 From: passivedragon Date: Fri, 17 Mar 2023 19:03:40 +0100 Subject: [PATCH] fix: symlink issue bundling for linux #5781 (#6391) * bundler for linux: fix error on pre-existing links * fix: symlink issue bundling for linux #5781 --- .changes/fix-5781.md | 5 +++++ tooling/bundler/src/bundle/linux/templates/appimage | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 .changes/fix-5781.md diff --git a/.changes/fix-5781.md b/.changes/fix-5781.md new file mode 100644 index 000000000..6448c8660 --- /dev/null +++ b/.changes/fix-5781.md @@ -0,0 +1,5 @@ +--- +'tauri-bundler': 'patch' +--- + +Fixed error during bundling process for the appimage target on subsequent bundling attempts. diff --git a/tooling/bundler/src/bundle/linux/templates/appimage b/tooling/bundler/src/bundle/linux/templates/appimage index b64145f52..fa35add60 100644 --- a/tooling/bundler/src/bundle/linux/templates/appimage +++ b/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 ..