File tree 2 files changed +9
-6
lines changed
2 files changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -6,10 +6,12 @@ matrix:
6
6
- os : linux
7
7
dist : ubuntu
8
8
env :
9
- - PLATFORM="x86_64-linux"
9
+ - PLATFORM=linux
10
+ - ARCH=x64
10
11
- os : osx
11
12
env :
12
- - PLATFORM="x86_64-apple-darwin"
13
+ - PLATFORM=darwin
14
+ - ARCH=x64
13
15
before_install :
14
16
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get install libxkbfile-dev
15
17
libsecret-1-dev; fi
@@ -21,7 +23,7 @@ before_deploy:
21
23
- git config --local user.name "$USER_NAME"
22
24
- git config --local user.email "$USER_EMAIL"
23
25
- git tag "$TRAVIS_TAG" "$TRAVIS_COMMIT"
24
- - yarn task package "$TRAVIS_TAG" "$PLATFORM"
26
+ - yarn task package "$TRAVIS_TAG" "$PLATFORM-$ARCH "
25
27
deploy :
26
28
provider : releases
27
29
file_glob : true
Original file line number Diff line number Diff line change @@ -14,16 +14,17 @@ fs.writeFileSync(shimPath, shimContent);
14
14
15
15
const nexe = require ( "nexe" ) ;
16
16
17
+ const target = `${ process . env . PLATFORM || os . platform ( ) } ${ process . env . ARCH ? `-${ process . env . ARCH } ` : "" } ` ;
17
18
nexe . compile ( {
18
19
debugBundle : true ,
19
20
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 ] ,
22
23
/**
23
24
* To include native extensions, do NOT install node_modules for each one. They
24
25
* are not required as each extension is built using webpack.
25
26
*/
26
- resources : [
27
+ resources : [
27
28
path . join ( __dirname , "../package.json" ) ,
28
29
path . join ( __dirname , "../build/**/*" ) ,
29
30
] ,
You can’t perform that action at this time.
0 commit comments