Skip to content

Commit 9cc7e30

Browse files
committed
Switch from ILRepack to LibZ
We tried ILMerge, we tried ILRepack, so now maybe LibZ will do it's thing? The objective is solving false-positives of AVs, it might get reverted if there is no improvement
1 parent cbf212a commit 9cc7e30

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

ArchiSteamFarm/ArchiSteamFarm.csproj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -169,16 +169,16 @@
169169
copy "$(TargetDir)config\ASF.json" "$(SolutionDir)out\config"
170170
copy "$(TargetDir)config\example.json" "$(SolutionDir)out\config"
171171
copy "$(TargetDir)config\minimal.json" "$(SolutionDir)out\config"
172-
"$(SolutionDir)tools\ILRepack\ILRepack.exe" /ndebug /internalize /parallel /targetplatform:v4 /wildcards /out:"$(SolutionDir)out\ASF.exe" "$(TargetDir)$(TargetName).exe" "$(TargetDir)*.dll"
173-
del "$(SolutionDir)out\ASF.exe.config"
172+
"$(SolutionDir)tools\LibZ\libz.exe" inject-dll -a "$(TargetDir)$(TargetName).exe" -i "$(TargetDir)*.dll" --move
173+
copy "$(TargetDir)$(TargetName).exe" "$(SolutionDir)out\ASF.exe"
174174
</PostBuildEvent>
175175
<PostBuildEvent Condition=" '$(OS)' == 'Unix' AND '$(ConfigurationName)' == 'Release' ">
176176
mkdir -p "$(SolutionDir)out/config"
177177
cp "$(TargetDir)config/ASF.json" "$(SolutionDir)out/config"
178178
cp "$(TargetDir)config/example.json" "$(SolutionDir)out/config"
179179
cp "$(TargetDir)config/minimal.json" "$(SolutionDir)out/config"
180-
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"
181-
rm "$(SolutionDir)out/ASF.exe.config"
180+
mono --llvm --server -O=all "$(SolutionDir)tools/LibZ/libz.exe" inject-dll -a "$(TargetDir)$(TargetName).exe" -i "$(TargetDir)*.dll" --move
181+
cp "$(TargetDir)$(TargetName).exe" "$(SolutionDir)out/ASF.exe"
182182
</PostBuildEvent>
183183
</PropertyGroup>
184184
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.

ConfigGenerator/ConfigGenerator.csproj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -109,12 +109,12 @@
109109
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
110110
<PropertyGroup>
111111
<PostBuildEvent Condition=" '$(OS)' != 'Unix' AND '$(ConfigurationName)' == 'Release' ">
112-
"$(SolutionDir)tools\ILRepack\ILRepack.exe" /ndebug /internalize /parallel /targetplatform:v4 /wildcards /out:"$(SolutionDir)out\ASF-ConfigGenerator.exe" "$(TargetDir)$(TargetName).exe" "$(TargetDir)*.dll"
113-
del "$(SolutionDir)out\ASF-ConfigGenerator.exe.config"
112+
"$(SolutionDir)tools\LibZ\libz.exe" inject-dll -a "$(TargetDir)$(TargetName).exe" -i "$(TargetDir)*.dll" --move
113+
copy "$(TargetDir)$(TargetName).exe" "$(SolutionDir)out\ASF-ConfigGenerator.exe"
114114
</PostBuildEvent>
115115
<PostBuildEvent Condition=" '$(OS)' == 'Unix' AND '$(ConfigurationName)' == 'Release' ">
116-
mono --llvm --server -O=all "$(SolutionDir)tools/ILRepack/ILRepack.exe" /ndebug /internalize /parallel /targetplatform:v4 /wildcards /out:"$(SolutionDir)out/ASF-ConfigGenerator.exe" "$(TargetDir)$(TargetName).exe" "$(TargetDir)*.dll"
117-
rm "$(SolutionDir)out/ASF-ConfigGenerator.exe.config"
116+
mono --llvm --server -O=all "$(SolutionDir)tools/LibZ/libz.exe" inject-dll -a "$(TargetDir)$(TargetName).exe" -i "$(TargetDir)*.dll" --move
117+
cp "$(TargetDir)$(TargetName).exe" "$(SolutionDir)out/ASF-ConfigGenerator.exe"
118118
</PostBuildEvent>
119119
</PropertyGroup>
120120
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.

tools/LibZ/libz.exe

442 KB
Binary file not shown.

0 commit comments

Comments
 (0)