From dddfb2f29f3449bc28f878dd28ff4a78b9a81028 Mon Sep 17 00:00:00 2001 From: MissLavender-LQ Date: Thu, 28 Sep 2023 05:01:49 +0100 Subject: [PATCH 1/2] linux release fixes --- Runtime/Runtime.cpp | 2 ++ premake5.lua | 3 --- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/Runtime/Runtime.cpp b/Runtime/Runtime.cpp index 098b98da..e8389ce2 100644 --- a/Runtime/Runtime.cpp +++ b/Runtime/Runtime.cpp @@ -76,12 +76,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/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" From 32ffdb46365471f05be90c1ed544ff19bf352edd Mon Sep 17 00:00:00 2001 From: MissLavender-LQ Date: Thu, 28 Sep 2023 06:02:00 +0100 Subject: [PATCH 2/2] Create build.sh --- build.sh | 3 +++ 1 file changed, 3 insertions(+) create mode 100755 build.sh 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;