Browse Source

`task_processor.js` has to be shipped as well

Stephan Fuchs 2 months ago
parent
commit
ccb6b76eef
2 changed files with 9 additions and 0 deletions
  1. 2 0
      README.md
  2. 7 0
      webpackProcessor.config.cjs

+ 2 - 0
README.md

@@ -15,3 +15,5 @@ Check here if you're using another version: https://nodejs.org/api/single-execut
 3. Run `node -e "require('fs').copyFileSync(process.execPath, 'QSRC2TW.exe')"` to copy and rename your *node.exe* to *QSRC2TW.exe*
 3. Run `node -e "require('fs').copyFileSync(process.execPath, 'QSRC2TW.exe')"` to copy and rename your *node.exe* to *QSRC2TW.exe*
 4. Run `powershell
 4. Run `powershell
 npx postject hello.exe NODE_SEA_BLOB sea-prep.blob --sentinel-fuse NODE_SEA_FUSE_fce680ab2cc467b6e072b8b5df1996b2`to append *sea-prep.blob* to *QSRC2TW.exe*
 npx postject hello.exe NODE_SEA_BLOB sea-prep.blob --sentinel-fuse NODE_SEA_FUSE_fce680ab2cc467b6e072b8b5df1996b2`to 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.

+ 7 - 0
webpackProcessor.config.cjs

@@ -0,0 +1,7 @@
+module.exports = {
+  entry: './task_processor.js',
+  output: {
+    filename: 'task_processor.js'
+  },
+  externalsPresets: { node: true },
+};