diff --git a/Icon/deepin-wine-runner.svg b/Icon/deepin-wine-runner.svg
new file mode 100755
index 0000000..c404135
--- /dev/null
+++ b/Icon/deepin-wine-runner.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/Resources.qrc b/Resources.qrc
index 98f4baa..24afbeb 100644
--- a/Resources.qrc
+++ b/Resources.qrc
@@ -7,5 +7,6 @@
Icon/MessageBox/dialog-ok.svg
Icon/MessageBox/dialog-question.svg
Icon/MessageBox/dialog-warning.svg
+ Icon/deepin-wine-runner.svg
diff --git a/aptss-installer.pro b/aptss-installer.pro
index 531aac0..e865811 100644
--- a/aptss-installer.pro
+++ b/aptss-installer.pro
@@ -2,7 +2,7 @@ QT += core gui
PKGCONFIG += dtkcore dtkgui dtkwidget
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
-
+VERSION = 1.0.0
CONFIG += c++17 link_pkgconfig
# You can make your code fail to compile if it uses deprecated APIs.
diff --git a/deepin-wine-runner.svg b/deepin-wine-runner.svg
new file mode 100755
index 0000000..c404135
--- /dev/null
+++ b/deepin-wine-runner.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/main.cpp b/main.cpp
index d51960d..8a3406e 100644
--- a/main.cpp
+++ b/main.cpp
@@ -5,6 +5,7 @@
#include
#include
#include
+#include
using namespace Dtk::Widget;
using namespace std;
@@ -20,9 +21,20 @@ int main(int argc, char *argv[])
}
int fakeArgc = argc + 2;
DApplication a(fakeArgc, fakeArgs.data());
+ a.setApplicationLicense("GPLV3");
+ a.setOrganizationName("gfdgd_xi");
+ a.setApplicationName("deepin-wine-runner-aptss-installer");
+ a.setWindowIcon(QIcon(":/Icon/deepin-wine-runner.svg"));
+ a.setApplicationDescription("Wine运行器是一个能让Linux用户更加方便地运行Windows应用的程序。原版的 Wine 只能使用命令操作,且安装过程较为繁琐,对小白不友好。于是该运行器为了解决该痛点,内置了对Wine图形化的支持、Wine 安装器、微型应用商店、各种Wine工具、自制的Wine程序打包器、运行库安装工具等。");
+ a.setApplicationVersion("3.6.1");
+ a.setProductIcon(QIcon(":/Icon/deepin-wine-runner.svg"));
+ a.setProductName("aptss 安装器");
+ a.setApplicationHomePage("https://gitee.com/gfdgd-xi/deep-wine-runner");
+ //DApplication::setApplicationHomePage("https://gitee.com/gfdgd-xi/deep-wine-runner");
DApplication::setOrganizationName("gfdgd_xi");
DApplication::setApplicationName("deepin-wine-runner-aptss-installer");
+
if(system("which aptss")){
DMessageBox::information(NULL, "错误", "无法检测到 aptss\n请确保您已安装星火应用商店并更新至最新版本");
return 1;
@@ -37,6 +49,7 @@ int main(int argc, char *argv[])
break;
}
}
+ DApplicationSettings settings; // 定义 DApplicationSettings,自动保存主题设置
MainWindow w;
w.show();
return a.exec();
diff --git a/mainwindow.ui b/mainwindow.ui
index baff2a4..ad139b2 100644
--- a/mainwindow.ui
+++ b/mainwindow.ui
@@ -13,6 +13,10 @@
MainWindow
+
+
+ :/Icon/deepin-wine-runner.svg:/Icon/deepin-wine-runner.svg
+
-
@@ -57,6 +61,8 @@
-
+
+
+