-
Notifications
You must be signed in to change notification settings - Fork 587
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
Release/next wixhelper #2002
Release/next wixhelper #2002
Conversation
…lease/next-wixhelper
0fca153
to
3f819a6
Compare
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.
Thanks for taking care of this! In general (layout and new project) it looks good but some more changes are required according to the fake 5 guidelines.
- In particular we try to limit the public API surface for users such that it's more clear how to use the API.
- We get rid of obsolete stuff
- functions should be lower-case
src/app/Fake.Windows.Wix/Wix.fs
Outdated
@@ -0,0 +1,2008 @@ | |||
/// Contains tasks to create msi installers using the [WiX toolset](http://wixtoolset.org/) | |||
|
|||
module Fake.Windows.Wix |
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.
please add [<RequireQualifiedAccess>]
if reasonable
src/app/Fake.Windows.Wix/Wix.fs
Outdated
let mutable internal fileCount = 0 | ||
let mutable internal dirs = Dictionary() | ||
|
||
let getDirName dir = |
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.
internal?
src/app/Fake.Windows.Wix/Wix.fs
Outdated
|
||
let mutable internal compRefs = Dictionary() | ||
|
||
let getCompRefName compRef = |
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.
internal?
src/app/Fake.Windows.Wix/Wix.fs
Outdated
|
||
let mutable internal comps = Dictionary() | ||
|
||
let getCompName comp = |
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.
internal?
src/app/Fake.Windows.Wix/Wix.fs
Outdated
} | ||
|
||
/// Use this for generating service dependencies | ||
let generateServiceDependency (setParams : ServiceDependency -> ServiceDependency) = |
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.
internal?
src/app/Fake.Windows.Wix/Wix.fs
Outdated
} | ||
|
||
/// Use this for generating service configs | ||
let generateServiceConfig (setParams : ServiceConfig -> ServiceConfig) = |
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.
internal?
src/app/Fake.Windows.Wix/Wix.fs
Outdated
sprintf "<ServiceConfig xmlns=\"http://schemas.microsoft.com/wix/UtilExtension\" %s/>" | ||
(Seq.fold(fun acc (key, value) -> acc + sprintf " %s=\"%s\"" key value) "" (w.createAttributeList())) | ||
|
||
let ServiceConfigDefaults = |
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.
internal?
src/app/Fake.Windows.Wix/Wix.fs
Outdated
(Seq.fold(fun acc (key, value) -> acc + sprintf " %s=\"%s\"" key value) "" (w.createAttributeList())) | ||
|
||
/// Defaults for service control element | ||
let ServiceControlDefaults = |
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.
internal?
src/app/Fake.Windows.Wix/Wix.fs
Outdated
} | ||
|
||
/// Use this for generating service controls | ||
let generateServiceControl (setParams : ServiceControl -> ServiceControl) = |
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.
internal?
src/app/Fake.Windows.Wix/Wix.fs
Outdated
match w.AllowDowngrades with | ||
| Yes -> "" | ||
| No -> " DowngradeErrorMessage=\"" + w.DowngradeErrorMessage + "\"" | ||
"<MajorUpgrade Schedule=\"" + w.Schedule.ToString() + |
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.
remove this function?
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.
I don't quite understand, which function I should remove here. Can you please clarify?
Probably not too important, but shouldn't this go under Fake.Installer? There is also an old Squirrel-Helper and it might make it harder to find all of these. |
mark some functions as internal
I tend to agree with @kblohm especially since we have the The second thing is that there are still a lot "helper" functions which are public and I don't think they should be. However, I never used this module myself so it might be that they are indeed useful for using this module. In particular the It is easier for us to make things public later on than the other way around. @cthangn can you please go over the functions again with that mindset (sorry I didn't mark every place in the first review because there were too many). Sorry for the late reply. |
Mark more things internal (revert some)
Thank you for the clarification. I have moved About About those |
Me neither, but wheen in doubt we should make internal/private and wait for people to complain then we can defer designing a proper API for such functions to a later point... Because for all public functions we need to make sure they align with the new API guideline. |
Ok sorry for the back and forth. Good job looks really neat now! |
Add Wix to FAKE 5