A Cake Addin for Squirrel.Windows.
Supports all the current command line options provided by Squirrel.Windows
Usage: Squirrel.exe command [OPTS]
Manages Squirrel packages
Commands
--releasify=VALUE Update or generate a releases directory with a
given NuGet package
Options:
-h, -?, --help Display Help and exit
-r, --releaseDir=VALUE Path to a release directory to use with releasify
-p, --packagesDir=VALUE Path to the NuGet Packages directory for C# apps
--bootstrapperExe=VALUE
Path to the Setup.exe to use as a template
-g, --loadingGif=VALUE Path to an animated GIF to be displayed during
installation
-i, --icon=VALUE Path to an ICO file that will be used for icon
shortcuts
--setupIcon=VALUE Path to an ICO file that will be used for the
Setup executable's icon
-n, --signWithParams=VALUE Sign the installer via SignTool.exe with the
parameters given
-s, --silent Silent install
-l, --shortcut-locations=VALUE
Comma-separated string of shortcut locations, e.g.
'Desktop,StartMenu'
--no-msi Don't generate an MSI package
To use the addin just add it to Cake call the aliases and configure any settings you want.
#tool "Squirrel.Windows"
#addin Cake.Squirrel
...
// How to package with no settings
Task("PackageNoSettings")
.Does(() => {
Squirrel(GetFile("Package.nupkg"));
});
// How to package with the settings
Task("PackageWithSettings")
.Does(() => {
var settings = new SquirrelSettings();
settings.NoMsi = true;
settings.Silent = true;
Squirrel(GetFile("Package.nupkg", settings));
});
Thats it.
Hope you enjoy using.