Some wamr-ide improvements (#1354)

including:
- enable macOS support
- documentation improvements
- fix some warnings
This commit is contained in:
YAMAMOTO Takashi
2022-08-08 18:52:47 +09:00
committed by GitHub
parent 425efb875f
commit e8f0c9580b
21 changed files with 288 additions and 80 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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."

View File

@ -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."

View File

@ -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

View File

@ -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