mirror of
https://github.com/bytecodealliance/wasm-micro-runtime.git
synced 2025-03-01 03:55:23 +00:00

Upgrade WAMR-IDE: test-tools/wamr-ide folder - add `wamr-sdk` to include libc-builtin-sysroot header files - add `prettier` check and apply script in `package.json` - update `wasm-toolchain` dockerfile and resource - enhance `build | run | debug` process to clean up the container - enhance the change workspace - enhance `wasm` type project check before building, running and debugging - format the project_compilation.json - update documents
38 lines
1.0 KiB
Batchfile
38 lines
1.0 KiB
Batchfile
@REM Copyright (C) 2019 Intel Corporation. All rights reserved.
|
|
@REM SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
|
|
|
@echo off
|
|
|
|
call docker --version>nul 2>nul
|
|
IF %ERRORLEVEL% GTR 0 (
|
|
echo "Docker is not installed, please install docker desktop firstly."
|
|
echo
|
|
exit /b 1
|
|
)
|
|
|
|
call docker images>nul 2>nul
|
|
IF %ERRORLEVEL% GTR 0 (
|
|
echo "Docker is not ready, please lanuch docker desktop firstly."
|
|
echo
|
|
exit /b 2
|
|
)
|
|
|
|
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
|
|
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
|
|
echo "Done."
|
|
)
|
|
|
|
echo "Clean up docker containers successfully." |