halloy icon indicating copy to clipboard operation
halloy copied to clipboard

Add support for Windows binary meta information and fix WiX installer…

Open KaiKorla opened this issue 1 year ago • 1 comments

This PR add support for getting the Windows binary meta information in line with the release version and some other information. Also it updates the WiX installer description to have to correct release version also.

To achieve this i added two build dependencies:

  • windows_exe_info = "0.4"
  • cargo-edit = "0.12"

Tell me what you think.

image

KaiKorla avatar May 07 '24 10:05 KaiKorla

Note @KaiKorla that i just modified the Wix file slightly after #363 was merged.

casperstorm avatar May 16 '24 12:05 casperstorm

@KaiKorla still working on this?

casperstorm avatar Jun 21 '24 08:06 casperstorm

Yes.

KaiKorla avatar Jun 23 '24 16:06 KaiKorla

@KaiKorla @casperstorm I noticed we were pulling down windows deps / using them in build.rs for non windows targets. Can you both confirm that 791b6ce doesn't break the windows build?

tarkah avatar Jul 23 '24 16:07 tarkah

@KaiKorla I've rebased all your commits onto main. Please use git rebase instead of git merge so we can keep a clean git history, thanks!

tarkah avatar Jul 23 '24 16:07 tarkah

@KaiKorla @casperstorm I noticed we were pulling down windows deps / using them in build.rs for non windows targets. Can you both confirm that 791b6ce doesn't break the windows build?

Working locally. Binary and installer looking good in the Windows sandbox. IMO everything is working as expected. We should test it with the release pipeline anyway. tyvm!

KaiKorla avatar Jul 23 '24 17:07 KaiKorla

As discussed on IRC, final two missings:

  • Install dir should be C:\Program Files\Halloy instead of C:\Program Files\Squidowl\Halloy
  • When opening a url scheme the Halloy icon shows description rather than just title.
  • Install dir is fixed
  • Regarding the url sheme and the description: It seems that Windows is showing the "File Description" metadata and then cache it somehow (i try to figure it out in the microsoft documentation). The "File Description" is currently set by "windows_exe_info::versioninfo::link_cargo_env();" in the build.rs and takes the value from the description field in the [package] section in the Cargo.toml file. IMHO we shoudln't change this.

/edit The URL association has change also with Windows 10. I'll commit & push an update for this later. Then it should work for all URL schemes (halloy://, irc://, ircs://).

KaiKorla avatar Jul 24 '24 14:07 KaiKorla