electrobun 0.0.18 → 0.0.19-beta.6

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.
@@ -0,0 +1,67 @@
1
+ # Electrobun Beta Releases
2
+
3
+ ## For Users
4
+
5
+ ### Installing Beta Versions
6
+
7
+ ```bash
8
+ # Install latest beta
9
+ npm install electrobun@beta
10
+
11
+ # Install specific beta version
12
+ npm install electrobun@0.0.19-beta.1
13
+
14
+ # View available versions
15
+ npm view electrobun versions --json
16
+ ```
17
+
18
+ ### Switching Between Stable and Beta
19
+
20
+ ```bash
21
+ # Switch to stable
22
+ npm install electrobun@latest
23
+
24
+ # Switch to beta
25
+ npm install electrobun@beta
26
+ ```
27
+
28
+ ## For Maintainers
29
+
30
+ ### Publishing Beta Releases
31
+
32
+ 1. **Update version:**
33
+ ```bash
34
+ # First beta of a new version
35
+ npm version 0.0.19-beta.1
36
+
37
+ # Increment beta number
38
+ bun npm:version:beta
39
+ ```
40
+
41
+ 2. **Create GitHub Release:**
42
+ ```bash
43
+ git push origin v0.0.19-beta.1
44
+ ```
45
+ Or manually trigger the workflow with the beta tag.
46
+
47
+ 3. **Publish to npm:**
48
+ ```bash
49
+ bun npm:publish:beta
50
+ ```
51
+
52
+ ### Beta Release Workflow
53
+
54
+ 1. Beta versions use semantic versioning: `MAJOR.MINOR.PATCH-beta.NUMBER`
55
+ 2. GitHub Actions automatically marks releases with `-beta` as pre-releases
56
+ 3. npm publishes to the `beta` dist-tag (not `latest`)
57
+ 4. Users on stable versions won't get beta updates
58
+
59
+ ### Promoting Beta to Stable
60
+
61
+ ```bash
62
+ # Update version to stable
63
+ npm version 0.0.19
64
+
65
+ # Publish as latest
66
+ bun npm:publish
67
+ ```
package/README.md CHANGED
@@ -8,7 +8,7 @@
8
8
 
9
9
  ## What is Electrobun?
10
10
 
11
- > Electrobun is in the **_very_** early stages. We currently only support development on arm macs, it has memory leaks, has no tests, it's not available in npm yet, and many core things are still missing.
11
+ > Electrobun is in the **_very_** early stages. We currently support development on macOS, Windows, and Linux, but it has memory leaks, has no tests, and many core things are still missing. We're actively working on stabilizing cross-platform support.
12
12
 
13
13
  Electrobun aims to be a complete **solution-in-a-box** for building, updating, and shipping ultra fast, tiny, and cross-platform desktop applications written in Typescript.
14
14
  Under the hood it uses <a href="https://bun.sh">bun</a> to execute the main process and to bundle webview typescript, and has native bindings written in <a href="https://ziglang.org/">zig</a>.
@@ -29,21 +29,7 @@ Read about how Electrobun is designed, and why, in our <a href="https://www.elec
29
29
 
30
30
  ## Roadmap
31
31
 
32
- See the detailed <a href="https://github.com/blackboardsh/electrobun/issues/2">detailed Roadmap</a>.
33
-
34
- **High level roadmap**
35
-
36
- | | Milestones | Description |
37
- | :-- | :-------------------- | :-------------------------------------------------------------------------------------------------------------------------------------- |
38
- | ✅ | Core Architecture | Ship a working proof of concept with most of the core architecture wired up |
39
- | ✅ | Packaging and signing | Packaging and code signing for MacOS |
40
- | ✅ | Shipping updates | Integrated auto-updator |
41
- | ✅ | Webview Tag | Cross browser electrobun implementation of the <webview> tag that electron has, for isolated nested webviews |
42
- | ✅ | Port co(lab) | Harden implementation and enough electron parity to migrate <a href="https://colab.sh">https://colab.sh</a> from Electron to Electrobun |
43
- | | Custom Web Runtime | Optionally use a cross-platform web runtime (Chromium) instead of the system's native webview |
44
- | | Intel Mac Builds | build on and distribute to intel macs |
45
- | | API Parity | Accelerate development of Electrobun apis and native integrations to enable apps to migrate from Electron and Tauri |
46
- | | Windows support | build for and distribute to Windows |
32
+ See the <a href="https://github.com/orgs/blackboardsh/projects/5">roadmap</a>
47
33
 
