From ecc981687091f28d4770503e4b704b8abb868c93 Mon Sep 17 00:00:00 2001 From: Till Schneidereit Date: Wed, 7 Aug 2019 16:03:36 +0200 Subject: [PATCH] Win installer (#245) Add a basic Windows msi installer for the `wasmtime` and `wasm2obj` executables. They're also added to the PATH so they can be used in default shells. --- .azure-pipelines.yml | 9 ++++ installer/msi/wasmtime.wxs | 89 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 98 insertions(+) create mode 100644 installer/msi/wasmtime.wxs 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 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +