Update package_win32.ps1

Use appveyor variables
This commit is contained in:
Joseph Lenox 2016-07-08 14:18:15 -05:00 committed by GitHub
parent 1dd60cc295
commit 3954103b9a

View File

@ -5,13 +5,13 @@
echo "Make this is run from the perl command window." echo "Make this is run from the perl command window."
echo "Requires PAR." echo "Requires PAR."
New-Variable -Name "current_branch" -Value "" New-Variable -Name "current_branch" -Value "${APPVEYOR_REPO_BRANCH}"
git branch | foreach { #git branch | foreach {
if ($_ -match "` (.*)"){ # if ($_ -match "` (.*)"){
$current_branch += $matches[1] # $current_branch += $matches[1]
} # }
} #}
# Change this to where you have Strawberry Perl installed. # Change this to where you have Strawberry Perl installed.
New-Variable -Name "STRAWBERRY_PATH" -Value "C:\Strawberry" New-Variable -Name "STRAWBERRY_PATH" -Value "C:\Strawberry"
@ -219,4 +219,4 @@ pp `
-M warnings::register ` -M warnings::register `
-e -p ..\slic3r.pl -o ..\slic3r.par -e -p ..\slic3r.pl -o ..\slic3r.par
copy ..\slic3r.par "..\slic3r-${current_branch}-$(git rev-parse --short HEAD).zip" copy ..\slic3r.par "..\slic3r-${current_branch}-${APPVEYOR_BUILD_NUMBER}-$(git rev-parse --short HEAD).zip"