Skip to content

Commit

Permalink
Merge pull request #1 from zombieyang/master
Browse files Browse the repository at this point in the history
windows bugfix
  • Loading branch information
zombieyang authored Mar 28, 2022
2 parents cff6a54 + ccb53fc commit a583f6d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CRLF2LF.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
const fs = require('fs');
var file = process.argv[2];

fs.writeFileSync(file, fs.readFileSync(file, {encoding: 'utf-8'}).toString().replace(/\r\n/g, '\n'));
4 changes: 2 additions & 2 deletions windows_trybuild.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ git checkout v%VERSION%

echo =====[ Patching Node.js ]=====

node %GITHUB_WORKSPACE%\v8-build\CRLF2LF.js %GITHUB_WORKSPACE%\nodemod.patch
node %GITHUB_WORKSPACE%\CRLF2LF.js %GITHUB_WORKSPACE%\nodemod.patch
call git apply --cached --reject %GITHUB_WORKSPACE%\nodemod.patch
node %GITHUB_WORKSPACE%\v8-build\CRLF2LF.js %GITHUB_WORKSPACE%\lib_uv_add_on_watcher_queue_updated.patch
node %GITHUB_WORKSPACE%\CRLF2LF.js %GITHUB_WORKSPACE%\lib_uv_add_on_watcher_queue_updated.patch
call git apply --cached --reject %GITHUB_WORKSPACE%\lib_uv_add_on_watcher_queue_updated.patch
call git checkout -- .

Expand Down

0 comments on commit a583f6d

Please sign in to comment.