fix:deb包丢失图标问题

This commit is contained in:
momen 2025-07-02 11:48:35 +08:00
parent 38a3b4ee4f
commit 2a88c99607
2 changed files with 2 additions and 2 deletions

2
debian/install vendored
View File

@ -1,3 +1,3 @@
build/spark-update-tool /usr/bin/
debian/spark-update-tool.desktop /usr/share/applications
resources/spark-update-tool.svg /usr/share/icons/hicolor/scalable/apps/spark-update-tool.svg
resources/128*128/spark-update-tool.png /usr/share/icons/hicolor/128x128/apps

View File

@ -57,7 +57,7 @@ int main(int argc, char *argv[])
// QGuiApplication::setHighDpiScaleFactorRoundingPolicy(Qt::HighDpiScaleFactorRoundingPolicy::PassThrough);
QApplication a(argc, argv);
QApplication::setWindowIcon(QIcon(":/resources/128*128/spark-update-tool.png"));
a.setWindowIcon(QIcon(":/resources/128*128/spark-update-tool.png"));
if (!isRoot()) {
qDebug() << "Not running as root. Attempting to elevate...";
if (!elevateToRoot()) {