-
Notifications
You must be signed in to change notification settings - Fork 443
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixed two bugs #32
Fixed two bugs #32
Conversation
Directory tree in .wix file was broken when having intermediate folders with just subfolders and no files. File ID collisions in .wix file, e.g. when two files are present: flup+1.a and flub-1.a. Appended file name hash to end of id.
@@ -113,7 +113,7 @@ trait GenericPackageSettings | |||
} yield ComponentFile(name, editable = (name startsWith "conf")) | |||
val corePackage = | |||
WindowsFeature( | |||
id=WixHelper.cleanStringForId(name+"_core"), | |||
id=WixHelper.cleanStringForId(name + "_core").takeRight(38), // Must be no longer |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Huh, I thought the cleanStringForId would takeRight in the past... In any case, great catch.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
:)
LGTM! If you have any more WiX fixes keep em coming ;). I still need to detangle the Feature/Shortcut stuff so you can safely define more than one shortcut and it will generate the correct XML. |
Yes, if I come across other issues I'll let you know! [info] Building target platforms: noarch-Arago-linux They suggest an error happened, but on the other hand "exit 0" does look ok and the output is good. Maybe you have a clue, what's going on there? And a second question: also in the log there is "[info] Building target platforms: noarch-Arago-linux". Arago is taken from the spec metadata "Vendor" field. Why did you put it into the --target parameter? |
Hey,
I was searching and reverse-engineering quite a while to find these two bugs is stumbled across when trying to bundle ja Java Runtime Environment with an app.
The directory tree in the .wix file was broken when having intermediate folders with just subfolders and no files. groupBy just didn't generate the missing link, so some folders got "orphaned". I think there might be a more elegant solution than my brute-force attack... but hey.
File ID collisions in .wix file, e.g. when two files are present: flup+1.a and flub-1.a. I appended a file name hash to the end of every ID, making it (a lot mor) unique.
Cheers!
Peter