diff --git a/VERSION b/VERSION
deleted file mode 100644
index f8f3c08..0000000
--- a/VERSION
+++ /dev/null
@@ -1 +0,0 @@
-1.0.18
diff --git a/lightening.ico b/lightening.ico
deleted file mode 100644
index 7195d9b..0000000
Binary files a/lightening.ico and /dev/null differ
diff --git a/metadata.yml b/metadata.yml
deleted file mode 100644
index e0eb444..0000000
--- a/metadata.yml
+++ /dev/null
@@ -1,4 +0,0 @@
-version: 1.0.18
-company_name: EGM
-file_description: EGM Lightning Protection Calculator
-product_name: Lightening
diff --git a/update_version.py b/update_version.py
index d6f3558..f456cbc 100644
--- a/update_version.py
+++ b/update_version.py
@@ -1,6 +1,5 @@
#!/usr/bin/env python3
"""更新版本号脚本"""
-import re
import sys
from pathlib import Path
@@ -20,22 +19,6 @@ def increment_version(version: str) -> str:
return version
-def update_index_html(version: str):
- """更新 webui/index.html 中的标题版本号"""
- index_file = Path(__file__).parent / "webui" / "index.html"
- content = index_file.read_text(encoding="utf-8")
-
- # 替换标题中的版本号
- new_content = re.sub(
- r"
EGM 输电线路绕击跳闸率计算( v[\d.]+)?",
- f"EGM 输电线路绕击跳闸率计算 v{version}",
- content
- )
-
- index_file.write_text(new_content, encoding="utf-8")
- print(f"Updated version in {index_file} to v{version}")
-
-
def update_version_file(version: str):
"""更新 VERSION 文件"""
version_file = Path(__file__).parent / "VERSION"
@@ -66,7 +49,6 @@ def main():
# 更新所有文件
update_version_file(new_version)
- update_index_html(new_version)
create_metadata(new_version)
print(f"Version updated: {current_version} -> {new_version}")
diff --git a/webui/index.html b/webui/index.html
index 47f5d6f..4b952a6 100644
--- a/webui/index.html
+++ b/webui/index.html
@@ -4,7 +4,7 @@
- EGM 输电线路绕击跳闸率计算 v1.0.22
+ EGM 输电线路绕击跳闸率计算
diff --git a/webui/vite.config.ts b/webui/vite.config.ts
index e52a6b3..3c13389 100644
--- a/webui/vite.config.ts
+++ b/webui/vite.config.ts
@@ -15,7 +15,16 @@ export default defineConfig({
vue({
template: { transformAssetUrls }
}),
- quasar()
+ quasar(),
+ {
+ name: 'html-version',
+ transformIndexHtml(html) {
+ return html.replace(
+ /EGM 输电线路绕击跳闸率计算( v[\d.]+)?<\/title>/,
+ `EGM 输电线路绕击跳闸率计算 v${version}`
+ )
+ }
+ }
],
resolve: {
alias: {