mirror of
https://gitee.com/gfdgd-xi/deep-wine-runner
synced 2025-11-03 23:12:24 +08:00
调整自动构建
This commit is contained in:
parent
96f02440ca
commit
61ea114669
9
.github/workflows/auto-building.yml
vendored
9
.github/workflows/auto-building.yml
vendored
@ -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:
|
||||
|
||||
@ -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))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user