[Linux-only] basically bloxstap for sober

debug why

+10 -1
+1 -1
src/api/constants.ts
··· 15 15 export const DISCORD_APPID = "1005469189907173486"; 16 16 export const SMALL_IMAGE_KEY = "roblox"; 17 17 18 - export const isCompiled = process.argv0.endsWith("bin/tuxstrap") 18 + export const isCompiled = process.argv0.includes("/bin/") 19 19 export const isNixOS = isCompiled && ((process.argv0 === "/run/current-system/sw/bin/tuxstrap") || process.argv0.includes("/nix/store"))
+9
src/index.ts
··· 22 22 const listPluginsSwitch = process.argv.find((a) => a === "--list-plugins"); 23 23 24 24 const helpSwitch = process.argv.find((a) => a === "-h" || a === "--help"); 25 + const debugSwitch = process.argv.find((a) => a === "--debug" ); 26 + 27 + if (debugSwitch) { 28 + console.log("argv0", process.argv0); 29 + console.log("argv", process.argv); 30 + console.log("isCompiled", isCompiled); 31 + console.log("isNixOS", isNixOS); 32 + process.exit(0); 33 + } 25 34 26 35 if (helpSwitch) { 27 36 console.log(