mirror of
https://github.com/Qsgs-Fans/FreeKill.git
synced 2024-11-16 11:42:45 +08:00
162b3af505
* distance & snatch * distance & snatch - clean * fix: client.alive_players * room:askForCardChosen(todo: snatch) * add skill to players(uncomplete) * ui of skill btn * expand pile(not completed) * Use card2 (#23) * snatch (todo: owner_map) * owner_map * remove too many snatch * update * call active skill's functions * use zhiheng * Qt6 (#24) * use qt6 * android compiling * remove version number of qml import * correct anti-sql injection; update deprecated code * add fkparse as submodule * link fkparse, and write simple functions * adjust ui * adjust layout for photos; fix qml warning * android problem fix (partially) * move ico * update copy_assets * update logic for ok/cancel btn
46 lines
758 B
Bash
Executable File
46 lines
758 B
Bash
Executable File
#!/bin/sh
|
|
|
|
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 ../fonts assets/res
|
|
cp -r ../image assets/res
|
|
cp -r ../lua assets/res
|
|
cp -r ../packages assets/res
|
|
cp -r ../qml assets/res
|
|
cp -r ../server assets/res
|
|
rm assets/res/server/users.db
|
|
cp ../LICENSE 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
|
|
|