mirror of
https://github.com/quiple/galmuri.git
synced 2024-10-05 18:07:24 +03:00
update version
This commit is contained in:
parent
e6e555a573
commit
6f141b33f2
17
.github/workflows/release.yml
vendored
17
.github/workflows/release.yml
vendored
@ -47,6 +47,18 @@ jobs:
|
||||
rm -rf dist/*.ttf
|
||||
rm -rf dist/*.woff2
|
||||
|
||||
- name: Update version
|
||||
run: |
|
||||
python files/version.py files/g11.fea package.json
|
||||
python files/version.py files/g11.fea package-lock.json
|
||||
python files/versionBits.py files/g11.fea src/Galmuri14.kbitx
|
||||
python files/versionBits.py files/g11.fea src/Galmuri14-Rounded.kbitx
|
||||
python files/versionBits.py files/g11.fea src/Galmuri11.kbitx
|
||||
python files/versionBits.py files/g11.fea src/Galmuri11-Bold.kbitx
|
||||
python files/versionBits.py files/g11.fea src/Galmuri11-Condensed.kbitx
|
||||
python files/versionBits.py files/g11.fea src/Galmuri9.kbitx
|
||||
python files/versionBits.py files/g11.fea src/Galmuri7.kbitx
|
||||
|
||||
- name: Convert to BDF font
|
||||
run: |
|
||||
java -jar bitsnpicas/downloads/BitsNPicas.jar convertbitmap -f bdf -o dist/Galmuri14.bdf src/Galmuri14.kbitx
|
||||
@ -78,11 +90,6 @@ jobs:
|
||||
fonttools ttLib.woff2 compress dist/Galmuri9.ttf
|
||||
fonttools ttLib.woff2 compress dist/Galmuri7.ttf
|
||||
|
||||
- name: Update npm package version
|
||||
run: |
|
||||
python files/version.py files/g11.fea package.json
|
||||
python files/version.py files/g11.fea package-lock.json
|
||||
|
||||
- name: Get npm package version
|
||||
id: package-version
|
||||
uses: martinbeentjes/npm-get-version-action@main
|
||||
|
16
files/versionBits.py
Normal file
16
files/versionBits.py
Normal file
@ -0,0 +1,16 @@
|
||||
#!/usr/bin/env python
|
||||
|
||||
import sys
|
||||
import re
|
||||
|
||||
b = sys.argv[1]
|
||||
f = sys.argv[2]
|
||||
|
||||
with open(b, 'rt', encoding='utf8') as before:
|
||||
mod = re.findall(r'FontRevision\s+(\d\.\d{3})', before.read())
|
||||
|
||||
with open(f, 'rt', encoding='utf8') as after:
|
||||
ver = re.sub(r'<name id="5" value="(\d+\.\d+)"/>', '<name id="5" value="' + mod[0] + '"/>', after.read())
|
||||
|
||||
with open(f, 'wt', encoding='utf8') as write:
|
||||
write.write(ver)
|
@ -13,7 +13,7 @@
|
||||
<name id="2" value="Bold"/>
|
||||
<name id="3" value="BitsNPicas: Galmuri: 2023"/>
|
||||
<name id="4" value="Galmuri11 Bold"/>
|
||||
<name id="5" value="2.26.35"/>
|
||||
<name id="5" value="2.349"/>
|
||||
<name id="6" value="Galmuri11-Bold"/>
|
||||
<name id="7" value="Quiple is a trademark of Minseo Lee."/>
|
||||
<name id="8" value="Made with Bits'n'Picas by Kreative Software"/>
|
||||
|
@ -13,7 +13,7 @@
|
||||
<name id="2" value="Condensed"/>
|
||||
<name id="3" value="BitsNPicas: Galmuri: 2023"/>
|
||||
<name id="4" value="Galmuri11 Condensed"/>
|
||||
<name id="5" value="2.26.35"/>
|
||||
<name id="5" value="2.349"/>
|
||||
<name id="6" value="Galmuri11-Condensed"/>
|
||||
<name id="7" value="Quiple is a trademark of Minseo Lee."/>
|
||||
<name id="8" value="Made with Bits'n'Picas by Kreative Software"/>
|
||||
|
@ -13,7 +13,7 @@
|
||||
<name id="2" value="Regular"/>
|
||||
<name id="3" value="BitsNPicas: Galmuri: 2023"/>
|
||||
<name id="4" value="Galmuri11 Regular"/>
|
||||
<name id="5" value="2.33.2"/>
|
||||
<name id="5" value="2.349"/>
|
||||
<name id="6" value="Galmuri11-Regular"/>
|
||||
<name id="7" value="Quiple is a trademark of Minseo Lee."/>
|
||||
<name id="8" value="Made with Bits'n'Picas by Kreative Software"/>
|
||||
|
@ -13,7 +13,7 @@
|
||||
<name id="2" value="Regular"/>
|
||||
<name id="3" value="BitsNPicas: Galmuri: 2023"/>
|
||||
<name id="4" value="Galmuri14 Rounded"/>
|
||||
<name id="5" value="2.33.2"/>
|
||||
<name id="5" value="2.349"/>
|
||||
<name id="6" value="Galmuri14-Rounded"/>
|
||||
<name id="7" value="Quiple is a trademark of Minseo Lee."/>
|
||||
<name id="8" value="Made with Bits'n'Picas by Kreative Software"/>
|
||||
|
@ -13,7 +13,7 @@
|
||||
<name id="2" value="Regular"/>
|
||||
<name id="3" value="BitsNPicas: Galmuri: 2023"/>
|
||||
<name id="4" value="Galmuri14 Regular"/>
|
||||
<name id="5" value="2.33.2"/>
|
||||
<name id="5" value="2.349"/>
|
||||
<name id="6" value="Galmuri14-Regular"/>
|
||||
<name id="7" value="Quiple is a trademark of Minseo Lee."/>
|
||||
<name id="8" value="Made with Bits'n'Picas by Kreative Software"/>
|
||||
|
@ -13,7 +13,7 @@
|
||||
<name id="2" value="Regular"/>
|
||||
<name id="3" value="BitsNPicas: Galmuri: 2023"/>
|
||||
<name id="4" value="Galmuri7 Regular"/>
|
||||
<name id="5" value="2.26.35"/>
|
||||
<name id="5" value="2.349"/>
|
||||
<name id="6" value="Galmuri7-Regular"/>
|
||||
<name id="7" value="Quiple is a trademark of Minseo Lee."/>
|
||||
<name id="8" value="Made with Bits'n'Picas by Kreative Software"/>
|
||||
|
@ -13,7 +13,7 @@
|
||||
<name id="2" value="Regular"/>
|
||||
<name id="3" value="BitsNPicas: Galmuri: 2023"/>
|
||||
<name id="4" value="Galmuri9 Regular"/>
|
||||
<name id="5" value="2.33.2"/>
|
||||
<name id="5" value="2.349"/>
|
||||
<name id="6" value="Galmuri9-Regular"/>
|
||||
<name id="7" value="Quiple is a trademark of Minseo Lee."/>
|
||||
<name id="8" value="Made with Bits'n'Picas by Kreative Software"/>
|
||||
|
Loading…
Reference in New Issue
Block a user