FreeKill/android/copy_assets.sh
notify cc271bcdf8 Standard equips (#50)
* support fkp

* get default setting in qml

* correct zixing

* mark

* TODO: parse fkp in c++

* scale the drawer

* free assign

* fix free assign bug

* add submodule for official generals

* generate fkp in cpp code

* use UTF-8 in windows conhost

* use onUse for regular skill

* active skill for fkp

* add fkp function; change data for DMG and Heal

* add cancelable to askForDiscard

* don't let generals naked

* config bg and bgm

* fix exists for win

* bugfix: rewardandpunish

* fkp: vs skill

* room config

* observe

* god_salavation

* fkp: judge

* add read storage permission for android build

* remove submodule fk_official

* remove include/

* use a submodule as include directory

* libgit2

* remove debugging 'downloadNewPack'

* libgit2.dll for Windows

* rewrite system_enum, disable dangerous function

* fix bug in trigger()

* filter skill

* filter judgement card

* add about page for git2

* very basic general detail

* FKP: status skill

* libgit: android test

* libgit: build for android

* 1

* libgit2.dll

* android: load qm file after copy asset

* filter skill: if no filter skill then remove filtered card

* allow warning and critical to show a popup, and fix warnings from QML

* resource: move general audio/image to packages/

* move assets of cards

* FKP: modify

* use sqlite db to manage packages

* packman cli

* packman gui

* use Popup for error dialog

* android full screen note

* fix android ssl problem
2023-02-15 19:54:35 +08:00

56 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
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
cp ../packages/init.sql assets/res/packages
cp -r ../qml assets/res
cp -r ../server assets/res
rm assets/res/server/users.db
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