Try fixing macOS and support no_console Windows subsystem.

This commit is contained in:
Apprentice-Alchemist
2022-05-18 08:11:44 +02:00
parent 362ab26d18
commit b2546aac9f
4 changed files with 12 additions and 3 deletions

View File

@@ -659,7 +659,7 @@ class WindowsPlatform extends PlatformTarget
if (!targetFlags.exists("32")
&& System.hostArchitecture == X64
&& (command != "rebuild" || targetType == "cpp" || targetType == "winrt"))
&& (command != "rebuild" || targetType == "cpp" || targetType == "hl" || targetType == "winrt"))
{
if (targetType == "winrt")
{

View File

@@ -1207,7 +1207,7 @@ class PlatformSetup
var entitlementsPath = sys.FileSystem.exists(limePath + "/project") ? (limePath +
"/project/lib/hashlink/other/osx/entitlements.xml") : (limePath
+ "/templates/bin/hl/entitlements.xml");
System.runCommand("", "sudo", ["security", "delete-identity", "-c", "hl-cert"], true, false, true);
System.runCommand("", "sudo", ["security", "delete-identity", "-c", "hl-cert"], true, true, true);
sys.io.File.saveContent(openSSLConf, [
"[req]",
"distinguished_name=codesign_dn",
@@ -1232,7 +1232,7 @@ class PlatformSetup
System.runCommand("", "codesign", ["--entitlements", entitlementsPath, "-fs", "hl-cert", hlPath], true, false, true);
for (f in [key, cert, openSSLConf])
sys.FileSystem.deleteFile(f);
Log.println("\nIf you update lime, yo will have to run this again to sign the new hl executable");
Log.println("\nIf you update lime, you will have to run this again to sign the new hl executable");
}
}
}