tangled
alpha
login
or
join now
kris.darkworld.download
/
tuxstrap
0
fork
atom
[Linux-only] basically bloxstap for sober
0
fork
atom
overview
issues
pulls
pipelines
debug why
kris.darkworld.download
6 months ago
7aa0c57a
118116dd
+10
-1
2 changed files
expand all
collapse all
unified
split
src
api
constants.ts
index.ts
+1
-1
src/api/constants.ts
···
15
15
export const DISCORD_APPID = "1005469189907173486";
16
16
export const SMALL_IMAGE_KEY = "roblox";
17
17
18
18
-
export const isCompiled = process.argv0.endsWith("bin/tuxstrap")
18
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
25
+
const debugSwitch = process.argv.find((a) => a === "--debug" );
26
26
+
27
27
+
if (debugSwitch) {
28
28
+
console.log("argv0", process.argv0);
29
29
+
console.log("argv", process.argv);
30
30
+
console.log("isCompiled", isCompiled);
31
31
+
console.log("isNixOS", isNixOS);
32
32
+
process.exit(0);
33
33
+
}
25
34
26
35
if (helpSwitch) {
27
36
console.log(