调整自动构建

This commit is contained in:
gfdgd xi 2023-09-30 10:17:59 +08:00
parent 96f02440ca
commit 61ea114669
2 changed files with 5 additions and 9 deletions

View File

@ -16,13 +16,10 @@ jobs:
# 配置环境
sudo apt update
sudo apt install git dpkg-dev qtbase5-dev qtchooser qt5-qmake qtbase5-dev-tools qt5-qmake -y
git clone https://github.com/gfdgd-xi/deep-wine-runner --depth=1
git clone https://github.com/gfdgd-xi/deep-wine-runner
cd deep-wine-runner
#make build
#mv spark-deepin-wine-runner.deb ~
sudo apt build-dep . -y
dpkg-buildpackage -b
cp ../spark-deepin-wine-runner_*.deb ~/spark-deepin-wine-runner.deb
make build
mv spark-deepin-wine-runner.deb ~
- name: upload result
uses: actions/upload-artifact@v1
with:

View File

@ -1,13 +1,12 @@
#!/usr/bin/env python3
# 更新构建时间
import os
import sys
import json
import platform
import datetime
programPath = os.path.split(os.path.realpath(__file__))[0] # 返回 string
with open(sys.argv[1], "r") as file:
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(sys.argv[1], "w") as file:
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))