From 270c8431f1403440b206d9dacc3b1f6839136583 Mon Sep 17 00:00:00 2001 From: Till Schneidereit Date: Tue, 6 Aug 2019 14:56:02 +0200 Subject: [PATCH 1/3] Add Windows installer --- .azure-pipelines.yml | 9 +++++ installer/msi/wasmtime.wxs | 76 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 85 insertions(+) create mode 100644 installer/msi/wasmtime.wxs 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..728916bce46c --- /dev/null +++ b/installer/msi/wasmtime.wxs @@ -0,0 +1,76 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + From 995f487c19fca2155232f170ff996d19cfb85e1e Mon Sep 17 00:00:00 2001 From: Till Schneidereit Date: Tue, 6 Aug 2019 23:10:58 +0200 Subject: [PATCH 2/3] Installer fixes --- installer/msi/wasmtime.wxs | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/installer/msi/wasmtime.wxs b/installer/msi/wasmtime.wxs index 728916bce46c..f8c5eba92031 100644 --- a/installer/msi/wasmtime.wxs +++ b/installer/msi/wasmtime.wxs @@ -25,7 +25,9 @@ - + + + @@ -40,16 +42,25 @@ - + - + + + + + + + + + + @@ -61,6 +72,8 @@ + + Date: Wed, 7 Aug 2019 14:03:30 +0200 Subject: [PATCH 3/3] Remove whitespace --- installer/msi/wasmtime.wxs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/installer/msi/wasmtime.wxs b/installer/msi/wasmtime.wxs index f8c5eba92031..8110932cb970 100644 --- a/installer/msi/wasmtime.wxs +++ b/installer/msi/wasmtime.wxs @@ -29,7 +29,7 @@ - +