diff --git a/package/win/package_win32.ps1 b/package/win/package_win32.ps1 index 45bfa7189..a21ebf74e 100644 --- a/package/win/package_win32.ps1 +++ b/package/win/package_win32.ps1 @@ -29,11 +29,13 @@ git branch | foreach { } } +# Use absolute paths because apparently the zip calls below do if ($env:APPVEYOR) { - $output_dir = "../../Slic3r-${current_branch}.${current_date}.${env:APPVEYOR_BUILD_NUMBER}.$(git rev-parse --short HEAD)" + $output_dir = "${pwd}\..\..\Slic3r-${current_branch}.${current_date}.${env:APPVEYOR_BUILD_NUMBER}.$(git rev-parse --short HEAD)" } else { - $output_dir = "../../Slic3r-${current_branch}.${current_date}.$(git rev-parse --short HEAD)" + $output_dir = "${pwd}\..\..\Slic3r-${current_branch}.${current_date}.$(git rev-parse --short HEAD)" } +mkdir $output_dir copy slic3r.exe $output_dir\Slic3r.exe copy slic3r-console.exe $output_dir\Slic3r-console.exe