From 469f78a91906a3d5733c77052d4973469502607f Mon Sep 17 00:00:00 2001 From: Foereaper Date: Tue, 30 Jul 2024 23:23:28 +0200 Subject: [PATCH] Disable Generate project for linux --- Source/Generate/Generate.lua | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/Source/Generate/Generate.lua b/Source/Generate/Generate.lua index fb730e78..196581df 100644 --- a/Source/Generate/Generate.lua +++ b/Source/Generate/Generate.lua @@ -3,9 +3,12 @@ local currentProject = Solution.Projects.Current local dependencies = { } Solution.Util.CreateProject("Generate", "StaticLib", currentProject.BinDir, dependencies) -local solutionType = BuildSettings:Get("Solution Type") -postbuildcommands -{ - "cd " .. currentProject.RootDir, - "premake5 " .. solutionType -} \ No newline at end of file +-- TODO: This needs to be fixed to work properly on Linux. Dirty fix to make runner build properly. +if os.target() == "windows" then + local solutionType = BuildSettings:Get("Solution Type") + postbuildcommands + { + "cd " .. currentProject.RootDir, + "premake5 " .. solutionType + } +end \ No newline at end of file