diff --git a/.azure-pipelines.yml b/.azure-pipelines.yml index 003708dba5..f45f7db113 100644 --- a/.azure-pipelines.yml +++ b/.azure-pipelines.yml @@ -198,6 +198,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 0000000000..8110932cb9 --- /dev/null +++ b/installer/msi/wasmtime.wxs @@ -0,0 +1,89 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +