-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
package.json
58 lines (58 loc) · 3.21 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
{
"name": "electrobun",
"version": "0.0.15",
"description": "Build ultra fast, tiny, and cross-platform desktop apps with Typescript.",
"license": "MIT",
"author": "Blackboard Technologies Inc.",
"keywords": ["bun", "desktop", "app", "cross-platform", "typescript"],
"exports": {
".": "./dist/api/bun/index.ts",
"./bun": "./dist/api/bun/index.ts",
"./view": "./dist/api/browser/index.ts"
},
"bin": {
"electrobun": "dist/electrobun"
},
"homepage": "https://electrobun.dev",
"repository": {
"type": "git",
"url": "git+https://github.com/blackboardsh/electrobun.git"
},
"scripts": {
"start": "bun src/bun/index.ts",
"check-zig-version": "vendors/zig/zig version",
"install-zig": "mkdir -p vendors/zig && curl -L https://ziglang.org/download/0.13.0/zig-macos-aarch64-0.13.0.tar.xz | tar -xJ --strip-components=1 -C vendors/zig zig-macos-aarch64-0.13.0/zig zig-macos-aarch64-0.13.0/lib zig-macos-aarch64-0.13.0/doc",
"build:objc:object": "mkdir -p src/objc/build && clang -c src/objc/objcWrapper.m -o src/objc/build/objcWrapper.o -fobjc-arc -fno-objc-msgsend-selector-stubs",
"build:objc:staticlib": "ar rcs src/zig/build/libObjcWrapper.a src/objc/build/objcWrapper.o",
"build:objc": "bun build:objc:object && bun build:objc:staticlib",
"build:zig": "cd src/zig && ../../vendors/zig/zig build",
"build:zig:trdiff": "cd src/bsdiff && ../../vendors/zig/zig build",
"build:launcher": "cd src/launcher && ../../vendors/zig/zig build",
"build:extractor": "cd src/extractor && ../../vendors/zig/zig build",
"build:zig:release": "cd src/zig && ../../vendors/zig/zig build -Doptimize=ReleaseFast",
"build:zig:trdiff:release": "cd src/bsdiff && ../../vendors/zig/zig build -Doptimize=ReleaseFast",
"build:launcher:release": "cd src/launcher && ../../vendors/zig/zig build -Doptimize=ReleaseSmall",
"build:extractor:release": "cd src/extractor && ../../vendors/zig/zig build -Doptimize=ReleaseSmall",
"build:cli": "bun build src/cli/index.ts --compile --outfile src/cli/build/electrobun",
"build:debug": "npm install && bun build:zig:trdiff && bun build:objc && bun build:zig && bun build:launcher && bun build:extractor && bun build:cli",
"build:release": "bun build:objc && bun build:zig:trdiff:release && bun build:zig:release && bun build:launcher:release && bun build:extractor:release && bun build:cli",
"build:package": "bun build:release && bun ./scripts/copy-to-dist.ts",
"build:dev": "bun build:debug && bun ./scripts/copy-to-dist.ts",
"build:electrobun": "bun build:objc && bun build:zig && bun build:bun",
"dev:playground": "bun build:dev && cd playground && npm install && bun build:dev && bun start",
"dev:playground:rerun": "cd playground && bun start",
"dev:playground:canary": "bun build:package && cd playground && npm install && bun build:canary && bun start:canary",
"dev:docs": "cd documentation && bun start",
"build:docs:release": "cd documentation && bun run build",
"npm:publish": "bun build:package && npm publish"
},
"devDependencies": {
"@types/bun": "1.1.9",
"bun": "1.1.29"
},
"dependencies": {
"@oneidentity/zstd-js": "^1.0.3",
"rpc-anywhere": "1.5.0",
"tar": "^6.2.1"
}
}