Skip to content

Commit

Permalink
Fix build error: unexpected token in expression. Hopefully this fixes…
Browse files Browse the repository at this point in the history
… it.
  • Loading branch information
bchavez committed Oct 16, 2018
1 parent 34c976f commit 61618c0
Showing 1 changed file with 10 additions and 13 deletions.
23 changes: 10 additions & 13 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,20 +43,17 @@ build_script:
after_build:
- 7z a BuildArtifacts.zip install\*
- ps: >-
# Publish Build Artifacts
$gitHash = $env:APPVEYOR_REPO_COMMIT.Substring(0, 8);
$zipFile = "freelan-binary-$env:platform-$gitHash.zip"
Push-AppveyorArtifact "BuildArtifacts.zip" -FileName $zipFile
# Publish Installer artifact (but only in Release configuration)
If ($env:Configuration -Match "Release") {
scons -C packaging\windows --arch=%INSTALLER_BITS%
$gitHash = $env:APPVEYOR_REPO_COMMIT.Substring(0, 8);
$zipFile = "freelan-binary-$env:platform-$gitHash.zip";
Push-AppveyorArtifact "BuildArtifacts.zip" -FileName $zipFile;
If ($env:Configuration -Match "Release") {
scons -C packaging\windows --arch=%INSTALLER_BITS%
$setupFile = "freelan-setup-$env:platform-$gitHash.exe"
$installerFile = Get-ChildItem -Path .\packaging\windows\ -Filter *.exe | Select-Object -First 1
Push-AppveyorArtifact $installerFile.FullName -FileName $setupFile
}
$setupFile = "freelan-setup-$env:platform-$gitHash.exe";
$installerFile = Get-ChildItem -Path .\packaging\windows\ -Filter *.exe | Select-Object -First 1;
Push-AppveyorArtifact $installerFile.FullName -FileName $setupFile;
}
branches:
only:
Expand Down

0 comments on commit 61618c0

Please sign in to comment.