From 6c2b3716430a814e1aee0b7e54e911ff2c6b6c54 Mon Sep 17 00:00:00 2001 From: Ahmed Emad <122463699+Ahmed5Emad@users.noreply.github.com> Date: Sat, 1 Aug 2026 06:05:26 +0300 Subject: [PATCH] fix(game-launcher): use cc from PATH instead of /usr/bin/cc for NixOS support (#186) Co-authored-by: Ahmed5Emad --- game-launcher/.gitignore | 1 + game-launcher/panel.luau | 2 +- game-launcher/plugin.toml | 2 +- game-launcher/search.luau | 2 +- 4 files changed, 4 insertions(+), 3 deletions(-) create mode 100644 game-launcher/.gitignore diff --git a/game-launcher/.gitignore b/game-launcher/.gitignore new file mode 100644 index 0000000..cb1b40f --- /dev/null +++ b/game-launcher/.gitignore @@ -0,0 +1 @@ +gamelauncher diff --git a/game-launcher/panel.luau b/game-launcher/panel.luau index f64ab42..f40488b 100644 --- a/game-launcher/panel.luau +++ b/game-launcher/panel.luau @@ -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 diff --git a/game-launcher/plugin.toml b/game-launcher/plugin.toml index 2cac333..586cd5b 100644 --- a/game-launcher/plugin.toml +++ b/game-launcher/plugin.toml @@ -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" diff --git a/game-launcher/search.luau b/game-launcher/search.luau index f1560ea..b7893e7 100644 --- a/game-launcher/search.luau +++ b/game-launcher/search.luau @@ -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