[Windows] Update documentation generation to use shared software report module (#6834)

This commit is contained in:
bogdan-damian-bgd
2022-12-30 10:24:22 +01:00
committed by GitHub
parent f7f519dcc4
commit 447c8387a2
10 changed files with 349 additions and 535 deletions

View File

@@ -82,6 +82,11 @@
"source": "{{ template_dir }}/scripts/SoftwareReport",
"destination": "{{user `image_folder`}}"
},
{
"type": "file",
"source": "{{ template_dir }}/../../helpers/software-report-base",
"destination": "{{user `image_folder`}}/SoftwareReport/"
},
{
"type": "file",
"source": "{{ template_dir }}/post-generation",
@@ -302,15 +307,22 @@
{
"type": "powershell",
"inline": [
"if (-not (Test-Path C:\\InstalledSoftware.md)) { throw 'C:\\InstalledSoftware.md not found' }"
"if (-not (Test-Path C:\\software-report.md)) { throw 'C:\\software-report.md not found' }",
"if (-not (Test-Path C:\\software-report.json)) { throw 'C:\\software-report.json not found' }"
]
},
{
"type": "file",
"source": "C:\\InstalledSoftware.md",
"source": "C:\\software-report.md",
"destination": "{{ template_dir }}/Windows2022-Readme.md",
"direction": "download"
},
{
"type": "file",
"source": "C:\\software-report.json",
"destination": "{{ template_dir }}/software-report.json",
"direction": "download"
},
{
"type": "powershell",
"skip_clean": true,