Skip to content

Commit

Permalink
Fix build script.
Browse files Browse the repository at this point in the history
  • Loading branch information
DDoSolitary committed Aug 7, 2018
1 parent 8ba8518 commit a50ddca
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions appveyor.yml
Expand Up @@ -27,10 +27,9 @@ before_build:
build_script:
- ps: |
if ($Env:USE_MSYS -ne 'true') {
$fileVersion = $Env:VERSION
$fileVersionStr = $Env:VERSION.Substring(1)
$fileVersion = $fileVersionStr = $Env:VERSION.Substring(1)
if ($Env:APPVEYOR_REPO_TAG -ne 'true') {
$fileVersion = $fileVersion.Substring(1, $fileVersion.LastIndexOf('-') - 1).Replace('.', ',').Replace('-', ',')
$fileVersion = $fileVersion.Substring(0, $fileVersion.LastIndexOf('-') - 1).Replace('.', ',').Replace('-', ',')
}
msbuild /p:Configuration=$Env:CONFIGURATION /p:DefineVersion=LXRUNOFFLINE_VERSION=\`"$Env:VERSION\`" /p:DefineFileVersion=`"LXRUNOFFLINE_FILE_VERSION=$fileVersion`;LXRUNOFFLINE_FILE_VERSION_STR=\\\`"$fileVersionStr\\\`"`"
} else {
Expand Down

0 comments on commit a50ddca

Please sign in to comment.