Skip to content

fix(build): always invoke resource compiler on windows, fixes #8164#8168

Merged
amrbashir merged 3 commits intodevfrom
exe-resource-compiler
Nov 6, 2023
Merged

fix(build): always invoke resource compiler on windows, fixes #8164#8168
amrbashir merged 3 commits intodevfrom
exe-resource-compiler

Conversation

@FabianLars
Copy link
Copy Markdown
Member

@FabianLars FabianLars commented Nov 4, 2023

This fixes a simple v1 merge error that caused winres/embed-resource to only be compiled if package.version was set in tauri.conf.json.
While i was at it i also removed the duplicate if windows check.

We may want to remove the icon path check to (== check for it only when setting the icon) so that the resource compiler still runs even if no icon is provided - may as well wait for a usecase for that though 🤷
Edit: Changed the if location to only wrap the set_icon call to make that change a tiny bit easier.

fixes #8164

@FabianLars FabianLars requested a review from a team as a code owner November 4, 2023 18:20
@FabianLars
Copy link
Copy Markdown
Member Author

Also, the actually weird thing here is that the app fails to start because of the missing dialog manifest, so we may have messed something up elsewhere too that now this is always required even without using the dialog plugin.

@amrbashir amrbashir changed the title fix(build): Always invoke resource compiler on windows, fixes #8164 fix(build): always invoke resource compiler on windows, fixes #8164 Nov 6, 2023
@amrbashir amrbashir merged commit a547971 into dev Nov 6, 2023
@amrbashir amrbashir deleted the exe-resource-compiler branch November 6, 2023 19:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[bug] [alpha.17] [windows] completely broken if config.package.version is None

2 participants