Still making Windows more special
This commit is contained in:
+4
-1
@@ -67,9 +67,12 @@ let
|
||||
"hyperv-iso.amd64" = general // {
|
||||
tags = [ "hyperv" ];
|
||||
parallel.matrix = hyperv_list;
|
||||
variables = general.variables // {
|
||||
COMMAND = "packer build -only=\"hyperv-iso.amd64\" -var-file=\"\${distro}\" -var build=\${BUILD} -var cpus=2 -var memory=4096 \${EXCEPT} sources";
|
||||
}
|
||||
script = [
|
||||
"packer init sources"
|
||||
"echo 'packer build -only=\"hyperv-iso.amd64\" -var-file=\"\${distro}\" -var build=\${BUILD} -var cpus=2 -var memory=4096 \${EXCEPT} sources' > build.ps1"
|
||||
"echo $env:COMMAND > build.ps1"
|
||||
"echo 'if (-not $?) { throw \"Error in build\" }' >> build.ps1"
|
||||
"cat build.ps1"
|
||||
"pwsh .\\build.ps1"
|
||||
|
||||
Reference in New Issue
Block a user