mirror of
https://gitee.com/spark-store-project/spark-store
synced 2025-10-04 09:32:21 +08:00
fix:deb包丢失图标问题
This commit is contained in:
parent
7ac6677b2d
commit
9f78ca5190
2
debian/install
vendored
2
debian/install
vendored
@ -1,3 +1,3 @@
|
|||||||
build/spark-update-tool /usr/bin/
|
build/spark-update-tool /usr/bin/
|
||||||
debian/spark-update-tool.desktop /usr/share/applications
|
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
|
||||||
|
@ -57,7 +57,7 @@ int main(int argc, char *argv[])
|
|||||||
// QGuiApplication::setHighDpiScaleFactorRoundingPolicy(Qt::HighDpiScaleFactorRoundingPolicy::PassThrough);
|
// QGuiApplication::setHighDpiScaleFactorRoundingPolicy(Qt::HighDpiScaleFactorRoundingPolicy::PassThrough);
|
||||||
|
|
||||||
QApplication a(argc, argv);
|
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()) {
|
if (!isRoot()) {
|
||||||
qDebug() << "Not running as root. Attempting to elevate...";
|
qDebug() << "Not running as root. Attempting to elevate...";
|
||||||
if (!elevateToRoot()) {
|
if (!elevateToRoot()) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user