Help needed: Building, packaging with Squirrel.Windows and deploying with GitHub Releases

Tim's Avatar


30 Jul, 2015 08:16 PM

Hi all,

I looked around at the forums, but I could not find a solution to my (admittedly very specific) Problem. I hope you can - and are willing to ;) - help me. If I am wrong with some assumptions or wording, please correct me.
I have a GitHub Project (a WPF application) that I want to automatically deploy whenever I create a release (=tag) in GitHub. Since it should use Squirrel.Windows for setup and automatic updates, there are some custom steps involved. My perfect workflow would look as follows:
1. I assume that the current state is ready for a (pre-)release. I create a GitHub Release description that also indicates if this is a prerelease or real release.
2. AppVeyor builds my solution, the result is a single .exe. The version should be the one from the release description (is this even possible?).
3. The version tag inside the .nuspec file is adapted to the current build version.
4. The .exe is packaged using NuGet and the adapted .nuspec file.
5. From the packages\\Tools folder "Squirrel.exe --releasify path/to/packaged/*.nupkg" is run.
6. Attach the resulting files from the Releases directory as artifacts to the GitHub release.

Sorry for the long explanation, I know it is very specific.
Is this achievable and if yes, can you guide me through it?

  1. Support Staff 1 Posted by Feodor Fitsner on 31 Jul, 2015 07:22 PM

    Feodor Fitsner's Avatar

    Hi Tim,

    I would say your workflow is highly possible though with some additional coding/scripting involved.

    Deploying on tags is possible. Taking version information from GitHub release is also possible using GitHub REST API.

    Attaching files to GitHub release - it's just all artifacts that you push during the build.

    Start playing with it and implementing step-by-step and feel free to ask any specific technical questions.

  2. Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 01:58 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac