Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit f7df16d

Browse files
committedMar 6, 2019
Set platform env var
1 parent 5d1d4df commit f7df16d

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed
 

‎.travis.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,11 @@ matrix:
55
include:
66
- os: linux
77
dist: ubuntu
8+
env:
9+
- PLATFORM="x86_64-linux"
810
- os: osx
11+
env:
12+
- PLATFORM="x86_64-apple-darwin"
913
before_install:
1014
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get install libxkbfile-dev
1115
libsecret-1-dev; fi
@@ -17,7 +21,7 @@ before_deploy:
1721
- git config --local user.name "$USER_NAME"
1822
- git config --local user.email "$USER_EMAIL"
1923
- git tag "$TRAVIS_TAG" "$TRAVIS_COMMIT"
20-
- yarn task package "$TRAVIS_TAG" "$TRAVIS_OS_NAME"
24+
- yarn task package "$TRAVIS_TAG" "$PLATFORM"
2125
deploy:
2226
provider: releases
2327
file_glob: true

‎packages/server/scripts/nexe.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const nexe = require("nexe");
1717
nexe.compile({
1818
debugBundle: true,
1919
input: path.join(__dirname, "../out/cli.js"),
20-
output: `cli-${process.env.TRAVIS_OS_NAME || os.platform()}`,
20+
output: `cli-${process.env.PLATFORM || os.platform()}`,
2121
targets: [os.platform()],
2222
/**
2323
* To include native extensions, do NOT install node_modules for each one. They

0 commit comments

Comments
 (0)
Please sign in to comment.