48
34
  ## Contributing
49
35
 
@@ -53,14 +39,55 @@ As we get closer to 1.0.0 I'll probably make guidelines for PRs and stuff. In th
53
39
 
54
40
  Ways to get involved at this early stage:
55
41
 
56
- - Follow us on X for updates <a href="https://twitter.com/BlackboardTech">@BlackboardTech</a>
42
+ - Follow us on X for updates <a href="https://twitter.com/BlackboardTech">@BlackboardTech</a> or <a href="https://bsky.app/profile/yoav.codes">@yoav.codes</a>
57
43
  - Join the conversation on <a href="https://discord.gg/ueKE4tjaCE">Discord</a>
58
44
  - Create and participate in Github issues and discussions
59
45
 
60
- ## Building
46
+ ## Development Setup
47
+
48
+ ### Prerequisites
49
+
50
+ **macOS:**
51
+ - Xcode command line tools
52
+ - cmake (install via homebrew: `brew install cmake`)
53
+
54
+ **Windows:**
55
+ - Visual Studio Build Tools or Visual Studio with C++ development tools
56
+ - cmake
57
+
58
+ **Linux:**
59
+ - build-essential package
60
+ - cmake
61
+ - webkit2gtk and GTK development packages
62
+
63
+ ### First-time Setup
64
+
65
+ ```bash
66
+ git clone <repo-url>
67
+ cd electrobun
68
+ bun install
69
+ bun dev:playground:clean
70
+ ```
71
+
72
+ ### Development Workflow
73
+
74
+ ```bash
75
+ # After making changes to source code
76
+ bun dev:playground
77
+
78
+ # If you only changed playground code (not electrobun source)
79
+ bun dev:playground:rerun
80
+
81
+ # If you need a completely fresh start
82
+ bun dev:playground:clean
83
+ ```
84
+
85
+ ### Additional Commands
61
86
 
62
- run `bun run install-zig` to install the right version of zig to vendors/zig
87
+ - `bun dev:playground:canary` - Build and run playground in canary mode
88
+ - `bun build:dev` - Build electrobun in development mode
89
+ - `bun build:release` - Build electrobun in release mode
63
90
 
64
- `bun dev:playground` and `bun dev:playground:canary` will compile everything in electrobun in either dev mode and then compile the playground app in either dev or canary modes and run it.
91
+ ### Debugging
65
92
 
