Skip to content

Commit b9f85d6

Browse files
committed
Set platform env var
1 parent 69133cb commit b9f85d6

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.travis.yml

+5-1
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

+1-1
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)