mirror of
https://github.com/Qsgs-Fans/FreeKill.git
synced 2024-11-16 11:42:45 +08:00
9ac89caa1f
* android: dont copy RSA key and test.lua(generated by fkp) * remove debug code * ai think * fixbug: 100% cpu per thread * init ai * fix bug, next step is to remove all feasible * remame vscode -> lsp * add some lsp comment * rewrite feasible * Random AI * fixbug: chooseplayer * liuli * move checkNoHuman to waitForAiReply * prototype for cardLimitation skill * add Exppattern:Parse to static.lua * remove unnecessary static
58 lines
1.1 KiB
Bash
Executable File
58 lines
1.1 KiB
Bash
Executable File
#!/bin/sh
|
|
|
|
rm -rf res assets
|
|
|
|
if [ ! -e res/mipmap ]; then
|
|
mkdir -p res/mipmap
|
|
fi
|
|
cp ../image/icon.png res/mipmap
|
|
|
|
if [ ! -e assets/res ]; then
|
|
mkdir -p assets/res
|
|
fi
|
|
|
|
cp -r ../audio assets/res
|
|
cp -r ../fonts assets/res
|
|
cp -r ../image assets/res
|
|
cp -r ../lua assets/res
|
|
# TODO: Windows hosts machine
|
|
cp -r /etc/ca-certificates/extracted/cadir assets/res/certs
|
|
chmod 644 assets/res/certs/*
|
|
mkdir assets/res/packages
|
|
cp -r ../packages/standard assets/res/packages
|
|
cp -r ../packages/standard_cards assets/res/packages
|
|
cp -r ../packages/test assets/res/packages
|
|
rm assets/res/packages/test/test.lua
|
|
cp ../packages/init.sql assets/res/packages
|
|
cp -r ../qml assets/res
|
|
mkdir assets/res/server
|
|
cp ../server/init.sql assets/res/server
|
|
cp ../LICENSE assets/res
|
|
cp ../zh_CN.qm assets/res
|
|
|
|
# Due to Qt Android's bug, we need make sure every directory has a subfile (not subdir)
|
|
function fixDir() {
|
|
cd $1
|
|
hasSubfile=false
|
|
for f in $(ls); do
|
|
if [ -f $f ]; then
|
|
hasSubfile=true
|
|
break
|
|
fi
|
|
done
|
|
|
|
if ! $hasSubfile; then
|
|
echo "辣鸡Qt" > bug.txt
|
|
fi
|
|
|
|
for f in $(ls); do
|
|
if [ -d $f ]; then
|
|
fixDir $f
|
|
fi
|
|
done
|
|
cd ..
|
|
}
|
|
|
|
fixDir assets/res
|
|
|