mirror of
https://gitee.com/gfdgd-xi/deep-wine-runner
synced 2025-01-12 17:48:27 +08:00
新增安装包构建时间
This commit is contained in:
parent
fd78edd2f7
commit
baf3fbefdd
1
Makefile
1
Makefile
@ -109,6 +109,7 @@ package:
|
|||||||
cp -rv RemoveQemuUser.sh deb/opt/apps/deepin-wine-runner
|
cp -rv RemoveQemuUser.sh deb/opt/apps/deepin-wine-runner
|
||||||
cp -rv InstallBox86.sh deb/opt/apps/deepin-wine-runner
|
cp -rv InstallBox86.sh deb/opt/apps/deepin-wine-runner
|
||||||
cp -rv InstallRuntime deb/opt/apps/deepin-wine-runner
|
cp -rv InstallRuntime deb/opt/apps/deepin-wine-runner
|
||||||
|
python3 UpdateTime.py
|
||||||
python3 RemovePycacheFile.py
|
python3 RemovePycacheFile.py
|
||||||
cp -rv deb /tmp/spark-deepin-wine-runner-builder
|
cp -rv deb /tmp/spark-deepin-wine-runner-builder
|
||||||
mkdir -pv /tmp/spark-deepin-wine-runner-builder/usr/bin
|
mkdir -pv /tmp/spark-deepin-wine-runner-builder/usr/bin
|
||||||
|
12
UpdateTime.py
Normal file
12
UpdateTime.py
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
#!/usr/bin/env python3
|
||||||
|
# 更新构建时间
|
||||||
|
import os
|
||||||
|
import json
|
||||||
|
import platform
|
||||||
|
import datetime
|
||||||
|
programPath = os.path.split(os.path.realpath(__file__))[0] # 返回 string
|
||||||
|
with open(f"{programPath}/deb/opt/apps/deepin-wine-runner/information.json", "r") as file:
|
||||||
|
info = json.loads(file.read())
|
||||||
|
info["Time"] = datetime.datetime.now().strftime("%Y-%m-%d %H:%M:%S") + " " + platform.platform()
|
||||||
|
with open(f"{programPath}/deb/opt/apps/deepin-wine-runner/information.json", "w") as file:
|
||||||
|
file.write(json.dumps(info, ensure_ascii=False, indent=4))
|
@ -68,6 +68,7 @@ MainWindow::MainWindow(QWidget *parent) :
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
QJsonObject versionObject = doc.object();
|
QJsonObject versionObject = doc.object();
|
||||||
|
QJsonValue buildTime = versionObject.value("Time");
|
||||||
QJsonValue versionValue = versionObject.value("Version");
|
QJsonValue versionValue = versionObject.value("Version");
|
||||||
QJsonArray thank = versionObject.value("Thank").toArray();
|
QJsonArray thank = versionObject.value("Thank").toArray();
|
||||||
QString thankText = "";
|
QString thankText = "";
|
||||||
@ -79,7 +80,8 @@ MainWindow::MainWindow(QWidget *parent) :
|
|||||||
// 设置程序标题
|
// 设置程序标题
|
||||||
this->setWindowTitle("Windows 应用适配工具 " + versionValue.toString());
|
this->setWindowTitle("Windows 应用适配工具 " + versionValue.toString());
|
||||||
// 读取谢明列表
|
// 读取谢明列表
|
||||||
ui->textBrowser_2->setHtml("<p>程序版本号:" + versionValue.toString() + ", " + GetRunCommand("arch") + "</p>" + ui->textBrowser_2->toHtml() +
|
ui->textBrowser_2->setHtml("<p>程序版本号:" + versionValue.toString() + ", " + GetRunCommand("arch") + "</p><p>安装包构建时间:" + buildTime.toString() + "</p><p>该组件构建时间:"
|
||||||
|
+ __DATE__ + " " + __TIME__ + "</p>" + ui->textBrowser_2->toHtml() +
|
||||||
"<hr/><h1>谢明列表</h1>" + thankText);
|
"<hr/><h1>谢明列表</h1>" + thankText);
|
||||||
connect(ui->textBrowser_2, &QTextBrowser::anchorClicked, this, [=](const QUrl &link){
|
connect(ui->textBrowser_2, &QTextBrowser::anchorClicked, this, [=](const QUrl &link){
|
||||||
QDesktopServices::openUrl(link);
|
QDesktopServices::openUrl(link);
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
{
|
{
|
||||||
"Version": "3.2.1",
|
"Version": "3.2.1",
|
||||||
|
"Time": "未知",
|
||||||
"Thank": [
|
"Thank": [
|
||||||
"感谢 RacoonGX 的付出与贡献",
|
"感谢 RacoonGX 的付出与贡献",
|
||||||
"感谢 @Amber 编写的《使用wine运行器打包无安装包的软件》:https://bbs.deepin.org/post/247720",
|
"感谢 @Amber 编写的《使用wine运行器打包无安装包的软件》:https://bbs.deepin.org/post/247720",
|
||||||
|
@ -2444,6 +2444,7 @@ a:link, a:active {{
|
|||||||
|
|
||||||
版本:{version}
|
版本:{version}
|
||||||
适用平台:{goodRunSystem}(@VersionForType@)
|
适用平台:{goodRunSystem}(@VersionForType@)
|
||||||
|
安装包构建时间:{information['Time']}
|
||||||
Qt 版本:{QtCore.qVersion()}
|
Qt 版本:{QtCore.qVersion()}
|
||||||
程序官网:{programUrl}
|
程序官网:{programUrl}
|
||||||
当前程序占用体积:@programSize@MB</pre>
|
当前程序占用体积:@programSize@MB</pre>
|
||||||
|
Loading…
Reference in New Issue
Block a user