Using build number in script

Richard Hallgren's Avatar

Richard Hallgren

03 Jun, 2014 03:00 PM

I have a NSIS script that runs after my build to package an exe.

I guess I can kick off the script as a "after build" command but I also want to have the AppVeyor build number {build} as a input parameter to the script so I can set the file name of the exe to 1.1.{build} for example.

It should also be possible to kick of the NSIS script as part of the msbuild file that is run - would the {build} parameter be available there?

NSIS: http://nsis.sourceforge.net/Main_Page

  1. Support Staff 1 Posted by Feodor Fitsner on 03 Jun, 2014 04:38 PM

    Feodor Fitsner's Avatar

    Hi Richard,

    I think you can get build number from environment variables: http://www.appveyor.com/docs/environment-variables

  2. 2 Posted by Richard Hallgre... on 04 Jun, 2014 09:56 AM

    Richard Hallgren's Avatar

    Excellent. Worked perfectly! Thanks.

    Richrd

  3. Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 01:44 AM.

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

Keyboard shortcuts

Generic

? 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