Skip to content

Commit

Permalink
Merge pull request #2007 from wasmerio/fix/wapm-packaging-on-windows
Browse files Browse the repository at this point in the history
Fix up packaging of wapm on Windows
  • Loading branch information
MarkMcCaskey authored Jan 11, 2021
2 parents 86574c6 + 33d9f74 commit a8fda07
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
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 a8fda07

Please sign in to comment.