FreeKill/deploycore.sh
notify 30df075db2
Some checks failed
Check Whitespace and New Line / check (push) Has been cancelled
Deploy Doxygen to Pages / build (push) Has been cancelled
Deploy Doxygen to Pages / deploy (push) Has been cancelled
Changelog: v0.4.20
2024-10-22 01:14:01 +08:00

33 lines
587 B
Bash
Executable File
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/bin/bash
# 游戏依托freekill-core这个特殊仓库进行日常更新与开发
# 在更新版本号之前需要先把它们与自带的lua/同步一下
PWD=$(pwd)
if ! [ -e packages/freekill-core ]; then
echo '需要有freekill-core才可执行'
cd $PWD
exit 1
fi
rm -r lua/
delcode() {
cd $1
find -name '*.lua' -delete
find -empty -delete
cd ..
}
cd packages
delcode standard
delcode standard_cards
delcode maneuvering
cp -r freekill-core/lua ..
cp -r freekill-core/standard .
cp -r freekill-core/standard_cards .
cp -r freekill-core/maneuvering .
cd $PWD