https://github.com/coderofsalvation/wqjs
2MB all-in-one-binary approach for linux & windows (websocketd + quickjs)
https://github.com/coderofsalvation/wqjs
desktop quickjs websocketd
Last synced: 9 months ago
JSON representation
2MB all-in-one-binary approach for linux & windows (websocketd + quickjs)
- Host: GitHub
- URL: https://github.com/coderofsalvation/wqjs
- Owner: coderofsalvation
- License: agpl-3.0
- Created: 2021-02-02T19:52:42.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2021-02-02T20:00:27.000Z (almost 5 years ago)
- Last Synced: 2025-02-12T06:21:43.734Z (11 months ago)
- Topics: desktop, quickjs, websocketd
- Language: HTML
- Homepage:
- Size: 13.1 MB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
2MB all-in-one-binary approach for linux & windows (websocketd + quickjs)
> NOTE: this is an experimental approach

## Usage
* [https://websocketd.com](https://websocketd.com) serves `src/html/index.html` and starts `src/app.js`
* all can be bundled into one EXE or linux binary
```
C:\Desktop> iexpress /N .packager\package.SED
$ .packager/build.linux-x86_64
$ ls -la dist
total 5.4M
drwxr-xr-x 1 leon leon 4.0K Feb 2 20:10 .
drwxr-xr-x 1 leon leon 4.0K Feb 2 20:32 ..
-rwxr-xr-x 1 leon leon 2.9M Feb 2 20:10 app
-rwxr--r-- 1 leon leon 2.5M Feb 2 20:09 app.exe
```
# build binaries
* windows console: `iexpress /N .packager\package.SED` -> `app.exe`
* linux console: `.packager/build.linux-x86_64` -> `app`
> NOTE: the windows binary has access to the files specified in `package.SED` but does not maintain folder structure
# Todo
The windows build doesn't respect the directory-structure and isn't really convenient (new files require editing `.packager/package.SED`