You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Algo/ALEC/ALEC.cs
+18-1
Original file line number
Diff line number
Diff line change
@@ -178,10 +178,22 @@ public static void Compile(string file)
178
178
}
179
179
180
180
Log("MKBundle has finished executing.");
181
+
182
+
//Delete the main executable.
183
+
Log("Attempting to clean up...");
184
+
try
185
+
{
186
+
File.Delete(ProjectName+".exe");
187
+
}
188
+
catch(Exceptione)
189
+
{
190
+
Error.WarningCompile("Failed to clean up Windows executable, given error '"+e.Message+"'.");
191
+
}
181
192
}
182
-
else
193
+
elseif(AlgoPlatformInfo.IsWindows)
183
194
{
184
195
//It's Windows, use ILRepack instead.
196
+
Log("Windows detected as the operating system, attempting to create a native binary...");
185
197
Log("Attempting to bundle dependencies into packed executable...");
186
198
RepackOptionsopt=newRepackOptions();
187
199
opt.OutputFile=ProjectName+"_packed.exe";
@@ -216,6 +228,11 @@ public static void Compile(string file)
216
228
Error.WarningCompile("Packing the executable's dependencies failed, with error '"+e.Message+"'. You will need to include algo.exe and all it's dependencies along with the built executable for it to run.");
217
229
}
218
230
}
231
+
else
232
+
{
233
+
Error.FatalCompile("Could not detect the operating system to compile native binary.");
0 commit comments