Make Guardian in separate 'tool' folder to avoid skill issue
This commit is contained in:
parent
79be93f425
commit
196c6e3507
3 changed files with 6 additions and 4 deletions
4
.github/workflows/dotnet.yml
vendored
4
.github/workflows/dotnet.yml
vendored
|
@ -30,7 +30,9 @@ jobs:
|
||||||
- name: Publish
|
- name: Publish
|
||||||
run: dotnet publish FireflySR.Tool.Proxy.csproj -c Release -r ${{ matrix.runtime-id }}
|
run: dotnet publish FireflySR.Tool.Proxy.csproj -c Release -r ${{ matrix.runtime-id }}
|
||||||
- name: Remove .pdb debug symbols
|
- 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
|
- name: Upload
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
|
|
|
@ -30,8 +30,8 @@
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<Target Name="PreBuild" BeforeTargets="PreBuildEvent" Condition="$(Os) == 'Windows_NT'">
|
<Target Name="PreBuild" BeforeTargets="PreBuildEvent" Condition="$(Os) == 'Windows_NT'">
|
||||||
<Exec Condition="$(RuntimeIdentifier) == ''" Command="echo ProjectDir: $(ProjectDir)
echo Configuration: $(Configuration)
echo OutDir: $(OutDir)
echo Os: $(Os)
echo RuntimeIdentifier: (unused)
dotnet publish $(ProjectDir)\Guardian --configuration $(Configuration) --output $(OutDir)" />
|
<Exec Condition="$(RuntimeIdentifier) == ''" Command="echo ProjectDir: $(ProjectDir)
echo Configuration: $(Configuration)
echo OutDir: $(OutDir)
echo Os: $(Os)
echo RuntimeIdentifier: (unused)
dotnet build $(ProjectDir)\Guardian --configuration $(Configuration) --output $(OutDir)\tool" />
|
||||||
<Exec Condition="$(RuntimeIdentifier) != ''" Command="echo ProjectDir: $(ProjectDir)
echo Configuration: $(Configuration)
echo OutDir: $(OutDir)
echo Os: $(Os)
echo RuntimeIdentifier: $(RuntimeIdentifier)
dotnet publish $(ProjectDir)\Guardian --configuration $(Configuration) --output $(OutDir)\publish" />
|
<Exec Condition="$(RuntimeIdentifier) != ''" Command="echo ProjectDir: $(ProjectDir)
echo Configuration: $(Configuration)
echo OutDir: $(OutDir)
echo Os: $(Os)
echo RuntimeIdentifier: $(RuntimeIdentifier)
dotnet publish $(ProjectDir)\Guardian --configuration $(Configuration) --output $(OutDir)\publish\tool" />
|
||||||
</Target>
|
</Target>
|
||||||
|
|
||||||
</Project>
|
</Project>
|
||||||
|
|
|
@ -9,7 +9,7 @@ namespace FireflySR.Tool.Proxy
|
||||||
private const string Title = "FreeSR Proxy (Alter)";
|
private const string Title = "FreeSR Proxy (Alter)";
|
||||||
private const string ConfigPath = "config.json";
|
private const string ConfigPath = "config.json";
|
||||||
private const string ConfigTemplatePath = "config.tmpl.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 ProxyService s_proxyService = null!;
|
||||||
private static bool s_clearupd = false;
|
private static bool s_clearupd = false;
|
||||||
|
|
Loading…
Reference in a new issue