19 lines
705 B
Bash
Executable File
19 lines
705 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
/Applications/CocosCreator.app/Contents/MacOS/CocosCreator --path ../ --build "configPath=./qq_config.json"
|
|
|
|
echo "end build project with cocos creator"
|
|
|
|
|
|
#rm -rf /Users/zhl/Documents/http_static/game/sweet/res/raw-assets
|
|
#mv ../build/wechatgame/res/raw-assets /Users/zhl/Documents/http_static/game/sweet/res
|
|
|
|
#rm -rf ../build/wechatgame/res/raw-assets
|
|
|
|
#echo "begin compress png use pngquant"
|
|
#find ../build_qq/wechatgame -name "*.png" -type f -exec pngquant --ext=.png --force --quality=40-70 {} \;
|
|
|
|
cp ../build-templates/qqmini/project.config.json ../build_qq/wechatgame/project.config.json
|
|
cp ../build-templates/qqmini/game.json ../build_qq/wechatgame/game.json
|
|
echo "all done"
|