mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-05-06 20:23:08 +00:00
feat(app): build_resources_file script to build automatically resources.qrc
This commit is contained in:
parent
3ed1c6b7b5
commit
1832297fa6
1 changed files with 16 additions and 0 deletions
16
tests/build_resources_file
Executable file
16
tests/build_resources_file
Executable file
|
|
@ -0,0 +1,16 @@
|
|||
#!/usr/bin/bash
|
||||
|
||||
echo "<!DOCTYPE RCC><RCC version=\"1.0\">"
|
||||
echo " <qresource prefix=\"/\">"
|
||||
|
||||
for filename in $(find languages/ ui/ imgs/ -type f)
|
||||
do
|
||||
extension="${filename##*.}"
|
||||
|
||||
if [[ "${extension}" == @(qml|svg|qm) ]]; then
|
||||
echo " <file>$filename</file>"
|
||||
fi
|
||||
done
|
||||
|
||||
echo " </qresource>"
|
||||
echo "</RCC>"
|
||||
Loading…
Add table
Reference in a new issue