Update-AppveyorBuild equivalent for macOS

chase.florell's Avatar

chase.florell

17 Nov, 2020 07:31 PM

I'm currently using a windows VM to build, and running a powershell command

```ps
Update-AppveyorBuild -Version "$(Get-Date -format yyyy.M).$env:appveyor_build_number"
```

I'd like to switch over to macos and I wonder if there's an equivalent `sh` command that I can run?

  1. Support Staff 1 Posted by Feodor Fitsner on 17 Nov, 2020 10:11 PM

    Feodor Fitsner's Avatar

    You can use the same PowerShell code in Linux builds.

    Alternatively, you can use appveyor CLI as shown here: https://www.appveyor.com/docs/build-worker-api/#command-line-6

  2. 2 Posted by chase.florell on 17 Nov, 2020 10:35 PM

    chase.florell's Avatar

    Thank you for that answer, Will the build number variable be the same (hoping to know without having to burn a build number to test).

    `appveyor_build_number`

    `appveyor UpdateBuild -Version "${$(date '+%Y.%m')}.${$appveyor_build_number}"`

  3. Support Staff 3 Posted by Feodor Fitsner on 17 Nov, 2020 10:37 PM

    Feodor Fitsner's Avatar

    Must be CAPS_LOCK on Linux as their names are case-sensitive.

  4. Feodor Fitsner closed this discussion on 18 Jan, 2021 09:03 PM.

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

Recent Discussions

18 Oct, 2021 12:38 PM
16 Oct, 2021 04:34 PM
15 Oct, 2021 08:29 PM
15 Oct, 2021 06:34 PM
13 Oct, 2021 03:47 PM

 

13 Oct, 2021 06:27 AM
13 Oct, 2021 05:54 AM
12 Oct, 2021 06:48 PM
12 Oct, 2021 06:47 PM
12 Oct, 2021 12:36 PM
11 Oct, 2021 10:05 AM