mirror of
https://gitee.com/gfdgd-xi/deep-wine-runner
synced 2026-04-03 22:20:17 +08:00
调整自动构建
This commit is contained in:
9
.github/workflows/auto-building.yml
vendored
9
.github/workflows/auto-building.yml
vendored
@@ -16,13 +16,10 @@ jobs:
|
|||||||
# 配置环境
|
# 配置环境
|
||||||
sudo apt update
|
sudo apt update
|
||||||
sudo apt install git dpkg-dev qtbase5-dev qtchooser qt5-qmake qtbase5-dev-tools qt5-qmake -y
|
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
|
cd deep-wine-runner
|
||||||
#make build
|
make build
|
||||||
#mv spark-deepin-wine-runner.deb ~
|
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
|
|
||||||
- name: upload result
|
- name: upload result
|
||||||
uses: actions/upload-artifact@v1
|
uses: actions/upload-artifact@v1
|
||||||
with:
|
with:
|
||||||
|
|||||||
@@ -1,13 +1,12 @@
|
|||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
# 更新构建时间
|
# 更新构建时间
|
||||||
import os
|
import os
|
||||||
import sys
|
|
||||||
import json
|
import json
|
||||||
import platform
|
import platform
|
||||||
import datetime
|
import datetime
|
||||||
programPath = os.path.split(os.path.realpath(__file__))[0] # 返回 string
|
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 = json.loads(file.read())
|
||||||
info["Time"] = datetime.datetime.now().strftime("%Y-%m-%d %H:%M:%S") + " " + platform.platform()
|
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))
|
file.write(json.dumps(info, ensure_ascii=False, indent=4))
|
||||||
|
|||||||
Reference in New Issue
Block a user