25 lines
975 B
Bash
Executable File
25 lines
975 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
#/Applications/CocosCreator\ 2.0.5.app/Contents/MacOS/CocosCreator \
|
|
# --path ../../tt-open-data-project/ \
|
|
# --build "configPath=./opendata_config.json"
|
|
#echo 'end build open project with cocos creator'
|
|
|
|
/Applications/CocosCreator.app/Contents/MacOS/CocosCreator --path ../ --build "configPath=./tt_config.json"
|
|
|
|
echo "end build project with cocos creator"
|
|
|
|
|
|
#rm -rf /Users/zhl/Documents/http_static/game/sweet/res/raw-assets
|
|
#mv ../build_tt/wechatgame/res/raw-assets /Users/zhl/Documents/http_static/game/sweet/res
|
|
#rm -rf ../build_tt/wechatgame/res/raw-assets
|
|
|
|
rm -rf ../build_tt/wechatgame/wx-open-data-project
|
|
|
|
#echo "begin compress png use pngquant"
|
|
#find ../build_tt/wechatgame -name "*.png" -type f -exec ./pngquant --ext=.png --force --quality=50-80 {} \;
|
|
|
|
cp ../build-templates/ttgame/project.config.json ../build_tt/wechatgame/project.config.json
|
|
cp ../build-templates/ttgame/game.json ../build_tt/wechatgame/game.json
|
|
echo "all done"
|