initial
This commit is contained in:
commit
74ae93a96e
2 changed files with 94691 additions and 0 deletions
|
|
@ -0,0 +1,13 @@
|
|||
Installation
|
||||
|
||||
```bash
|
||||
# install the cli app
|
||||
npx proton-native-cli init my-app
|
||||
# move to your project directory
|
||||
cd my-app
|
||||
|
||||
# run your app
|
||||
npm run start
|
||||
# OR to run with hot reloading
|
||||
npm run dev
|
||||
```
|
||||
|
|
@ -0,0 +1,20 @@
|
|||
Packaging
|
||||
|
||||
- Creating the binary
|
||||
```bash
|
||||
npm run build # Transpile our code. If you have any extra files other than
|
||||
# app.js and index.js, make sure they are included in the build
|
||||
# script in package.json, so that they get transpiled also.
|
||||
|
||||
mkdir out
|
||||
npx nexe bin/index.js -o out/my-app # Create our binary
|
||||
```
|
||||
In nexe there might be the error as may not build by default when running in first time so use this
|
||||
`npx nexe bin/index.js -bo --verbose out/my-app # Create our binary`
|
||||
Here -b is --build
|
||||
Also there can be other error so go to `~/.nexe/...` and `../deps/v8/src/base/logging.h` and `../deps/v8/src/base/macro.h` and include library cstdint `#include <cstdint>`
|
||||
|
||||
**The packaged appimage would be 180mb+. Also 180mb+ ram**
|
||||
|
||||
As nexe takes 1hr to build so use already compiled version
|
||||
https://www.mediafire.com/file/gnob3ywpvq9te7a/nexe_archive.7z/file
|
||||
Loading…
Reference in a new issue