Žiadny popis

Stephan Fuchs ccb6b76eef `task_processor.js` has to be shipped as well 2 mesiacov pred
src bbfcf1f202 init 2 mesiacov pred
.gitignore bbfcf1f202 init 2 mesiacov pred
QSRC2TW.code-workspace bbfcf1f202 init 2 mesiacov pred
QSRC2TW.exe bbfcf1f202 init 2 mesiacov pred
README.md ccb6b76eef `task_processor.js` has to be shipped as well 2 mesiacov pred
babel.config.cjs bbfcf1f202 init 2 mesiacov pred
failedFiles.log bbfcf1f202 init 2 mesiacov pred
index.js bbfcf1f202 init 2 mesiacov pred
package-lock.json bbfcf1f202 init 2 mesiacov pred
package.json bbfcf1f202 init 2 mesiacov pred
sea-config.json bbfcf1f202 init 2 mesiacov pred
sea-prep.blob bbfcf1f202 init 2 mesiacov pred
task_processor.js bbfcf1f202 init 2 mesiacov pred
webpack.config.cjs bbfcf1f202 init 2 mesiacov pred
webpackProcessor.config.cjs ccb6b76eef `task_processor.js` has to be shipped as well 2 mesiacov pred
worker_pool.js bbfcf1f202 init 2 mesiacov pred

README.md

Setup

  1. Make sure you have Node.js and npm installed.
  2. Run npm i in the terminal in the root folder to install the dependencies.
  3. Install antlr4 (https://github.com/antlr/antlr4-tools might be handy).
  4. Run antlr4 -Dlanguage=JavaScript -visitor qsrcLexer.g4 in src\antlr
  5. Run antlr4 -Dlanguage=JavaScript -visitor qsrcParser.g4 in src\antlr

Create Binary

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

Windows

  1. Run npm run buildin the root folder. This will use webpack to create the file dist/blob.js
  2. Run node --experimental-sea-config sea-config.json to create sea-prep.blob
  3. Run node -e "require('fs').copyFileSync(process.execPath, 'QSRC2TW.exe')" to copy and rename your node.exe to QSRC2TW.exe
  4. Run powershell npx postject hello.exe NODE_SEA_BLOB sea-prep.blob --sentinel-fuse NODE_SEA_FUSE_fce680ab2cc467b6e072b8b5df1996b2to append sea-prep.blob to QSRC2TW.exe
  5. Run npx webpack --config './webpackProcessor.config.cjs' to create task_processor.js in the folder dist
  6. Copy QSRC2TW.exe and task_processor.js (the one from the dist-folder) to where you need these files.