Skip to content

Commit 066c135

Browse files
committed
Resurrect ASF Windows Service as ASF-Service.exe, #268
1 parent 0f3b7be commit 066c135

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

ArchiSteamFarm/ArchiSteamFarm.csproj

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,15 +172,18 @@
172172
copy "$(TargetDir)config\ASF.json" "$(SolutionDir)out\config"
173173
copy "$(TargetDir)config\example.json" "$(SolutionDir)out\config"
174174
copy "$(TargetDir)config\minimal.json" "$(SolutionDir)out\config"
175+
"$(SolutionDir)tools\ILRepack\ILRepack.exe" /ndebug /internalize /parallel /targetplatform:v4 /wildcards /out:"$(SolutionDir)out\ASF-Service.exe" "$(TargetDir)$(TargetName).exe" "$(TargetDir)*.dll"
176+
del "$(SolutionDir)out\ASF-Service.exe.config"
175177
copy "$(TargetDir)$(TargetName).exe" "$(SolutionDir)out\ASF.exe"
176178
</PostBuildEvent>
177179
<PostBuildEvent Condition=" '$(OS)' == 'Unix' AND '$(ConfigurationName)' == 'Release' ">
178180
mkdir -p "$(SolutionDir)out/config"
179181
cp "$(TargetDir)config/ASF.json" "$(SolutionDir)out/config"
180182
cp "$(TargetDir)config/example.json" "$(SolutionDir)out/config"
181183
cp "$(TargetDir)config/minimal.json" "$(SolutionDir)out/config"
182-
mono --llvm --server -O=all "$(SolutionDir)tools/ILRepack/ILRepack.exe" /ndebug /internalize /parallel /targetplatform:v4 /wildcards /out:"$(SolutionDir)out/ASF.exe" "$(TargetDir)$(TargetName).exe" "$(TargetDir)*.dll"
183-
rm "$(SolutionDir)out/ASF.exe.config"
184+
mono --llvm --server -O=all "$(SolutionDir)tools/ILRepack/ILRepack.exe" /ndebug /internalize /parallel /targetplatform:v4 /wildcards /out:"$(SolutionDir)out/ASF-Service.exe" "$(TargetDir)$(TargetName).exe" "$(TargetDir)*.dll"
185+
rm "$(SolutionDir)out/ASF-Service.exe.config"
186+
cp "$(SolutionDir)out/ASF-Service.exe" "$(SolutionDir)out/ASF.exe"
184187
</PostBuildEvent>
185188
</PropertyGroup>
186189
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">

0 commit comments

Comments
 (0)