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
fix
kris.darkworld.download
7 months ago
9fff8cdd
7aa0c57a
+6
-3
2 changed files
expand all
collapse all
unified
split
src
api
constants.ts
index.ts
+4
-2
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.includes("/bin/")
19
19
-
export const isNixOS = isCompiled && ((process.argv0 === "/run/current-system/sw/bin/tuxstrap") || process.argv0.includes("/nix/store"))
18
18
+
export const tsExecutablePath = Bun.which("tuxstrap")
19
19
+
20
20
+
export const isCompiled = process.argv0.includes("/bin/") || !!tsExecutablePath
21
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
2
-
import { isCompiled, isNixOS, SOBER_APPID, TUXSTRAP_VERSION } from "./api/constants";
2
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
32
+
console.log("isCompiled", tsExecutablePath);
32
33
process.exit(0);
33
34
}
34
35