diff --git a/.azure-pipelines.yml b/.azure-pipelines.yml index 554a32695a35..e2763265c28d 100644 --- a/.azure-pipelines.yml +++ b/.azure-pipelines.yml @@ -196,6 +196,15 @@ jobs: fi cp LICENSE README.md target/release/{wasmtime,wasm2obj}$ext $BUILD_BINARIESDIRECTORY/$BASENAME displayName: Copy binaries + + - bash: | + set -e + export WT_VERSION=`cat Cargo.toml | sed -n 's/^version = "\([^"]*\)".*/\1/p'` + "$WIX/bin/candle" -arch x64 -out target/wasmtime.wixobj installer/msi/wasmtime.wxs + "$WIX/bin/light" -out $BUILD_ARTIFACTSTAGINGDIRECTORY/$(basename).msi target/wasmtime.wixobj -ext WixUtilExtension + displayName: Create installer (Windows) + condition: eq(variables['Agent.OS'], 'Windows_NT') + - task: ArchiveFiles@2 inputs: rootFolderOrFile: $(Build.BinariesDirectory)/$(basename) diff --git a/installer/msi/wasmtime.wxs b/installer/msi/wasmtime.wxs new file mode 100644 index 000000000000..8110932cb970 --- /dev/null +++ b/installer/msi/wasmtime.wxs @@ -0,0 +1,89 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +