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