diff --git a/images/macos/scripts/build/configure-system.sh b/images/macos/scripts/build/configure-system.sh index 8cbf3d680..a5f86774b 100644 --- a/images/macos/scripts/build/configure-system.sh +++ b/images/macos/scripts/build/configure-system.sh @@ -47,7 +47,7 @@ xcrun simctl list > /dev/null xcrun simctl list devices > /dev/null echo "Put documentation to $HOME root" -cp $HOME/image-generation/output/software-report/systeminfo.* $HOME/ +cp $HOME/image-generation/output/software-report.* $HOME/ echo "Remove fastlane cached cookie" rm -rf ~/.fastlane diff --git a/images/macos/scripts/docs-gen/Generate-SoftwareReport.ps1 b/images/macos/scripts/docs-gen/Generate-SoftwareReport.ps1 index 0739384c0..ad2bce12b 100644 --- a/images/macos/scripts/docs-gen/Generate-SoftwareReport.ps1 +++ b/images/macos/scripts/docs-gen/Generate-SoftwareReport.ps1 @@ -200,5 +200,5 @@ if (-not (Test-Path $OutputDirectory)) { New-Item -Path $OutputDirectory -ItemTy # Write final reports # Write-Host $markdownExtended -$softwareReport.ToJson() | Out-File -FilePath "${OutputDirectory}/systeminfo.json" -Encoding UTF8NoBOM -$softwareReport.ToMarkdown() | Out-File -FilePath "${OutputDirectory}/systeminfo.md" -Encoding UTF8NoBOM +$softwareReport.ToJson() | Out-File -FilePath "${OutputDirectory}/software-report.json" -Encoding UTF8NoBOM +$softwareReport.ToMarkdown() | Out-File -FilePath "${OutputDirectory}/software-report.md" -Encoding UTF8NoBOM diff --git a/images/macos/templates/macOS-14.anka.pkr.hcl b/images/macos/templates/macOS-14.anka.pkr.hcl index 0558594b9..fb21aa8d0 100644 --- a/images/macos/templates/macOS-14.anka.pkr.hcl +++ b/images/macos/templates/macOS-14.anka.pkr.hcl @@ -274,15 +274,21 @@ build { environment_vars = ["IMAGE_FOLDER=${local.image_folder}"] execute_command = "source $HOME/.bash_profile; {{ .Vars }} {{ .Path }}" inline = [ - "pwsh -File \"${local.image_folder}/software-report/Generate-SoftwareReport.ps1\" -OutputDirectory \"${local.image_folder}/output/software-report\" -ImageName ${var.build_id}", + "pwsh -File \"${local.image_folder}/software-report/Generate-SoftwareReport.ps1\" -OutputDirectory \"${local.image_folder}/output\" -ImageName ${var.build_id}", "pwsh -File \"${local.image_folder}/tests/RunAll-Tests.ps1\"" ] } provisioner "file" { - destination = "${path.root}/../../image-output/" + destination = "${path.root}/../../image-output/macos-14-Readme.md" direction = "download" - source = "${local.image_folder}/output/" + source = "${local.image_folder}/output/software-report.md" + } + + provisioner "file" { + destination = "${path.root}/../../image-output/software-report.json" + direction = "download" + source = "${local.image_folder}/output/software-report.json" } provisioner "shell" { diff --git a/images/macos/templates/macOS-14.arm64.anka.pkr.hcl b/images/macos/templates/macOS-14.arm64.anka.pkr.hcl index a8b2aeae6..267ff4f84 100644 --- a/images/macos/templates/macOS-14.arm64.anka.pkr.hcl +++ b/images/macos/templates/macOS-14.arm64.anka.pkr.hcl @@ -273,15 +273,21 @@ build { environment_vars = ["IMAGE_FOLDER=${local.image_folder}"] execute_command = "source $HOME/.bash_profile; {{ .Vars }} {{ .Path }}" inline = [ - "pwsh -File \"${local.image_folder}/software-report/Generate-SoftwareReport.ps1\" -OutputDirectory \"${local.image_folder}/output/software-report\" -ImageName ${var.build_id}", + "pwsh -File \"${local.image_folder}/software-report/Generate-SoftwareReport.ps1\" -OutputDirectory \"${local.image_folder}/output\" -ImageName ${var.build_id}", "pwsh -File \"${local.image_folder}/tests/RunAll-Tests.ps1\"" ] } provisioner "file" { - destination = "${path.root}/../../image-output/" + destination = "${path.root}/../../image-output/macos-14-arm64-Readme.md" direction = "download" - source = "${local.image_folder}/output/" + source = "${local.image_folder}/output/software-report.md" + } + + provisioner "file" { + destination = "${path.root}/../../image-output/software-report.json" + direction = "download" + source = "${local.image_folder}/output/software-report.json" } provisioner "shell" { diff --git a/images/macos/templates/macOS-15.anka.pkr.hcl b/images/macos/templates/macOS-15.anka.pkr.hcl index de40a7c4d..8cde8442a 100644 --- a/images/macos/templates/macOS-15.anka.pkr.hcl +++ b/images/macos/templates/macOS-15.anka.pkr.hcl @@ -273,15 +273,21 @@ build { environment_vars = ["IMAGE_FOLDER=${local.image_folder}"] execute_command = "source $HOME/.bash_profile; {{ .Vars }} {{ .Path }}" inline = [ - "pwsh -File \"${local.image_folder}/software-report/Generate-SoftwareReport.ps1\" -OutputDirectory \"${local.image_folder}/output/software-report\" -ImageName ${var.build_id}", + "pwsh -File \"${local.image_folder}/software-report/Generate-SoftwareReport.ps1\" -OutputDirectory \"${local.image_folder}/output\" -ImageName ${var.build_id}", "pwsh -File \"${local.image_folder}/tests/RunAll-Tests.ps1\"" ] } provisioner "file" { - destination = "${path.root}/../../image-output/" + destination = "${path.root}/../../image-output/macos-15-Readme.md" direction = "download" - source = "${local.image_folder}/output/" + source = "${local.image_folder}/output/software-report.md" + } + + provisioner "file" { + destination = "${path.root}/../../image-output/software-report.json" + direction = "download" + source = "${local.image_folder}/output/software-report.json" } provisioner "shell" { diff --git a/images/macos/templates/macOS-15.arm64.anka.pkr.hcl b/images/macos/templates/macOS-15.arm64.anka.pkr.hcl index ef800554b..dcb553313 100644 --- a/images/macos/templates/macOS-15.arm64.anka.pkr.hcl +++ b/images/macos/templates/macOS-15.arm64.anka.pkr.hcl @@ -272,15 +272,21 @@ build { environment_vars = ["IMAGE_FOLDER=${local.image_folder}"] execute_command = "source $HOME/.bash_profile; {{ .Vars }} {{ .Path }}" inline = [ - "pwsh -File \"${local.image_folder}/software-report/Generate-SoftwareReport.ps1\" -OutputDirectory \"${local.image_folder}/output/software-report\" -ImageName ${var.build_id}", + "pwsh -File \"${local.image_folder}/software-report/Generate-SoftwareReport.ps1\" -OutputDirectory \"${local.image_folder}/output\" -ImageName ${var.build_id}", "pwsh -File \"${local.image_folder}/tests/RunAll-Tests.ps1\"" ] } provisioner "file" { - destination = "${path.root}/../../image-output/" + destination = "${path.root}/../../image-output/macos-15-arm64-Readme.md" direction = "download" - source = "${local.image_folder}/output/" + source = "${local.image_folder}/output/software-report.md" + } + + provisioner "file" { + destination = "${path.root}/../../image-output/software-report.json" + direction = "download" + source = "${local.image_folder}/output/software-report.json" } provisioner "shell" { diff --git a/images/macos/templates/macOS-26.arm64.anka.pkr.hcl b/images/macos/templates/macOS-26.arm64.anka.pkr.hcl index 6439d235c..d973f46b4 100644 --- a/images/macos/templates/macOS-26.arm64.anka.pkr.hcl +++ b/images/macos/templates/macOS-26.arm64.anka.pkr.hcl @@ -271,15 +271,21 @@ build { environment_vars = ["IMAGE_FOLDER=${local.image_folder}"] execute_command = "source $HOME/.bash_profile; {{ .Vars }} {{ .Path }}" inline = [ - "pwsh -File \"${local.image_folder}/software-report/Generate-SoftwareReport.ps1\" -OutputDirectory \"${local.image_folder}/output/software-report\" -ImageName ${var.build_id}", + "pwsh -File \"${local.image_folder}/software-report/Generate-SoftwareReport.ps1\" -OutputDirectory \"${local.image_folder}/output\" -ImageName ${var.build_id}", "pwsh -File \"${local.image_folder}/tests/RunAll-Tests.ps1\"" ] } provisioner "file" { - destination = "${path.root}/../../image-output/" + destination = "${path.root}/../../image-output/macos-26-arm64-Readme.md" direction = "download" - source = "${local.image_folder}/output/" + source = "${local.image_folder}/output/software-report.md" + } + + provisioner "file" { + destination = "${path.root}/../../image-output/software-report.json" + direction = "download" + source = "${local.image_folder}/output/software-report.json" } provisioner "shell" {