Make Guardian in separate 'tool' folder to avoid skill issue

This commit is contained in:
YYHEggEgg 2024-06-10 09:24:35 +08:00
parent 79be93f425
commit 196c6e3507
3 changed files with 6 additions and 4 deletions

View file

@ -30,7 +30,9 @@ jobs:
- name: Publish
run: dotnet publish FireflySR.Tool.Proxy.csproj -c Release -r ${{ matrix.runtime-id }}
- name: Remove .pdb debug symbols
run: rm bin/Release/net8.0/${{ matrix.runtime-id }}/publish/*.pdb
run: |
rm bin/Release/net8.0/${{ matrix.runtime-id }}/publish/*.pdb
rm bin/Release/net8.0/${{ matrix.runtime-id }}/publish/**/*.pdb
- name: Upload
uses: actions/upload-artifact@v4
with:

View file

@ -30,8 +30,8 @@
</ItemGroup>
<Target Name="PreBuild" BeforeTargets="PreBuildEvent" Condition="$(Os) == 'Windows_NT'">
<Exec Condition="$(RuntimeIdentifier) == ''" Command="echo ProjectDir: $(ProjectDir)&#xD;&#xA;echo Configuration: $(Configuration)&#xD;&#xA;echo OutDir: $(OutDir)&#xD;&#xA;echo Os: $(Os)&#xD;&#xA;echo RuntimeIdentifier: (unused)&#xD;&#xA;dotnet publish $(ProjectDir)\Guardian --configuration $(Configuration) --output $(OutDir)" />
<Exec Condition="$(RuntimeIdentifier) != ''" Command="echo ProjectDir: $(ProjectDir)&#xD;&#xA;echo Configuration: $(Configuration)&#xD;&#xA;echo OutDir: $(OutDir)&#xD;&#xA;echo Os: $(Os)&#xD;&#xA;echo RuntimeIdentifier: $(RuntimeIdentifier)&#xD;&#xA;dotnet publish $(ProjectDir)\Guardian --configuration $(Configuration) --output $(OutDir)\publish" />
<Exec Condition="$(RuntimeIdentifier) == ''" Command="echo ProjectDir: $(ProjectDir)&#xD;&#xA;echo Configuration: $(Configuration)&#xD;&#xA;echo OutDir: $(OutDir)&#xD;&#xA;echo Os: $(Os)&#xD;&#xA;echo RuntimeIdentifier: (unused)&#xD;&#xA;dotnet build $(ProjectDir)\Guardian --configuration $(Configuration) --output $(OutDir)\tool" />
<Exec Condition="$(RuntimeIdentifier) != ''" Command="echo ProjectDir: $(ProjectDir)&#xD;&#xA;echo Configuration: $(Configuration)&#xD;&#xA;echo OutDir: $(OutDir)&#xD;&#xA;echo Os: $(Os)&#xD;&#xA;echo RuntimeIdentifier: $(RuntimeIdentifier)&#xD;&#xA;dotnet publish $(ProjectDir)\Guardian --configuration $(Configuration) --output $(OutDir)\publish\tool" />
</Target>
</Project>

View file

@ -9,7 +9,7 @@ namespace FireflySR.Tool.Proxy
private const string Title = "FreeSR Proxy (Alter)";
private const string ConfigPath = "config.json";
private const string ConfigTemplatePath = "config.tmpl.json";
private const string GuardianPath = "FireflySR.Tool.Proxy.Guardian.exe";
private const string GuardianPath = "tool/FireflySR.Tool.Proxy.Guardian.exe";
private static ProxyService s_proxyService = null!;
private static bool s_clearupd = false;