版本更新

This commit is contained in:
南沢响也
2025-02-23 19:59:34 +08:00
parent 7e461be45d
commit de58a0559d
9 changed files with 60 additions and 7 deletions

View File

@@ -576,7 +576,7 @@ public class the_Palace_of_the_Dead
var dp = accessory.Data.GetDefaultDrawProperties(); var dp = accessory.Data.GetDefaultDrawProperties();
dp.Name = "熔岩爆弹怪_震撼弹预测"; dp.Name = "熔岩爆弹怪_震撼弹预测";
dp.Color = new Vector4(0f, 0f, 1f, 1f); dp.Color = new Vector4(0f, 0f, 1f, 1.5f);
dp.Scale = new Vector2(7.2f); dp.Scale = new Vector2(7.2f);
dp.Delay = 45000; dp.Delay = 45000;
dp.DestoryAt = 9000; dp.DestoryAt = 9000;

View File

@@ -4,6 +4,7 @@
"Guid": "d3d532f1-0707-427f-ac04-871a22022c11", "Guid": "d3d532f1-0707-427f-ac04-871a22022c11",
"Version": "0.0.0.1", "Version": "0.0.0.1",
"Author": "南雲鉄虎", "Author": "南雲鉄虎",
"TerritoryIds": [292],
"DownloadUrl": "https://raw.githubusercontent.com/Hibiya615/TetoraKAScript/refs/heads/main/02-A-Realm-Reborn/the_Bowl_of_Embers(Hard).cs", "DownloadUrl": "https://raw.githubusercontent.com/Hibiya615/TetoraKAScript/refs/heads/main/02-A-Realm-Reborn/the_Bowl_of_Embers(Hard).cs",
"UpdateInfo": "" "UpdateInfo": ""
}, },
@@ -13,6 +14,7 @@
"Guid": "d32d7489-a1bb-4117-98dd-ee895390804d", "Guid": "d32d7489-a1bb-4117-98dd-ee895390804d",
"Version": "0.0.0.1", "Version": "0.0.0.1",
"Author": "南雲鉄虎", "Author": "南雲鉄虎",
"TerritoryIds": [369],
"DownloadUrl": "https://raw.githubusercontent.com/Hibiya615/TetoraKAScript/refs/heads/main/02-A-Realm-Reborn/the_Hydra.cs", "DownloadUrl": "https://raw.githubusercontent.com/Hibiya615/TetoraKAScript/refs/heads/main/02-A-Realm-Reborn/the_Hydra.cs",
"UpdateInfo": "" "UpdateInfo": ""
}, },
@@ -22,6 +24,7 @@
"Guid": "8a526afb-eefd-44ec-a105-7dc8fcd28e47", "Guid": "8a526afb-eefd-44ec-a105-7dc8fcd28e47",
"Version": "0.0.0.1", "Version": "0.0.0.1",
"Author": "南雲鉄虎", "Author": "南雲鉄虎",
"TerritoryIds": [1140],
"DownloadUrl": "https://raw.githubusercontent.com/Hibiya615/TetoraKAScript/refs/heads/main/06-EndWalker/the_Voidcast_Dais.cs", "DownloadUrl": "https://raw.githubusercontent.com/Hibiya615/TetoraKAScript/refs/heads/main/06-EndWalker/the_Voidcast_Dais.cs",
"UpdateInfo": "" "UpdateInfo": ""
}, },
@@ -31,6 +34,7 @@
"Guid": "038e00e8-d378-4f43-89ab-e27df5561d5a", "Guid": "038e00e8-d378-4f43-89ab-e27df5561d5a",
"Version": "0.0.0.1", "Version": "0.0.0.1",
"Author": "南雲鉄虎", "Author": "南雲鉄虎",
"TerritoryIds": [943],
"DownloadUrl": "https://raw.githubusercontent.com/Hibiya615/TetoraKAScript/refs/heads/main/05-Eden/Normal/E10n.cs", "DownloadUrl": "https://raw.githubusercontent.com/Hibiya615/TetoraKAScript/refs/heads/main/05-Eden/Normal/E10n.cs",
"UpdateInfo": "" "UpdateInfo": ""
}, },
@@ -40,6 +44,7 @@
"Guid": "4210c323-eba4-4d67-a7e7-b90799494729", "Guid": "4210c323-eba4-4d67-a7e7-b90799494729",
"Version": "0.0.0.1", "Version": "0.0.0.1",
"Author": "南雲鉄虎", "Author": "南雲鉄虎",
"TerritoryIds": [561,562,563,564,565,593,594,595,596,597,598,599,600,601,602,603,604,605,606,607],
"DownloadUrl": "https://raw.githubusercontent.com/Hibiya615/TetoraKAScript/refs/heads/main/Deep_Dungeon/the_Palace_of_the_Dead.cs", "DownloadUrl": "https://raw.githubusercontent.com/Hibiya615/TetoraKAScript/refs/heads/main/Deep_Dungeon/the_Palace_of_the_Dead.cs",
"UpdateInfo": "" "UpdateInfo": ""
@@ -50,6 +55,7 @@
"Guid": "7703f1a9-5698-4896-8908-bb8e415c1321", "Guid": "7703f1a9-5698-4896-8908-bb8e415c1321",
"Version": "0.0.0.1", "Version": "0.0.0.1",
"Author": "南雲鉄虎", "Author": "南雲鉄虎",
"TerritoryIds": [796],
"DownloadUrl": "https://raw.githubusercontent.com/Hibiya615/TetoraKAScript/refs/heads/main/Celestium/18-Midsummer_Night's_Explosion.cs", "DownloadUrl": "https://raw.githubusercontent.com/Hibiya615/TetoraKAScript/refs/heads/main/Celestium/18-Midsummer_Night's_Explosion.cs",
"UpdateInfo": "" "UpdateInfo": ""

