feat: adapt to Qt6

adapt to Qt6; fix a few bugs

Log: adapt to Qt6; bump version to 4.2.14
This commit is contained in:
zty199
2024-06-21 01:55:09 +08:00
parent d6bc2a96a7
commit 2d1ca2463e
28 changed files with 290 additions and 260 deletions

View File

@@ -8,10 +8,9 @@ TARGET = spark-store
TEMPLATE = subdirs
#CONFIG += ordered
CONFIG += wayland-compositor
SUBDIRS += \
src/spark-store.pro
src/$${TARGET}.pro
# https://wiki.debian.org/Hardening
QMAKE_CFLAGS *= $(shell dpkg-buildflags --get CFLAGS)
@@ -27,32 +26,31 @@ CONFIG(release, debug | release) {
# Rules for deployment
tool.files += tool/*
tool.path = /opt/durapps/$${TARGET}/bin
tool.path = /opt/durapps/$${TARGET}/bin/
qm.files += translations/*.qm
qm.path = /usr/share/spark-store/translations
qm.path = /usr/share/$${TARGET}/translations/
#preferences.files += pkg/etc/apt/preferences.d/sparkstore
#preferences.path = /etc/apt/preferences.d
#preferences.path = /etc/apt/preferences.d/
#sourceslist.files += pkg/etc/apt/sources.list.d/sparkstore.list
#sourceslist.path = /etc/apt/sources.list.d
#sourceslist.path = /etc/apt/sources.list.d/
bash_completion.files += pkg/usr/share/bash-completion/completions/aptss
bash_completion.path = /usr/share/bash-completion/completions
bash_completion.path = /usr/share/bash-completion/completions/
desktop.files += pkg/usr/share/applications/*.desktop
desktop.path = /usr/share/applications
desktop.path = /usr/share/applications/
service.files += pkg/usr/lib/systemd/system/spark-update-notifier.service
service.path = /usr/lib/systemd/system/
service.path = /lib/systemd/system/
polkit-1.files += pkg/usr/share/polkit-1/actions/store.spark-app.ss-do-upgrade-worker.policy
polkit-1.path = /usr/share/polkit-1/actions/
icon.files += pkg/usr/share/icons/hicolor/scalable/apps/*.svg
icon.files += pkg/usr/share/icons/hicolor/scalable/apps/*.png
icon.path = /usr/share/icons/hicolor/scalable/apps
icon.files += pkg/usr/share/icons
icon.path = /usr/share/
ssinstall-transhell.files += pkg/usr/share/ssinstall/transhell
ssinstall-transhell.path = /usr/share/ssinstall/
@@ -61,7 +59,7 @@ aptss-transhell.files += pkg/usr/share/aptss/transhell
aptss-transhell.path = /usr/share/aptss/
tmp.files += pkg/tmp/spark-store-install/feedback.sh
tmp.path = /tmp/spark-store-install
tmp.path = /tmp/spark-store-install/
INSTALLS += \
tool \
@@ -75,4 +73,3 @@ INSTALLS += \
service \
bash_completion \
polkit-1
# 暂时不添加