diff --git a/Runtime/Runtime.cpp b/Runtime/Runtime.cpp index 8f4e1961..34e38c55 100644 --- a/Runtime/Runtime.cpp +++ b/Runtime/Runtime.cpp @@ -161,12 +161,14 @@ int ApplicationMain(int argc, char* argv[]) #ifdef NK_DIST +#ifdef NK_WIN #include "windows.h" int WINAPI WinMain(HINSTANCE hInst, HINSTANCE hInstPrev, LPSTR cdmline, int cmdshow) { return ApplicationMain(__argc, __argv); } +#endif #else diff --git a/build.sh b/build.sh new file mode 100755 index 00000000..4dd2682b --- /dev/null +++ b/build.sh @@ -0,0 +1,3 @@ +#!/bin/bash +premake5 gmake; +make config=release all; diff --git a/premake5.lua b/premake5.lua index a708409a..7eb34205 100644 --- a/premake5.lua +++ b/premake5.lua @@ -209,9 +209,6 @@ project "NuakeRuntime" "WIN32_LEAN_AND_MEAN" } - entrypoint "WinMainCRTStartup" - buildoptions { "-mwindows"} - filter "configurations:Dist" kind "WindowedApp" runtime "Release"