Skip to content

Commit

Permalink
修正对.gdextension的信息更新
Browse files Browse the repository at this point in the history
  • Loading branch information
Daylily-Zeleen committed Feb 10, 2025
1 parent 67fc8d3 commit beb02ae
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions SConstruct
Original file line number Diff line number Diff line change
Expand Up @@ -97,10 +97,10 @@ def _on_complete(target, source, env):
version: str = open("version", "r").readline().strip()

for i in range(len(lines)):
if lines[i].startswith('version = "') and lines[i].endswith('"\n'):
lines[i] = f'version = "{version}"\n'
if lines[i].startswith('version = ') and lines[i].endswith('\n'):
lines[i] = f'version = {version}\n'
if lines[i].startswith("compatibility_minimum") and lines[i].endswith('\n'):
lines[i] = f'compatibility_minimum = "{_get_min_compatible_version()}"\n'
lines[i] = f'compatibility_minimum = {_get_min_compatible_version()}\n'
break

with open(extension_file, "w", encoding="utf8") as f:
Expand Down

0 comments on commit beb02ae

Please sign in to comment.