diff --git a/project/BuildHashlink.xml b/project/BuildHashlink.xml index 54771ab8a..06d9e1719 100644 --- a/project/BuildHashlink.xml +++ b/project/BuildHashlink.xml @@ -12,6 +12,7 @@ + @@ -357,6 +358,7 @@ +
diff --git a/project/src/hashlink_main.c b/project/src/hashlink_main.c new file mode 100644 index 000000000..372281273 --- /dev/null +++ b/project/src/hashlink_main.c @@ -0,0 +1,7 @@ +#ifdef HX_WIN_MAIN +extern int wmain(int argc, wchar_t *argv[]); + +int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) { + return wmain(__argc, __argv); +} +#endif \ No newline at end of file diff --git a/tools/platforms/WindowsPlatform.hx b/tools/platforms/WindowsPlatform.hx index 8a4510abc..6d6ef3094 100644 --- a/tools/platforms/WindowsPlatform.hx +++ b/tools/platforms/WindowsPlatform.hx @@ -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") { diff --git a/tools/utils/PlatformSetup.hx b/tools/utils/PlatformSetup.hx index 181d9d461..6b5274089 100644 --- a/tools/utils/PlatformSetup.hx +++ b/tools/utils/PlatformSetup.hx @@ -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"); } } }