forked from ZenBrowserMirrors/zen-desktop
chore: Update Visual Studio version to 2022 in alpha.yml workflow
This commit is contained in:
parent
2ea4e2feb9
commit
7ad3f41700
3 changed files with 42 additions and 3 deletions
6
.github/workflows/alpha.yml
vendored
6
.github/workflows/alpha.yml
vendored
|
@ -319,9 +319,9 @@ jobs:
|
||||||
|
|
||||||
echo Setup Visual Studio
|
echo Setup Visual Studio
|
||||||
sudo apt install -y msitools python3-pip
|
sudo apt install -y msitools python3-pip
|
||||||
./mach python --virtualenv build taskcluster/scripts/misc/get_vs.py build/vs/vs2019.yaml ~/win-cross/vs2019
|
./mach python --virtualenv build taskcluster/scripts/misc/get_vs.py build/vs/vs2022.yaml ~/win-cross/vs2022
|
||||||
|
|
||||||
chmod -R +x "$(echo ~)/win-cross/vs2019" || true
|
chmod -R +x "$(echo ~)/win-cross/vs2022" || true
|
||||||
|
|
||||||
cat ../.github/workflows/src/windows_mozconfig >> ../configs/common/mozconfig
|
cat ../.github/workflows/src/windows_mozconfig >> ../configs/common/mozconfig
|
||||||
|
|
||||||
|
@ -367,7 +367,7 @@ jobs:
|
||||||
- name: Upload artifact
|
- name: Upload artifact
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: zen.en-US.win64.zip
|
name: zen.win64.zip
|
||||||
path: ./zen.en-US.win64.zip
|
path: ./zen.en-US.win64.zip
|
||||||
|
|
||||||
- name: Upload mar
|
- name: Upload mar
|
||||||
|
|
|
@ -9,6 +9,8 @@
|
||||||
"export": "gluon export",
|
"export": "gluon export",
|
||||||
"bootstrap": "gluon download && gluon bootstrap",
|
"bootstrap": "gluon download && gluon bootstrap",
|
||||||
"package": "gluon package",
|
"package": "gluon package",
|
||||||
|
"update-ff": "python3 scripts/update_ff.py",
|
||||||
|
"update-ff:raw": "gluon update",
|
||||||
"update-newtab": "python3 update_newtab.py"
|
"update-newtab": "python3 update_newtab.py"
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
|
|
37
scripts/update_ff.py
Normal file
37
scripts/update_ff.py
Normal file
|
@ -0,0 +1,37 @@
|
||||||
|
|
||||||
|
import os
|
||||||
|
import json
|
||||||
|
|
||||||
|
last_version = "0.0.0"
|
||||||
|
new_version = "0.0.0"
|
||||||
|
|
||||||
|
def update_ff():
|
||||||
|
os.system("npm run update-ff:raw")
|
||||||
|
|
||||||
|
def get_version_before():
|
||||||
|
global last_version
|
||||||
|
with open("gluon.json", "r") as f:
|
||||||
|
data = json.load(f)
|
||||||
|
last_version = data["version"]["version"]
|
||||||
|
|
||||||
|
def get_version_after():
|
||||||
|
global new_version
|
||||||
|
with open("gluon.json", "r") as f:
|
||||||
|
data = json.load(f)
|
||||||
|
new_version = data["version"]["version"]
|
||||||
|
|
||||||
|
def update_readme():
|
||||||
|
global last_version
|
||||||
|
global new_version
|
||||||
|
with open("README.md", "r") as f:
|
||||||
|
data = f.read()
|
||||||
|
data = data.replace(last_version, new_version)
|
||||||
|
with open("README.md", "w") as f:
|
||||||
|
f.write(data)
|
||||||
|
|
||||||
|
if __name__ == "__main__":
|
||||||
|
get_version_before()
|
||||||
|
update_ff()
|
||||||
|
get_version_after()
|
||||||
|
update_readme()
|
||||||
|
print("Updated from version {} to version {}".format(last_version, new_version))
|
Loading…
Add table
Add a link
Reference in a new issue