Skip to content

Commit

Permalink
Fix up the deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
LeonBlade committed Apr 23, 2020
1 parent 43e3f9f commit aeeb318
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
5 changes: 2 additions & 3 deletions .travis.build.sh
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
#!/bin/bash

# Copy the node binaries into the main folder
cp node_modules/dxt/build/Release/dxt.node .
cp node_modules/lz4/build/Release/xxhash.node .
cp node_modules/lz4/build/Release/lz4.node .

if [[ $TRAVIS_OS_NAME == 'osx' ]]; then
pkg xnbcli.js --targets macos
zip xnbcli-macos.zip xnbcli dxt.node xxhash.node lz4.node packed unpacked pack.command unpack.command
zip xnbcli-macos.zip xnbcli xxhash.node lz4.node packed unpacked pack.command unpack.command
else
pkg xnbcli.js --targets linux
zip xnbcli-linux.zip xnbcli dxt.node xxhash.node lz4.node packed unpacked pack.sh unpack.sh
zip xnbcli-linux.zip xnbcli xxhash.node lz4.node packed unpacked pack.sh unpack.sh
fi
5 changes: 2 additions & 3 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,9 @@ install:
- npm i
- npm i -g pkg
- pkg -t win-%PLATFORM% xnbcli.js
- cp node_modules/dxt/build/Release/dxt.node .
- cp node_modules/lz4/build/Release/lz4.node .
- cp node_modules/lz4/build/Release/xxhash.node .
- 7z a xnbcli-windows-%PLATFORM%.zip xnbcli.exe dxt.node lz4.node xxhash.node packed unpacked unpack.bat pack.bat
- 7z a xnbcli-windows-%PLATFORM%.zip xnbcli.exe lz4.node xxhash.node packed unpacked unpack.bat pack.bat

artifacts:
- path: xnbcli-windows-%PLATFORM%.zip
Expand All @@ -36,4 +35,4 @@ deploy:
artifact: xnbcli-windows-%PLATFORM%.zip
on:
branch: master
appveyor_repo_tag: true
appveyor_repo_tag: true
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit aeeb318

Please sign in to comment.