fix: symlink issue bundling for linux #5781#6391
Conversation
|
a bit weird that this seems to be required since the AppDir is supposed to be cleaned out before that 🤔 |
|
Hmm, that definitely doesn't happen. line 19 is the first time the directory is mentioned, and all it does is create it if it doesn't exist already it might need |
|
I was talking about the rust code that runs before the bash script is invoked: https://github.com/tauri-apps/tauri/blob/dev/tooling/bundler/src/bundle/linux/appimage.rs#L38 |
|
That's pretty weird, if that failed, it should error and fail then and there to my understanding. With even just this change for me though, it manages to build all files for me, all the way to the |
|
clone vs To be clear, i'm fine with merging this PR but i'm irritated that it's needed in the first place (something we probably should look into as i'd imagine that the not deleted folder could cause issues in other places too) |
|
Oh btw, we'd need a change file similar to https://github.com/tauri-apps/tauri/blob/dev/.changes/bundler-msi-mini-version.md |
|
That work? |
|
yep, works for me thanks |
lucasfernog
left a comment
There was a problem hiding this comment.
I think the fix doesn't make much sense and the problem might be somewhere else, but I'll take it if it works.
What kind of change does this PR introduce?
Does this PR introduce a breaking change?
Checklist
fix: remove a typo, closes #___, #___)Other information
Frankly, this fix is more from @ca0v who suggested it in the issue thread #5781, rather than me just putting it in.
I have test run this on a single project with success, but I haven't tested beyond that.
About the issue:
The bundling script fails if it has run once before, as the links it creates already exist, and it does not like that. The added
-foverwrites the existing links with a new one, which should be the desired behavior.