mirror of
https://github.com/velopack/velopack.git
synced 2025-10-25 15:19:22 +00:00
1.2 KiB
1.2 KiB
Scenarios
At the end of the day, here's how a developer will use Squirrel:
- Add the Squirrel package to your application
- As part of the install for Squirrel, NuGet Package Build is enabled in the csproj file
- The user edits the generated
.nuspecto specify some details about their app - From the NuGet package console, run
New-Release- this builds the world, and you end up with a$SolutionDir/Releasesfolder that has both a Squirrel release package as well as aSetup.exe
How does this work:
- Call
$DTEto build the current project, including the NuGet packages - Look at all of the projects which have references to
Squirrel.Client - Look up the build output directory for those projects, run
CreateReleasePackage.exeon all of the .nupkg files - Using the generated NuGet package, fill in the
Template.wxsfile - Create a temporary directory for the contents of the Setup.exe, copy in the
Squirrel.WiXUi.dllas well as any DLL Project that referencesSquirrel.Client.dll - Run
CandleandLightto generate aSetup.exe, which contains Squirrel.WiXUi.dll and friends, any custom UI DLLs, and the latest fullnupkgfile.