fix(game-launcher): use cc from PATH instead of /usr/bin/cc for NixOS support (#186)

Co-authored-by: Ahmed5Emad <ahmed5emad@users.noreply.github.com>
This commit is contained in:
Ahmed Emad
2026-07-31 23:05:26 -04:00
committed by GitHub
co-authored by Ahmed5Emad
parent b2a1c7b066
commit 6c2b371643
4 changed files with 4 additions and 3 deletions
+1
View File
@@ -0,0 +1 @@
gamelauncher
+1 -1
View File
@@ -362,7 +362,7 @@ local function buildBinary()
loading = true
errorMsg = ""
render()
local ok = noctalia.runAsync("/usr/bin/cc -o " .. binary .. " " .. cSource .. " -lsqlite3", function(res)
local ok = noctalia.runAsync("cc -o " .. binary .. " " .. cSource .. " -lsqlite3", function(res)
building = false
if res.exitCode == 0 then
loading = false
+1 -1
View File
@@ -1,6 +1,6 @@
id = "alexander/game-launcher"
name = "Game Launcher"
version = "1.1.1"
version = "1.1.2"
plugin_api = 13
author = "Alexander"
license = "MIT"
+1 -1
View File
@@ -36,7 +36,7 @@ local function ensureGames(cb)
return
end
if not noctalia.fileExists(binary) then
local ok = noctalia.runAsync("/usr/bin/cc -o " .. binary .. " " .. cSource .. " -lsqlite3", function(res)
local ok = noctalia.runAsync("cc -o " .. binary .. " " .. cSource .. " -lsqlite3", function(res)
if res.exitCode == 0 then
runScan()
else