66
- Note: use `lldb <path-to-bundle>/Contents/MacOS/launcher` and then `run` to debug release builds
93
+ **macOS:** Use `lldb <path-to-bundle>/Contents/MacOS/launcher` and then `run` to debug release builds
Binary file
package/package.json CHANGED
@@ -1,17 +1,24 @@
1
1
  {
2
2
  "name": "electrobun",
3
- "version": "0.0.18",
3
+ "version": "0.0.19-beta.6",
4
4
  "description": "Build ultra fast, tiny, and cross-platform desktop apps with Typescript.",
5
5
  "license": "MIT",
6
6
  "author": "Blackboard Technologies Inc.",
7
- "keywords": ["bun", "desktop", "app", "cross-platform", "typescript"],
7
+ "keywords": [
8
+ "bun",
9
+ "desktop",
10
+ "app",
11
+ "cross-platform",
12
+ "typescript"
13
+ ],
8
14
  "exports": {
9
15
  ".": "./dist/api/bun/index.ts",
10
16
  "./bun": "./dist/api/bun/index.ts",
11
17
  "./view": "./dist/api/browser/index.ts"
12
18
  },
19
+ "type": "module",
13
20
  "bin": {
14
- "electrobun": "dist/electrobun"
21
+ "electrobun": "./bin/electrobun"
15
22
  },
16
23
  "homepage": "https://electrobun.dev",
17
24
  "repository": {
@@ -19,40 +26,27 @@
19
26
  "url": "git+https://github.com/blackboardsh/electrobun.git"
20
27
  },
21
28
  "scripts": {
29
+ "postinstall": "mkdir -p bin && bun build src/cli/index.ts --compile --outfile bin/electrobun",
22
30
  "start": "bun src/bun/index.ts",
23
31
  "check-zig-version": "vendors/zig/zig version",
24
- "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",
25
- "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",
26
- "build:objc:staticlib": "ar rcs src/zig/build/libObjcWrapper.a src/objc/build/objcWrapper.o",
27
- "build:objc": "bun build:objc:object && bun build:objc:staticlib",
28
- "build:zig": "cd src/zig && ../../vendors/zig/zig build",
29
- "build:zig:trdiff": "cd src/bsdiff && ../../vendors/zig/zig build",
30
- "build:launcher": "cd src/launcher && ../../vendors/zig/zig build",
31
- "build:extractor": "cd src/extractor && ../../vendors/zig/zig build",
32
- "build:zig:release": "cd src/zig && ../../vendors/zig/zig build -Doptimize=ReleaseFast",
33
- "build:zig:trdiff:release": "cd src/bsdiff && ../../vendors/zig/zig build -Doptimize=ReleaseFast",
34
- "build:launcher:release": "cd src/launcher && ../../vendors/zig/zig build -Doptimize=ReleaseSmall",
35
- "build:extractor:release": "cd src/extractor && ../../vendors/zig/zig build -Doptimize=ReleaseSmall",
36
- "build:cli": "bun build src/cli/index.ts --compile --outfile src/cli/build/electrobun",
37
- "build:debug": "npm install && bun build:zig:trdiff && bun build:objc && bun build:zig && bun build:launcher && bun build:extractor && bun build:cli",
38
- "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",
39
- "build:package": "bun build:release && bun ./scripts/copy-to-dist.ts",
40
- "build:dev": "bun build:debug && bun ./scripts/copy-to-dist.ts",
41
- "build:electrobun": "bun build:objc && bun build:zig && bun build:bun",
32
+ "build:dev": "bun build.ts",
33
+ "build:release": "bun build.ts --release",
42
34
  "dev:playground": "bun build:dev && cd playground && npm install && bun build:dev && bun start",
35
+ "dev:playground:linux": "bun build:dev && npm link && cd playground && npm link electrobun && bun build:dev && bun start",
36
+ "dev:playground:clean": "cd playground && rm -rf node_modules && npm install && cd .. && bun dev:playground",
43
37
  "dev:playground:rerun": "cd playground && bun start",
44
- "dev:playground:canary": "bun build:package && cd playground && npm install && bun build:canary && bun start:canary",
38
+ "dev:playground:canary": "bun build:release && cd playground && npm install && bun build:canary && bun start:canary",
45
39
  "dev:docs": "cd documentation && bun start",
46
40
  "build:docs:release": "cd documentation && bun run build",
47
- "npm:publish": "bun build:package && npm publish"
48
- },
49
- "devDependencies": {
50
- "@types/bun": "1.1.9",
51
- "bun": "1.1.29"
41
+ "npm:publish": "bun build:release && npm publish",
42
+ "npm:publish:beta": "bun build:release && npm publish --tag beta",
43
+ "npm:version:beta": "npm version prerelease --preid=beta"
52
44
  },
45
+ "devDependencies": {},
53
46
  "dependencies": {
47
+ "@types/bun": "1.1.9",
54
48
  "@oneidentity/zstd-js": "^1.0.3",
55
- "rpc-anywhere": "1.5.0",
49
+ "rpc-anywhere": "1.5.0",
56
50
  "tar": "^6.2.1"
57
51
  }
58
- }
52
+ }
Binary file