OldSquirrelForWindows icon indicating copy to clipboard operation
OldSquirrelForWindows copied to clipboard

Setting output/Releases folder

Open stefanolson opened this issue 12 years ago • 2 comments

In my solution I have two projects that use Squirrel. Unfortunately, this means that whenever you call New-Release for one project it creates a setup.exe that kills the previous one.

So there are a couple of issues here:

  1. I can't seem to specify a releases directory, as is suggested here: https://github.com/Squirrel/Squirrel.Windows/issues/106 if I do that I get this output from powershell: PM> new-release -ReleasesDirectory c:\temp New-Release : A parameter cannot be found that matches parameter name 'ReleasesDirectory'.

How do I specify a different directory?

2 If a change from one project to another and call New-Release, the resulting setup just crashes. Basically it appears that the process that builds the setup doesn't completely overwrite the previous setup, if for example I change the title and then build a new release then the setup hasn't been updated with the new title. You basically have to delete all setup files to get it to build properly.

Stefan

stefanolson avatar Nov 28 '13 22:11 stefanolson

@stefanolson Try this method: https://github.com/peters/myget/blob/master/myget.include.ps1#L1416

peters avatar Nov 29 '13 09:11 peters

Thanks @peters. I looked through the file, but I'm not sure how to use it within the package manager console.

I decided the best thing to do this case is to create a second solution, so that it will correctly create the second project's setup un different folder.

I think future releases of Squirrel should place the releases in the project folder rather than the solution folder and this would solve the problem (do I need to submit a new feature request for that?)

stefanolson avatar Dec 01 '13 01:12 stefanolson