Some wamr-ide improvements (#1354)
including: - enable macOS support - documentation improvements - fix some warnings
This commit is contained in:
@ -3,12 +3,8 @@
|
||||
|
||||
@echo off
|
||||
|
||||
docker run -it --name=wasm-debug-server-ctr ^
|
||||
docker run --rm -it --name=wasm-debug-server-ctr ^
|
||||
-v "%cd%":/mnt ^
|
||||
-p 1234:1234 ^
|
||||
wasm-debug-server:1.0 ^
|
||||
/bin/bash -c "./debug.sh %1"
|
||||
|
||||
@REM stop and remove wasm-debug-server-container
|
||||
docker stop wasm-debug-server-ctr>nul 2>nul
|
||||
docker rm wasm-debug-server-ctr>nul 2>nul
|
||||
@ -1,13 +1,10 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Copyright (C) 2019 Intel Corporation. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
||||
|
||||
#!/bin/bash
|
||||
|
||||
docker run -it --name=wasm-debug-server-ctr \
|
||||
docker run --rm -it --name=wasm-debug-server-ctr \
|
||||
-v "$(pwd)":/mnt \
|
||||
-p 1234:1234 \
|
||||
wasm-debug-server:1.0 \
|
||||
/bin/bash -c "./debug.sh $1"
|
||||
|
||||
docker stop wasm-debug-server-ctr>/dev/null
|
||||
docker rm wasm-debug-server-ctr>/dev/null
|
||||
@ -4,12 +4,8 @@
|
||||
@echo off
|
||||
|
||||
@REM start a container, mount current project path to container/mnt
|
||||
docker run --name=wasm-toolchain-ctr ^
|
||||
docker run --rm --name=wasm-toolchain-ctr ^
|
||||
-it -v "%cd%":/mnt ^
|
||||
--env=PROJ_PATH="%cd%" ^
|
||||
wasm-toolchain:1.0 ^
|
||||
/bin/bash -c "./build_wasm.sh %1"
|
||||
|
||||
@REM stop and remove wasm-toolchain-ctr container
|
||||
docker stop wasm-toolchain-ctr>nul 2>nul
|
||||
docker rm wasm-toolchain-ctr>nul 2>nul
|
||||
@ -1,13 +1,10 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Copyright (C) 2019 Intel Corporation. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
||||
|
||||
#!/bin/bash
|
||||
|
||||
docker run --name=wasm-toolchain-ctr \
|
||||
docker run --rm --name=wasm-toolchain-ctr \
|
||||
-it -v "$(pwd)":/mnt \
|
||||
--env=PROJ_PATH="$(pwd)" \
|
||||
wasm-toolchain:1.0 \
|
||||
/bin/bash -c "./build_wasm.sh $1"
|
||||
|
||||
docker stop wasm-toolchain-ctr>/dev/null
|
||||
docker rm wasm-toolchain-ctr>/dev/null
|
||||
@ -22,17 +22,15 @@ echo "Prepare to clean up the docker containers..."
|
||||
call docker inspect wasm-toolchain-ctr>nul 2>nul
|
||||
IF %ERRORLEVEL% EQU 0 (
|
||||
echo "Stopping and removing wasm-toolchain-ctr container..."
|
||||
docker stop wasm-toolchain-ctr>nul 2>nul
|
||||
docker rm wasm-toolchain-ctr>nul 2>nul
|
||||
docker rm -f wasm-toolchain-ctr>nul 2>nul
|
||||
echo "Done."
|
||||
)
|
||||
|
||||
call docker inspect wasm-debug-server-ctr>nul 2>nul
|
||||
IF %ERRORLEVEL% EQU 0 (
|
||||
echo "Stopping and removing wasm-debug-server-ctr container..."
|
||||
docker stop wasm-debug-server-ctr>nul 2>nul
|
||||
docker rm wasm-debug-server-ctr>nul 2>nul
|
||||
docker rm -f wasm-debug-server-ctr>nul 2>nul
|
||||
echo "Done."
|
||||
)
|
||||
|
||||
echo "Clean up docker containers successfully."
|
||||
echo "Clean up docker containers successfully."
|
||||
|
||||
@ -1,8 +1,8 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Copyright (C) 2019 Intel Corporation. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
||||
|
||||
#!/bin/bash
|
||||
|
||||
docker -v>/dev/null
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "\nDocker is not installed, please install docker firstly.\n"
|
||||
@ -19,16 +19,14 @@ echo "Prepare to clean up the docker containers..."
|
||||
|
||||
if test ! -z "$(docker ps -a | grep wasm-toolchain-ctr)"; then
|
||||
echo "Stopping and removing wasm-toolchain-ctr container..."
|
||||
docker stop wasm-toolchain-ctr>/dev/null
|
||||
docker rm wasm-toolchain-ctr>/dev/null
|
||||
docker rm -f wasm-toolchain-ctr>/dev/null
|
||||
echo "Done."
|
||||
fi
|
||||
|
||||
if test ! -z "$(docker ps -a | grep wasm-debug-server-ctr)"; then
|
||||
echo "Stopping and removing wasm-debug-server-ctr container..."
|
||||
docker stop wasm-debug-server-ctr>/dev/null
|
||||
docker rm wasm-debug-server-ctr>/dev/null
|
||||
docker rm -f wasm-debug-server-ctr>/dev/null
|
||||
echo "Done."
|
||||
fi
|
||||
|
||||
echo "Clean up docker containers successfully."
|
||||
echo "Clean up docker containers successfully."
|
||||
|
||||
@ -3,11 +3,7 @@
|
||||
|
||||
@echo off
|
||||
|
||||
docker run -it --name=wasm-debug-server-ctr ^
|
||||
docker run --rm -it --name=wasm-debug-server-ctr ^
|
||||
-v "%cd%":/mnt ^
|
||||
wasm-debug-server:1.0 ^
|
||||
/bin/bash -c "./run.sh %1"
|
||||
|
||||
@REM stop and remove wasm-debug-server-ctr
|
||||
docker stop wasm-debug-server-ctr>nul 2>nul
|
||||
docker rm wasm-debug-server-ctr>nul 2>nul
|
||||
@ -1,12 +1,9 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Copyright (C) 2019 Intel Corporation. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
||||
|
||||
#!/bin/bash
|
||||
|
||||
docker run -it --name=wasm-debug-server-ctr \
|
||||
docker run --rm -it --name=wasm-debug-server-ctr \
|
||||
-v "$(pwd)":/mnt \
|
||||
wasm-debug-server:1.0 \
|
||||
/bin/bash -c "./run.sh $1"
|
||||
|
||||
docker stop wasm-debug-server-ctr>/dev/null
|
||||
docker rm wasm-debug-server-ctr>/dev/null
|
||||
Reference in New Issue
Block a user