Still making Windows more special

This commit is contained in:
Greg Hellings
2024-11-19 07:34:56 +00:00
parent d02dbdbf55
commit 93352bc2e8
+4 -1
View File
@@ -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"