You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
raiseException('CMakeLists.txt should set VERSION properly.')
11
+
returnmatch.group(1)
12
+
13
+
version=get_version()
14
+
ifos.system(f'git tag -a {version} -m "release {version}"') !=0:
15
+
raiseException('Failed to create git tag.')
16
+
17
+
withopen('version.jsonl') asf:
18
+
content=f.read()
19
+
20
+
withopen('version.jsonl', 'w') asf:
21
+
json.dump(get_json(version), f)
22
+
f.write('\n'+content)
23
+
24
+
major, minor, patch=version.split('.')
25
+
26
+
ifos.system(f'sed -i.bak "s/fcitx5-macos VERSION {major}\\.{minor}\\.{patch}/fcitx5-macos VERSION {major}.{minor}.{int(patch) +1}/" CMakeLists.txt') !=0:
27
+
raiseException('Failed to update version in CMakeLists.txt.')
0 commit comments