Combine git submodule commands and add safety check for png files
Co-authored-by: wheaney <42350981+wheaney@users.noreply.github.com>
This commit is contained in:
parent
dfe7033171
commit
c5fb8cd45e
|
|
@ -63,13 +63,17 @@ build() {
|
|||
cd ${_pkgbase}
|
||||
|
||||
# init submodules (only required ones)
|
||||
git submodule update --init --recursive modules/sombrero
|
||||
git submodule update --init --recursive ui/modules/PyXRLinuxDriverIPC
|
||||
git submodule update --init --recursive modules/sombrero ui/modules/PyXRLinuxDriverIPC
|
||||
|
||||
# Copy required files for build
|
||||
cp ui/modules/PyXRLinuxDriverIPC/xrdriveripc.py kwin/src/xrdriveripc/xrdriveripc.py
|
||||
cp VERSION kwin/
|
||||
|
||||
# Copy sombrero assets to qml directory if they exist
|
||||
if [ -n "$(find modules/sombrero -name '*.png' 2>/dev/null)" ]; then
|
||||
cp modules/sombrero/*.png kwin/src/qml/
|
||||
fi
|
||||
|
||||
cp ui/data/icons/hicolor/scalable/apps/com.xronlinux.BreezyDesktop.svg kwin/src/kcm/
|
||||
|
||||
# Build KWin plugin
|
||||
|
|
|
|||
Loading…
Reference in New Issue