View File

@@ -1,4 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk"> <?xml version='1.0' encoding='utf-8'?>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup> <PropertyGroup>
<TargetFramework>net8.0-windows</TargetFramework> <TargetFramework>net8.0-windows</TargetFramework>
@@ -10,7 +11,7 @@
<PropertyGroup> <PropertyGroup>
<DalamudLibPath>$(appdata)\XIVLauncherCN\addon\Hooks\dev\</DalamudLibPath> <DalamudLibPath>$(appdata)\XIVLauncherCN\addon\Hooks\dev\</DalamudLibPath>
<KodakkuLibPath>$(appdata)\XIVLauncherCN\installedPlugins\KodakkuAssist\0.1.15.0\</KodakkuLibPath> <KodakkuLibPath>$(appdata)\XIVLauncherCN\installedPlugins\KodakkuAssist\0.1.17.0\</KodakkuLibPath>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>

View File

@@ -13,7 +13,7 @@ using System.Reflection;
[assembly: System.Reflection.AssemblyCompanyAttribute("TetoraKodakkuScript")] [assembly: System.Reflection.AssemblyCompanyAttribute("TetoraKodakkuScript")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")] [assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")] [assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+95222e0dd36789d7fdd37bff20f033a47b0e3bff")] [assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+7e461be45d2c27be6f6d047d6b474302abc2396f")]
[assembly: System.Reflection.AssemblyProductAttribute("TetoraKodakkuScript")] [assembly: System.Reflection.AssemblyProductAttribute("TetoraKodakkuScript")]
[assembly: System.Reflection.AssemblyTitleAttribute("TetoraKodakkuScript")] [assembly: System.Reflection.AssemblyTitleAttribute("TetoraKodakkuScript")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")] [assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]

View File

@@ -1 +1 @@
0d2c11b90053c3fd2a4bb09abf9e70c4d9d2d031e732d14a20d6d123534622e5 2f2d257148330ad249e2c70c3912ba5fa928b7551ef2772237c79fb3df98ce27

4
update.bat Normal file
View File

@@ -0,0 +1,4 @@
@echo off
cd /d "%~dp0"
python update_csproj.py
pause

42
update_csproj.py Normal file
View File

@@ -0,0 +1,42 @@
import os
import re
import xml.etree.ElementTree as ET
APPDATA = os.getenv('APPDATA')
KODAKKU_PATH = os.path.join(APPDATA, "XIVLauncherCN", "installedPlugins", "KodakkuAssist")
if not os.path.exists(KODAKKU_PATH):
print(f"❌ 目录不存在: {KODAKKU_PATH}")
exit(1)
versions = [d for d in os.listdir(KODAKKU_PATH) if re.match(r'^\d+\.\d+\.\d+\.\d+$', d)]
if not versions:
print("❌ 未找到任何 KodakkuAssist 版本文件夹")
exit(1)
latest_version = sorted(versions, key=lambda v: list(map(int, v.split('.'))), reverse=True)[0]
print(f"✅ 发现最新版本: {latest_version}")
#下面改成你的csproj文件名
CSPROJ_FILE = "TetoraKodakkuScript.csproj"
if not os.path.exists(CSPROJ_FILE):
print(f"❌ 未找到 .csproj 文件: {CSPROJ_FILE}")
exit(1)
tree = ET.parse(CSPROJ_FILE)
root = tree.getroot()
ns = {"msbuild": "http://schemas.microsoft.com/developer/msbuild/2003"}
ET.register_namespace('', ns["msbuild"])
for prop_group in root.findall("PropertyGroup", ns):
kodakku_elem = prop_group.find("KodakkuLibPath", ns)
if kodakku_elem is not None:
old_path = kodakku_elem.text
new_path = f"$(appdata)\\XIVLauncherCN\\installedPlugins\\KodakkuAssist\\{latest_version}\\"
kodakku_elem.text = new_path
print(f"🔄 替换路径: \n旧 -> {old_path}\n新 -> {new_path}")
break
tree.write(CSPROJ_FILE, encoding="utf-8", xml_declaration=True)
print(f"✅ 更新成功: {CSPROJ_FILE}")