From 33d9f747375c8838a4f8e8186be0e7be8dea8565 Mon Sep 17 00:00:00 2001 From: Mark McCaskey Date: Mon, 11 Jan 2021 14:49:04 -0800 Subject: [PATCH] Fix up packaging of wapm on Windows --- CHANGELOG.md | 1 + Makefile | 12 ++++++++---- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0b12c9307c8..b20905e0794 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,7 @@ - [#1985](https://github.com/wasmerio/wasmer/pull/1985) Bump minimum supported Rust version to 1.48 ### Fixed +- [#2007](https://github.com/wasmerio/wasmer/pull/2007) Fix packaging of wapm on Windows - [#2005](https://github.com/wasmerio/wasmer/pull/2005) Emscripten is now working again. ## 1.0.0 - 2021-01-05 diff --git a/Makefile b/Makefile index a8f43026f40..af7f7a89314 100644 --- a/Makefile +++ b/Makefile @@ -286,12 +286,16 @@ test-integration: ############# package-wapm: -ifneq ($(OS), Windows_NT) mkdir -p "package/bin" +ifneq ($(OS), Windows_NT) + if [ -d "wapm-cli" ]; then \ + cp wapm-cli/target/release/wapm package/bin/ ;\ + echo "#!/bin/bash\nwapm execute \"\$$@\"" > package/bin/wax ;\ + chmod +x package/bin/wax ;\ + fi +else if [ -d "wapm-cli" ]; then \ - cp wapm-cli/target/release/wapm package/bin/; \ - echo "#!/bin/bash\nwapm execute \"\$$@\"" > package/bin/wax; \ - chmod +x package/bin/wax; \ + cp wapm-cli/target/release/wapm package/bin/ ;\ fi endif