mirror of
https://github.com/Hibiya615/TetoraKAScript.git
synced 2025-12-17 23:34:44 +08:00
Remove all untracked files and folders
This commit is contained in:
5
.gitignore
vendored
5
.gitignore
vendored
@@ -1,5 +0,0 @@
|
||||
*.csproj
|
||||
*.sln
|
||||
*.user
|
||||
|
||||
Provisional_Test/
|
||||
@@ -1,51 +0,0 @@
|
||||
<?xml version='1.0' encoding='utf-8'?>
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net8.0-windows</TargetFramework>
|
||||
<RootNamespace>The_Navel___EX</RootNamespace>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
<EnablePreviewFeatures>true</EnablePreviewFeatures>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup>
|
||||
<DalamudLibPath>$(appdata)\XIVLauncherCN\addon\Hooks\dev\</DalamudLibPath>
|
||||
<KodakkuLibPath>$(appdata)\XIVLauncherCN\installedPlugins\KodakkuAssist\0.1.17.0\</KodakkuLibPath>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Reference Include="Dalamud">
|
||||
<HintPath>$(DalamudLibPath)Dalamud.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Dalamud.Common">
|
||||
<HintPath>$(DalamudLibPath)Dalamud.Common.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="FFXIVClientStructs">
|
||||
<HintPath>$(DalamudLibPath)FFXIVClientStructs.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="ImGui.NET">
|
||||
<HintPath>$(DalamudLibPath)ImGui.NET.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Newtonsoft.Json">
|
||||
<HintPath>$(DalamudLibPath)Newtonsoft.Json.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Lumina">
|
||||
<HintPath>$(DalamudLibPath)Lumina.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Lumina.Excel">
|
||||
<HintPath>$(DalamudLibPath)Lumina.Excel.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="ECommons">
|
||||
<HintPath>$(KodakkuLibPath)ECommons.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="KodakkuAssist">
|
||||
<HintPath>$(KodakkuLibPath)KodakkuAssist.dll</HintPath>
|
||||
</Reference>
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Folder Include="05-Eden\Savage\" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
@@ -1,4 +0,0 @@
|
||||
@echo off
|
||||
cd /d "%~dp0"
|
||||
python update_csproj.py
|
||||
pause
|
||||
@@ -1,42 +0,0 @@
|
||||
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}")
|
||||
Reference in New Issue
Block a user