File tree Expand file tree Collapse file tree 2 files changed +9
-6
lines changed
Expand file tree Collapse file tree 2 files changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -6,10 +6,12 @@ matrix:
66 - os : linux
77 dist : ubuntu
88 env :
9- - PLATFORM="x86_64-linux"
9+ - PLATFORM=linux
10+ - ARCH=x64
1011 - os : osx
1112 env :
12- - PLATFORM="x86_64-apple-darwin"
13+ - PLATFORM=darwin
14+ - ARCH=x64
1315before_install :
1416- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get install libxkbfile-dev
1517 libsecret-1-dev; fi
@@ -21,7 +23,7 @@ before_deploy:
2123- git config --local user.name "$USER_NAME"
2224- git config --local user.email "$USER_EMAIL"
2325- git tag "$TRAVIS_TAG" "$TRAVIS_COMMIT"
24- - yarn task package "$TRAVIS_TAG" "$PLATFORM"
26+ - yarn task package "$TRAVIS_TAG" "$PLATFORM-$ARCH "
2527deploy :
2628 provider : releases
2729 file_glob : true
Original file line number Diff line number Diff line change @@ -14,16 +14,17 @@ fs.writeFileSync(shimPath, shimContent);
1414
1515const nexe = require ( "nexe" ) ;
1616
17+ const target = `${ process . env . PLATFORM || os . platform ( ) } ${ process . env . ARCH ? `-${ process . env . ARCH } ` : "" } ` ;
1718nexe . compile ( {
1819 debugBundle : true ,
1920 input : path . join ( __dirname , "../out/cli.js" ) ,
20- output : `cli-${ process . env . PLATFORM || os . platform ( ) } ` ,
21- targets : [ os . platform ( ) ] ,
21+ output : `cli-${ target } ` ,
22+ targets : [ target ] ,
2223 /**
2324 * To include native extensions, do NOT install node_modules for each one. They
2425 * are not required as each extension is built using webpack.
2526 */
26- resources : [
27+ resources : [
2728 path . join ( __dirname , "../package.json" ) ,
2829 path . join ( __dirname , "../build/**/*" ) ,
2930 ] ,
You can’t perform that action at this time.
0 commit comments