Files
Starlight_Lancher/tools/icon_work/fix_copyright.py
Ap_Tx 5b2cc3f94e
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
feat:一些版权描述的语言
2026-09-13 14:01:04 +08:00

21 lines
823 B
Python

f1 = r"D:\Project\Starlight_Lancher\apps\app-frontend\src\components\ui\settings\AboutSettings.vue"
t1 = open(f1, encoding="utf-8").read()
old1 = "defaultMessage: 'Copyright © Starlight All Rights Reserved.',"
new1 = "defaultMessage: 'Copyright © Axolotl All Rights Reserved.',"
assert old1 in t1, "AboutSettings 找不到版权行"
t1 = t1.replace(old1, new1, 1)
open(f1, "w", encoding="utf-8", newline="\n").write(t1)
f2 = r"D:\Project\Starlight_Lancher\apps\app-frontend\src\pages\Settings.vue"
t2 = open(f2, encoding="utf-8").read()
old2 = "Powered by Starlight"
new2 = "Powered by Axolotl"
assert old2 in t2, "Settings 找不到 Powered by 行"
t2 = t2.replace(old2, new2, 1)
open(f2, "w", encoding="utf-8", newline="\n").write(t2)
print("done")
print("AboutSettings:142 ->", new1)
print("Settings:379 ->", new2)