diff --git a/ArchiSteamFarm/ArchiSteamFarm.csproj b/ArchiSteamFarm/ArchiSteamFarm.csproj index 492b4765f..0a8426740 100644 --- a/ArchiSteamFarm/ArchiSteamFarm.csproj +++ b/ArchiSteamFarm/ArchiSteamFarm.csproj @@ -196,7 +196,7 @@ cp "$(TargetDir)config/ASF.json" "$(SolutionDir)out/config" cp "$(TargetDir)config/example.json" "$(SolutionDir)out/config" cp "$(TargetDir)config/minimal.json" "$(SolutionDir)out/config" - 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" + mono "$(SolutionDir)tools/ILRepack/ILRepack.exe" /ndebug /internalize /parallel /targetplatform:v4 /wildcards /out:"$(SolutionDir)out/ASF-Service.exe" "$(TargetDir)$(TargetName).exe" "$(TargetDir)*.dll" rm "$(SolutionDir)out/ASF-Service.exe.config" cp "$(SolutionDir)out/ASF-Service.exe" "$(SolutionDir)out/ASF.exe" diff --git a/ConfigGenerator/ConfigGenerator.csproj b/ConfigGenerator/ConfigGenerator.csproj index 0e6f546ed..90e326df2 100644 --- a/ConfigGenerator/ConfigGenerator.csproj +++ b/ConfigGenerator/ConfigGenerator.csproj @@ -127,7 +127,7 @@ . "$(SolutionDir)mono_envsetup.sh" fi - 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" + mono "$(SolutionDir)tools/ILRepack/ILRepack.exe" /ndebug /internalize /parallel /targetplatform:v4 /wildcards /out:"$(SolutionDir)out/ASF-ConfigGenerator.exe" "$(TargetDir)$(TargetName).exe" "$(TargetDir)*.dll" rm "$(SolutionDir)out/ASF-ConfigGenerator.exe.config" diff --git a/GUI/GUI.csproj b/GUI/GUI.csproj index 262fce2d4..ecde0c007 100644 --- a/GUI/GUI.csproj +++ b/GUI/GUI.csproj @@ -212,7 +212,7 @@ . "$(SolutionDir)mono_envsetup.sh" fi - mono --llvm --server -O=all "$(SolutionDir)tools/ILRepack/ILRepack.exe" /ndebug /internalize /parallel /targetplatform:v4 /wildcards /out:"$(SolutionDir)out/ASF-GUI.exe" "$(TargetDir)$(TargetName).exe" "$(TargetDir)*.dll" + mono "$(SolutionDir)tools/ILRepack/ILRepack.exe" /ndebug /internalize /parallel /targetplatform:v4 /wildcards /out:"$(SolutionDir)out/ASF-GUI.exe" "$(TargetDir)$(TargetName).exe" "$(TargetDir)*.dll" rm "$(SolutionDir)out/ASF-GUI.exe.config" diff --git a/cc.sh b/cc.sh index e7cdfda83..7b0aab9be 100755 --- a/cc.sh +++ b/cc.sh @@ -5,7 +5,6 @@ BUILD="Release" AOT=0 CLEAN=0 -MONO_ARGS=("--aot" "--llvm" "--server" "-O=all") XBUILD_ARGS=("/nologo") BINARIES=("ArchiSteamFarm/bin/Release/ArchiSteamFarm.exe") SOLUTION="ArchiSteamFarm.sln" @@ -66,7 +65,7 @@ if [[ "$AOT" -eq 1 && "$BUILD" = "Release" ]]; then continue fi - mono "${MONO_ARGS[@]}" "$BINARY" + mono --aot "$BINARY" done fi diff --git a/mono_envsetup.sh b/mono_envsetup.sh index 8509e1023..be7dd2c58 100644 --- a/mono_envsetup.sh +++ b/mono_envsetup.sh @@ -58,4 +58,7 @@ if VERSION_GREATER_EQUAL "$MONO_VERSION" "4.6.0"; then MONO_DEBUG_IF_AVAILABLE "no-compact-seq-points" fi +export MONO_DNS=1 +export MONO_ENV_OPTIONS="--server -O=all" + echo "Mono environment setup finished!" diff --git a/run.sh b/run.sh index def3102f8..a52bf140b 100755 --- a/run.sh +++ b/run.sh @@ -6,7 +6,7 @@ BUILD="Release" UNTIL_CLEAN_EXIT=0 ASF_ARGS=("") -MONO_ARGS=("--llvm" "--server" "-O=all") +MONO_ARGS=("") PRINT_USAGE() { echo "Usage: $0 [--until-clean-exit] [--cryptkey=] [--path=] [--server] [debug/release]"