Files
Starlight_Lancher/tools/icon_work/fix_version.py
Ap_Tx 71a8e65085
Some checks failed
Axolotl desktop CI / guardrails (push) Has been cancelled
Axolotl desktop CI / desktop (macos-latest) (push) Has been cancelled
Axolotl desktop CI / desktop (ubuntu-latest) (push) Has been cancelled
Axolotl desktop CI / desktop (windows-latest) (push) Has been cancelled
Axolotl desktop CI / website (push) Has been cancelled
Repository checks / typos (push) Has been cancelled
Repository checks / tombi (push) Has been cancelled
Rust checks / shear (push) Has been cancelled
Sync source to CNB / Sync Git ref (push) Has been cancelled
Axolotl release / Release preflight (push) Has been cancelled
Prepare pnpm cache / prepare (push) Has been cancelled
Axolotl release / Build (Windows x64) (push) Has been cancelled
Axolotl release / Build (Linux arm64) (push) Has been cancelled
Axolotl release / Build (Linux x64) (push) Has been cancelled
Axolotl release / Build (macOS universal) (push) Has been cancelled
Axolotl release / Verify and publish (push) Has been cancelled
版本名的更改
2026-09-13 15:22:55 +08:00

9 lines
327 B
Python

import json
p = r"D:\Project\Starlight_Lancher\apps\app-frontend\package.json"
data = json.load(open(p, encoding="utf-8"))
old = data["version"]
data["version"] = "1.0.0-beta1"
open(p, "w", encoding="utf-8", newline="\n").write(json.dumps(data, ensure_ascii=False, indent="\t") + "\n")
print(f"version: {old} -> 1.0.0-beta1")