From 18f24aeffaa6f8300c94c8b8b8d28a6686635d2b Mon Sep 17 00:00:00 2001 From: LaoSparrow Date: Mon, 2 Sep 2024 21:09:17 +0800 Subject: [PATCH 1/2] fix(workflows): build.yml GetText.Extractor not found --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 245c8e36..7597012a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -119,7 +119,7 @@ jobs: foreach ($p in @(Get-ChildItem src/**/*.csproj)) { $pot = [System.IO.Path]::Combine($p.DirectoryName, "i18n", "template.pot") New-Item -Path $p.DirectoryName -Name i18n -ItemType Directory - GetText.Extractor -u -o -s $p.FullName -t $pot + dotnet tool run GetText.Extractor -u -o -s $p.FullName -t $pot $d = $(git diff --numstat $pot).Split() if ($d[0] -le 2 -and $d[1] -le 2) { git checkout $pot From 11bef48290d86ff089a1e36f3ffdaf95edc560cc Mon Sep 17 00:00:00 2001 From: LaoSparrow Date: Mon, 2 Sep 2024 21:15:06 +0800 Subject: [PATCH 2/2] chore: remove useless i18n directory inclusion in csproj --- src/AutoPluginManager/AutoPluginManager.csproj | 3 --- src/Autoclear/Autoclear.csproj | 4 ---- src/VeinMiner/VeinMiner.csproj | 3 --- 3 files changed, 10 deletions(-) diff --git a/src/AutoPluginManager/AutoPluginManager.csproj b/src/AutoPluginManager/AutoPluginManager.csproj index bd11b4e3..adb65fe8 100644 --- a/src/AutoPluginManager/AutoPluginManager.csproj +++ b/src/AutoPluginManager/AutoPluginManager.csproj @@ -1,6 +1,3 @@  - - - \ No newline at end of file diff --git a/src/Autoclear/Autoclear.csproj b/src/Autoclear/Autoclear.csproj index 9154033a..f489ab64 100644 --- a/src/Autoclear/Autoclear.csproj +++ b/src/Autoclear/Autoclear.csproj @@ -2,8 +2,4 @@ - - - - \ No newline at end of file diff --git a/src/VeinMiner/VeinMiner.csproj b/src/VeinMiner/VeinMiner.csproj index 4eb0d2a7..c04234e7 100644 --- a/src/VeinMiner/VeinMiner.csproj +++ b/src/VeinMiner/VeinMiner.csproj @@ -1,6 +1,3 @@  - - - \ No newline at end of file