https://github.com/denyncrawford/nbs-test
https://github.com/denyncrawford/nbs-test
Last synced: 12 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/denyncrawford/nbs-test
- Owner: denyncrawford
- Created: 2021-06-15T17:49:51.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2021-06-16T12:21:15.000Z (about 5 years ago)
- Last Synced: 2025-07-30T15:30:25.051Z (12 months ago)
- Language: JavaScript
- Size: 28.9 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# This is a reproduction repo for building native barcode reader with PKG
This test is using node16 if you want to build for another version please change the target on the pkg options.
## Building
**To build the script**:
- Edit some stuff
- Run `npm i -g rollup`
- Run `npm run build`
**To build the executable**:
- Run `npm i`
- Run `npm i pkg -g`
- Run `pkg .`
## Make it work
**Change the line `10` of `node_modules/gkm/gkm.js` with the following**:
```JavaScript
const route = path.join(process.cwd(), 'node_modules/gkm')
var gkm = spawn('java', ['-jar', path.join(route, 'lib/gkm.jar')]);
```
## Testing
This repo includes the built working executable at the dist folder.