mirror of https://github.com/WebAssembly/wasi-sdk
this should hopefully work on the mac, ill have to get someone to test itpull/2/head wasi-sdk-1
parent
2a3fadc96f
commit
cea537aef1
@ -0,0 +1 @@
|
||||
build
|
@ -1,4 +1,4 @@
|
||||
#!/usr/bin/env sh
|
||||
set -e
|
||||
docker build -t wasi-sdk-builder:latest .
|
||||
docker run --mount type=bind,src=$PWD,target=/wasi-sdk wasi-sdk-builder:latest -w /wasi-sdk make package
|
||||
docker run --mount type=bind,src=$PWD,target=/workspace --workdir /workspace wasi-sdk-builder:latest make package
|
||||
|
@ -0,0 +1,22 @@
|
||||
#!/usr/bin/env bash
|
||||
set -ex
|
||||
if [ -n "$1" ]; then
|
||||
export VERSION="$1"
|
||||
else
|
||||
export VERSION=`./version.sh`
|
||||
fi
|
||||
|
||||
PKGDIR=build/wasi-sdk-$VERSION
|
||||
|
||||
case "$(uname -s)" in
|
||||
Linux*) MACHINE=linux;;
|
||||
Darwin*) MACHINE=macos;;
|
||||
CYGWIN*) MACHINE=cygwin;;
|
||||
MINGW*) MACHINE=mingw;;
|
||||
*) MACHINE="UNKNOWN"
|
||||
esac
|
||||
|
||||
rm -rf $PKGDIR
|
||||
mkdir -p $PKGDIR/opt
|
||||
cp -R /opt/wasi-sdk $PKGDIR/opt/
|
||||
cd build && tar czf wasi-sdk-$VERSION\-$MACHINE.tar.gz wasi-sdk-$VERSION
|
Loading…
Reference in new issue