[Linux-only] basically bloxstap for sober

fix

+6 -3
+4 -2
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.includes("/bin/") 19 - export const isNixOS = isCompiled && ((process.argv0 === "/run/current-system/sw/bin/tuxstrap") || process.argv0.includes("/nix/store")) 18 + export const tsExecutablePath = Bun.which("tuxstrap") 19 + 20 + export const isCompiled = process.argv0.includes("/bin/") || !!tsExecutablePath 21 + export const isNixOS = isCompiled && tsExecutablePath && ((tsExecutablePath === "/run/current-system/sw/bin/tuxstrap") || tsExecutablePath.includes("/nix/store"))
+2 -1
src/index.ts
··· 1 1 import { $ } from "bun"; 2 - import { isCompiled, isNixOS, SOBER_APPID, TUXSTRAP_VERSION } from "./api/constants"; 2 + import { isCompiled, isNixOS, SOBER_APPID, tsExecutablePath, TUXSTRAP_VERSION } from "./api/constants"; 3 3 import { 4 4 _libocbwoy3Version, 5 5 libocbwoy3Greet, ··· 29 29 console.log("argv", process.argv); 30 30 console.log("isCompiled", isCompiled); 31 31 console.log("isNixOS", isNixOS); 32 + console.log("isCompiled", tsExecutablePath); 32 33 process.exit(0); 33 34 } 34 35