mirror of
https://github.com/alibaba/GCanvas.git
synced 2025-12-08 17:36:42 +00:00
16 lines
530 B
Bash
Executable File
16 lines
530 B
Bash
Executable File
|
|
isLocal=false
|
|
if [ -n "$1" ] ;then
|
|
if [ "$1" = "true" ]; then
|
|
isLocal=true
|
|
fi
|
|
fi
|
|
if [ "$isLocal" = "true" ];then
|
|
echo "local build"
|
|
else
|
|
echo "remote build"
|
|
sudo sudo npm install cmake-js -g
|
|
mkdir -p ~/.gAssets/fonts/
|
|
git clone https://github.com/alibaba/GCanvas.git && cp -R ./GCanvas/core ./core/ && npm run compile && cp ./third_party/font/wqy-microhei.ttc ~/.gAssets/fonts/wqy-microhei.ttc && cp ./third_party/font/.fontcache ~/.gAssets/fonts/.fontcache
|
|
rm -rf ./GCanvas/
|
|
fi |