101 lines
4.6 KiB
YAML
101 lines
4.6 KiB
YAML
|
# yaml-language-server: $schema=https://aka.ms/configuration-dsc-schema/0.2
|
||
|
|
||
|
# download additional dependencies used for the build to C:/Users/Public/Downloads (unfortunately
|
||
|
# xRemoteFile doesn't accept $env:PUBLIC or similar, so using hardcoded paths for now),
|
||
|
# install the 32bit and 64bit JDKs & make sure wsl is installed
|
||
|
# (this configuration needs to be applied with administrator privileges)
|
||
|
|
||
|
properties:
|
||
|
resources:
|
||
|
- resource: xPSDesiredStateConfiguration/xRemoteFile
|
||
|
id: jom
|
||
|
directives:
|
||
|
description: download jom (parallel nmake)
|
||
|
settings:
|
||
|
DestinationPath: C:/Users/Public/Downloads
|
||
|
Uri: http://download.qt.io/official_releases/jom/jom_1_1_4.zip
|
||
|
ChecksumType: SHA256
|
||
|
Checksum: d533c1ef49214229681e90196ed2094691e8c4a0a0bef0b2c901debcb562682b
|
||
|
- resource: xPSDesiredStateConfiguration/xRemoteFile
|
||
|
id: make
|
||
|
directives:
|
||
|
description: download make
|
||
|
settings:
|
||
|
DestinationPath: C:/Users/Public/Downloads
|
||
|
Uri: https://dev-www.libreoffice.org/bin/cygwin/make-4.2.1-msvc.exe
|
||
|
ChecksumType: SHA256
|
||
|
Checksum: 146d6f2b0ea57647b11b506a95048a7be73232e1feeeccbc1013651f992423d8
|
||
|
- resource: xPSDesiredStateConfiguration/xRemoteFile
|
||
|
id: clang-format
|
||
|
directives:
|
||
|
description: download clang-format
|
||
|
settings:
|
||
|
DestinationPath: C:/Users/Public/Downloads
|
||
|
Uri: https://dev-www.libreoffice.org/bin/clang-format-5.0.0-win.exe
|
||
|
ChecksumType: SHA256
|
||
|
Checksum: a25d5c4b451ec4fba466807e9239d0bcbafcfeb7f35834f2db87448968a73ccb
|
||
|
- resource: xPSDesiredStateConfiguration/xRemoteFile
|
||
|
id: spp
|
||
|
directives:
|
||
|
description: download strawberry perl portable
|
||
|
settings:
|
||
|
DestinationPath: C:/Users/Public/Downloads
|
||
|
Uri: https://github.com/StrawberryPerl/Perl-Dist-Strawberry/releases/download/SP_54001_64bit_UCRT/strawberry-perl-5.40.0.1-64bit-portable.zip
|
||
|
ChecksumType: SHA256
|
||
|
Checksum: 754f3e2a8e473dc68d1540c7802fb166a025f35ef18960c4564a31f8b5933907
|
||
|
- resource: xPSDesiredStateConfiguration/xRemoteFile
|
||
|
id: ant
|
||
|
directives:
|
||
|
description: download ant
|
||
|
settings:
|
||
|
DestinationPath: C:/Users/Public/Downloads
|
||
|
Uri: https://dlcdn.apache.org/ant/binaries/apache-ant-1.10.15-bin.zip
|
||
|
ChecksumType: SHA256
|
||
|
Checksum: e59baf898dc5b6d1aa6cd57544715f7e0060b1fdc9e56f24f9898d56612a9e0b
|
||
|
- resource: xPSDesiredStateConfiguration/xRemoteFile
|
||
|
id: junit
|
||
|
directives:
|
||
|
description: download junit
|
||
|
settings:
|
||
|
DestinationPath: C:/Users/Public/Downloads
|
||
|
Uri: https://repo1.maven.org/maven2/junit/junit/4.10/junit-4.10.jar
|
||
|
ChecksumType: SHA256
|
||
|
Checksum: 36a747ca1e0b86f6ea88055b8723bb87030d627766da6288bf077afdeeb0f75a
|
||
|
- resource: xPSDesiredStateConfiguration/xRemoteFile
|
||
|
id: ucrt
|
||
|
directives:
|
||
|
description: download ucrts
|
||
|
settings:
|
||
|
DestinationPath: C:/Users/Public/Downloads
|
||
|
Uri: https://download.microsoft.com/download/C/5/D/C5D68AA1-F62E-422A-9084-4AD85CEB8D4D/WindowsUCRT.zip
|
||
|
ChecksumType: SHA256
|
||
|
Checksum: 3c9fff1e102adbab55e588ce58b4291db885a530b2ae3bcca851c2721c8be3e1
|
||
|
- resource: xPSDesiredStateConfiguration/xMsiPackage
|
||
|
id: JDK_x64
|
||
|
directives:
|
||
|
description: install the 64bit JDK
|
||
|
settings:
|
||
|
Path: https://github.com/adoptium/temurin17-binaries/releases/download/jdk-17.0.12%2B7/OpenJDK17U-jdk_x64_windows_hotspot_17.0.12_7.msi
|
||
|
ProductId: '{20108BEF-FA49-47AE-9551-495BED430689}'
|
||
|
Arguments: ADDLOCAL=FeatureMain,FeatureOracleJavaSoft
|
||
|
FileHash: 1e6df6b445d9e995e86fd8225c658df1411d3abab86b540ce4d2063c8a889835
|
||
|
- resource: xPSDesiredStateConfiguration/xMsiPackage
|
||
|
id: JDK_x86
|
||
|
directives:
|
||
|
description: install the 32bit JDK
|
||
|
settings:
|
||
|
Path: https://github.com/adoptium/temurin17-binaries/releases/download/jdk-17.0.12%2B7/OpenJDK17U-jdk_x86-32_windows_hotspot_17.0.12_7.msi
|
||
|
ProductId: '{E0CAD1B6-6CF5-4E33-9F85-18AAE8CDD8EE}'
|
||
|
Arguments: ADDLOCAL=FeatureMain,FeatureOracleJavaSoft
|
||
|
FileHash: 84e94caa3fac04a173d8cebb80ae77727eaedd766d5bf4f66900aa64aa0b4f11
|
||
|
- resource: xPSDesiredStateConfiguration/xScript
|
||
|
id: wsl
|
||
|
directives:
|
||
|
description: make sure that wsl utility is available/working - i.e. that wsl is installed
|
||
|
settings:
|
||
|
# no idea why the whole test fails when not redirecting stderr
|
||
|
TestScript: wsl.exe --status 2>$null; return ![bool]$LASTEXITCODE
|
||
|
GetScript: wsl.exe --status 2>$null; return ![bool]$LASTEXITCODE
|
||
|
SetScript: wsl.exe --install --no-distribution
|
||
|
configurationVersion: 0.2.0
|