Skip to content

Commit

Permalink
Fix up packaging of wapm on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark McCaskey committed Jan 11, 2021
1 parent 86574c6 commit 22b00c9
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 22b00c9

Please sign in to comment.