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:
@@ -0,0 +1 @@
|
|||||||
|
gamelauncher
|
||||||
@@ -362,7 +362,7 @@ local function buildBinary()
|
|||||||
loading = true
|
loading = true
|
||||||
errorMsg = ""
|
errorMsg = ""
|
||||||
render()
|
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
|
building = false
|
||||||
if res.exitCode == 0 then
|
if res.exitCode == 0 then
|
||||||
loading = false
|
loading = false
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
id = "alexander/game-launcher"
|
id = "alexander/game-launcher"
|
||||||
name = "Game Launcher"
|
name = "Game Launcher"
|
||||||
version = "1.1.1"
|
version = "1.1.2"
|
||||||
plugin_api = 13
|
plugin_api = 13
|
||||||
author = "Alexander"
|
author = "Alexander"
|
||||||
license = "MIT"
|
license = "MIT"
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ local function ensureGames(cb)
|
|||||||
return
|
return
|
||||||
end
|
end
|
||||||
if not noctalia.fileExists(binary) then
|
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
|
if res.exitCode == 0 then
|
||||||
runScan()
|
runScan()
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user