Stephan Fuchs 75890a4689 remove `images/`-prefix from detected images | пре 2 месеци | |
---|---|---|
src | пре 2 месеци | |
.gitignore | пре 2 месеци | |
QSRC2TW.code-workspace | пре 2 месеци | |
QSRC2TW.exe | пре 2 месеци | |
README.md | пре 2 месеци | |
babel.config.cjs | пре 2 месеци | |
failedFiles.log | пре 2 месеци | |
index.js | пре 2 месеци | |
package-lock.json | пре 2 месеци | |
package.json | пре 2 месеци | |
sea-config.json | пре 2 месеци | |
sea-prep.blob | пре 2 месеци | |
task_processor.js | пре 2 месеци | |
webpack.config.cjs | пре 2 месеци | |
webpackProcessor.config.cjs | пре 2 месеци | |
worker_pool.js | пре 2 месеци |
npm i
in the terminal in the root folder to install the dependencies.antlr4 -Dlanguage=JavaScript -visitor qsrcLexer.g4
in src\antlr
antlr4 -Dlanguage=JavaScript -visitor qsrcParser.g4
in src\antlr
This guide assumes that you're using Node 22.7.0. Check here if you're using another version: https://nodejs.org/api/single-executable-applications.html
npm run build
in the root folder. This will use webpack to create the file dist/blob.jsnode --experimental-sea-config sea-config.json
to create sea-prep.blobnode -e "require('fs').copyFileSync(process.execPath, 'QSRC2TW.exe')"
to copy and rename your node.exe to QSRC2TW.exepowershell
npx postject hello.exe NODE_SEA_BLOB sea-prep.blob --sentinel-fuse NODE_SEA_FUSE_fce680ab2cc467b6e072b8b5df1996b2
to append sea-prep.blob to QSRC2TW.exenpx webpack --config './webpackProcessor.config.cjs'
to create task_processor.js in the folder dist