2022-09-14 13:01:10 +08:00
|
|
|
#!/bin/sh
|
2023-04-09 13:35:35 +08:00
|
|
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
2022-09-14 13:01:10 +08:00
|
|
|
|
2023-03-20 14:53:56 +08:00
|
|
|
rm -rf res/mipmap assets
|
2022-12-18 12:52:52 +08:00
|
|
|
|
2022-09-14 13:01:10 +08:00
|
|
|
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
|
|
|
|
|
2023-01-29 18:11:41 +08:00
|
|
|
cp -r ../audio assets/res
|
2022-09-14 13:01:10 +08:00
|
|
|
cp -r ../fonts assets/res
|
|
|
|
cp -r ../image assets/res
|
|
|
|
cp -r ../lua assets/res
|
2023-02-15 19:54:35 +08:00
|
|
|
# TODO: Windows hosts machine
|
|
|
|
cp -r /etc/ca-certificates/extracted/cadir assets/res/certs
|
2023-02-21 13:44:24 +08:00
|
|
|
chmod 644 assets/res/certs/*
|
2023-02-15 19:54:35 +08:00
|
|
|
mkdir assets/res/packages
|
|
|
|
cp -r ../packages/standard assets/res/packages
|
|
|
|
cp -r ../packages/standard_cards assets/res/packages
|
2023-03-09 12:19:16 +08:00
|
|
|
cp -r ../packages/maneuvering assets/res/packages
|
2023-02-15 19:54:35 +08:00
|
|
|
cp -r ../packages/test assets/res/packages
|
2023-02-26 15:01:14 +08:00
|
|
|
rm assets/res/packages/test/test.lua
|
2023-02-15 19:54:35 +08:00
|
|
|
cp ../packages/init.sql assets/res/packages
|
2023-05-19 10:08:36 +08:00
|
|
|
cp -r ../Fk assets/res
|
2023-02-26 15:01:14 +08:00
|
|
|
mkdir assets/res/server
|
|
|
|
cp ../server/init.sql assets/res/server
|
2022-09-14 13:01:10 +08:00
|
|
|
cp ../LICENSE assets/res
|
2023-01-29 18:11:41 +08:00
|
|
|
cp ../zh_CN.qm assets/res
|
2023-11-07 21:31:07 +08:00
|
|
|
cp ../en_US.qm assets/res
|
2023-03-09 13:32:09 +08:00
|
|
|
cp ../fk_ver assets/res
|
2023-05-19 07:45:21 +08:00
|
|
|
cp ../waiting_tips.txt assets/res
|
2022-09-14 13:01:10 +08:00
|
|
|
|
|
|
|
# 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
|
|
|
|
|