File tree Expand file tree Collapse file tree 3 files changed +22
-3
lines changed Expand file tree Collapse file tree 3 files changed +22
-3
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ if (os === 'darwin') {
1111 args [ 1 ] = 'macos' ;
1212} else if ( os === 'win32' ) {
1313 bin = 'cmd.exe' ;
14- args = [ '/c' , 'pkg.bat' ] . concat ( args ) ;
14+ args = [ '/c' , 'bin\\ pkg.bat' ] . concat ( args ) ;
1515}
1616
1717var proc = require ( 'child_process' ) . spawn ( bin , args ) ;
Original file line number Diff line number Diff line change 1+ @ echo off
2+ set arch = %1
3+ set os = %2
4+ set ver = %3
5+
6+ for %%x in (company cookie.chrome cookie.firefox cpp.lint cpp.run github leetcode.cn lintcode solution.discuss) do (
7+ echo [%%x ]
8+ node bin\leetcode ext -i %%x
9+ )
10+
11+ set dist = dist\
12+ mkdir %dist%
13+ del /q %dist% \*
14+
15+ for /r . %%x in (*.node) do copy %%x %dist%
16+ npm run pkg -- node%ver% -%os% -%arch%
17+
18+ set file = leetcode-cli.node%ver% .%os% .%arch% .zip
19+ 7z a %file% %dist%
Original file line number Diff line number Diff line change 1- #! /bin/bash
1+ #! /bin/bash -e
22
33arch=$1
44os=$2
@@ -8,7 +8,7 @@ plugins="company cookie.chrome cookie.firefox cpp.lint cpp.run github leetcode.c
88
99for plugin in $plugins ; do
1010 echo " [$plugin ]"
11- # ./bin/leetcode ext -i $plugin
11+ ./bin/leetcode ext -i $plugin
1212done
1313
1414DIST=./dist
You can’t perform that action at this time.
0 commit comments