Skip to content

2MB all-in-one-binary approach for linux & windows (websocketd + quickjs)

License

Notifications You must be signed in to change notification settings

coderofsalvation/WQJS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

2MB all-in-one-binary approach for linux & windows (websocketd + quickjs)

NOTE: this is an experimental approach

Usage

  • 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

About

2MB all-in-one-binary approach for linux & windows (websocketd + quickjs)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages