mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-08-01 07:02:01 +08:00
Update package_win32.ps1
Use appveyor variables
This commit is contained in:
parent
1dd60cc295
commit
3954103b9a
@ -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"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user