From 22b00c9a4330f6535b8be0af3d092a62b82098fa 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 --- Makefile | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) 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