Skip to content
This repository has been archived by the owner on Jun 4, 2022. It is now read-only.

Commit

Permalink
fix nexe's upstream regex for main.cc patch
Browse files Browse the repository at this point in the history
  • Loading branch information
hlolli committed Feb 22, 2020
1 parent 03f4b00 commit b5327ac
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
4 changes: 0 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,6 @@ cache:
directories:
- node_modules
- "~/.m2"
- tmp
- "~/.boot/cache/lib"
- "~/.boot/cache/bin"
- yarn
before_install:
- eval "${MATRIX_EVAL}"
- sudo fallocate -l 4G /swapfile
Expand Down
5 changes: 3 additions & 2 deletions vendor/nexe/exe.js
Original file line number Diff line number Diff line change
Expand Up @@ -852,9 +852,10 @@ function _monkeyPatchMainCc(compiler, complete) {
});

const finalContents = mainC.replace(
/(?<!int )ProcessGlobalArgs\(argv/g,
'0;//$&',
/ProcessGlobalArgs\(argv([\s\S]*?)\)/g,
'0',
);

// write the file contents
fs.writeFile(
mainPath,
Expand Down

0 comments on commit b5327ac

Please sign in to comment.