Stairs/updateversion.ps1
Mark van Renswoude b39f3ba826 Added OTA firmware update
Added range customization (untested)
Added static mode easing (untested)
2017-04-16 13:40:34 +02:00

24 lines
478 B
PowerShell

$output = & GitVersion /output json /nofetch
if ($LASTEXITCODE -ne 0) {
Write-Verbose "$output"
throw "GitVersion failed with exit code: $LASTEXITCODE"
}
$version = $output | ConvertFrom-Json
@"
#ifndef __Version
#define __Version
static const char* FirmwareVersion = "{0}";
#endif
"@ -f $version.FullSemVer | Out-File -Encoding UTF8 .\src\version.h
@"
module.exports =
{{
Version: "{0}"
}};
"@ -f $version.FullSemVer | Out-File -Encoding UTF8 .\web\version.js