Makefile: use kpackagetool5

This commit is contained in:
Peter Fajdiga
2023-06-02 11:56:27 +02:00
parent a56477606e
commit 00a7ccb3dd

View File

@@ -1,7 +1,5 @@
.PHONY: *
INSTALL_DIR := ~/.local/share/kwin/scripts/karousel
config:
mkdir -p ./package/contents/config
tsc ./src/config/definition.ts ./configgen/kcfg.ts --outFile /dev/stdout | node - > ./package/contents/config/main.xml
@@ -10,9 +8,7 @@ build:
tsc --outFile ./package/contents/code/main.js
install: build config
mkdir -p ${INSTALL_DIR}
rm -r ${INSTALL_DIR}/*
cp -r ./package/* ${INSTALL_DIR}
kpackagetool5 --type=KWin/Script -i ./package || kpackagetool5 --type=KWin/Script -u ./package
logs:
journalctl -t kwin_x11 -g '^qml:|^file://.*karousel' -f