boo-flash 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/boo-flash ADDED
@@ -0,0 +1,44 @@
1
+ #!/bin/sh
2
+ set -eu
3
+
4
+ self=$0
5
+ case $self in
6
+ /*) ;;
7
+ *) self=$PWD/$self ;;
8
+ esac
9
+ while [ -L "$self" ]; do
10
+ directory=$(CDPATH='' cd -P -- "$(dirname -- "$self")" && pwd)
11
+ target=$(readlink "$self")
12
+ case $target in
13
+ /*) self=$target ;;
14
+ *) self=$directory/$target ;;
15
+ esac
16
+ done
17
+ directory=$(CDPATH='' cd -P -- "$(dirname -- "$self")" && pwd)
18
+
19
+ set_linux_libc() {
20
+ runtime=$1
21
+ if [ "$(uname -s)" = Linux ] && [ "${OPENTUI_LIBC+x}" != x ] && \
22
+ "$runtime" -e 'process.exit(process.report?.getReport?.().header.glibcVersionRuntime ? 1 : 0)' >/dev/null 2>&1; then
23
+ OPENTUI_LIBC=musl
24
+ export OPENTUI_LIBC
25
+ fi
26
+ }
27
+
28
+ if command -v node >/dev/null 2>&1 && node -e '
29
+ const [major, minor] = process.versions.node.split(".").map(Number)
30
+ process.exit(major > 26 || (major === 26 && minor >= 4) ? 0 : 1)
31
+ ' >/dev/null 2>&1; then
32
+ set_linux_libc node
33
+ exec node --experimental-ffi "$directory/app-node.js" "$@"
34
+ fi
35
+ if command -v bun >/dev/null 2>&1 && bun -e '
36
+ const [major, minor] = process.versions.bun.split(".").map(Number)
37
+ process.exit(major > 1 || (major === 1 && minor >= 4) ? 0 : 1)
38
+ ' >/dev/null 2>&1; then
39
+ set_linux_libc bun
40
+ exec bun "$directory/app-bun.js" "$@"
41
+ fi
42
+
43
+ echo "boo-flash requires Node.js 26.4 or later, or Bun 1.4 or later." >&2
44
+ exit 1
package/package.json ADDED
@@ -0,0 +1,56 @@
1
+ {
2
+ "name": "boo-flash",
3
+ "version": "0.1.0",
4
+ "description": "Flash qualified Boo images to USB drives on macOS and Linux",
5
+ "license": "MIT",
6
+ "type": "module",
7
+ "packageManager": "bun@1.4.0",
8
+ "repository": {
9
+ "type": "git",
10
+ "url": "git+https://github.com/anomalyco/boo.git",
11
+ "directory": "tools/boo-flash"
12
+ },
13
+ "os": [
14
+ "darwin",
15
+ "linux"
16
+ ],
17
+ "cpu": [
18
+ "x64",
19
+ "arm64"
20
+ ],
21
+ "bin": {
22
+ "boo-flash": "dist/boo-flash"
23
+ },
24
+ "files": [
25
+ "dist/",
26
+ "LICENSE",
27
+ "README.md",
28
+ "THIRD_PARTY_NOTICES"
29
+ ],
30
+ "publishConfig": {
31
+ "access": "public"
32
+ },
33
+ "scripts": {
34
+ "start": "bun src/index.tsx",
35
+ "demo": "bun src/index.tsx --demo",
36
+ "build": "./scripts/build.sh",
37
+ "test": "bun test src/backends/linux.test.ts src/backend.test.ts",
38
+ "test:package": "./scripts/package-test.sh",
39
+ "typecheck": "tsc --noEmit",
40
+ "prepack": "bun run build"
41
+ },
42
+ "dependencies": {
43
+ "@opentui/core": "0.5.8",
44
+ "solid-js": "1.9.12"
45
+ },
46
+ "devDependencies": {
47
+ "@babel/core": "7.28.0",
48
+ "@babel/preset-typescript": "7.27.1",
49
+ "@opentui/solid": "0.5.8",
50
+ "@types/bun": "1.4.0",
51
+ "babel-plugin-module-resolver": "5.0.2",
52
+ "babel-preset-solid": "1.9.12",
53
+ "esbuild": "0.28.2",
54
+ "typescript": "5.9.3"
55
+ }
56
+ }