mirror of
https://github.com/quiple/galmuri.git
synced 2024-08-17 01:41:09 +03:00
Update
This commit is contained in:
parent
b8091ef574
commit
8b2c5c9a5b
4
.github/workflows/release.yml
vendored
4
.github/workflows/release.yml
vendored
@ -85,8 +85,8 @@ jobs:
|
|||||||
|
|
||||||
- name: Update npm package version
|
- name: Update npm package version
|
||||||
run: |
|
run: |
|
||||||
python files/version.py dist/Galmuri11.bdf package.json
|
python files/version.py files/g11.fea package.json
|
||||||
python files/version.py dist/Galmuri11.bdf package-lock.json
|
python files/version.py files/g11.fea package-lock.json
|
||||||
|
|
||||||
- name: Get npm package version
|
- name: Get npm package version
|
||||||
id: package-version
|
id: package-version
|
||||||
|
@ -7,10 +7,10 @@ b = sys.argv[1]
|
|||||||
f = sys.argv[2]
|
f = sys.argv[2]
|
||||||
|
|
||||||
with open(b, 'rt', encoding='utf8') as before:
|
with open(b, 'rt', encoding='utf8') as before:
|
||||||
mod = re.findall(r'FONT_VERSION\s(\d+\.\d+\.\d+)', before.read())
|
mod = re.findall(r'FontRevision\s+(\d\.\d{3})', before.read())
|
||||||
|
|
||||||
with open(f, 'rt', encoding='utf8') as after:
|
with open(f, 'rt', encoding='utf8') as after:
|
||||||
ver = re.sub(r'"version": "(\d+\.\d+\.\d+)"', '"version": "' + mod[0] + '"', after.read())
|
ver = re.sub(r'"version": "(\d+\.\d+\.\d+)"', '"version": "' + mod[0][:4] + '.' + mod[0][-1:] + '"', after.read())
|
||||||
|
|
||||||
with open(f, 'wt', encoding='utf8') as write:
|
with open(f, 'wt', encoding='utf8') as write:
|
||||||
write.write(ver)
|
write.write(ver)
|
||||||
|
Loading…
Reference in New Issue
Block a user