Skip to content

Commit

Permalink
Updated demo section and improved build script
Browse files Browse the repository at this point in the history
  • Loading branch information
lmammino committed Apr 27, 2019
1 parent 74c3c70 commit 8c0fba2
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 7 deletions.
4 changes: 3 additions & 1 deletion README.md
Expand Up @@ -9,7 +9,9 @@ directly into your terminal.

## Demo!

[![asciicast](https://asciinema.org/a/dWJtrXA0HRqDJxndId9Xauz0e.svg)](https://asciinema.org/a/dWJtrXA0HRqDJxndId9Xauz0e)
![Demo image terminal](s3st.gif)

[See demo on ASCIInema](https://asciinema.org/a/dWJtrXA0HRqDJxndId9Xauz0e)

## Rationale

Expand Down
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.

5 changes: 4 additions & 1 deletion package.json
@@ -1,11 +1,14 @@
{
"name": "s3st",
"version": "0.0.2",
"version": "0.0.3",
"description": "A command line utility that allows you to stream data from multiple S3 objects directly into your terminal",
"main": "src/index.js",
"bin": {
"s3st": "src/cli.js"
},
"files": [
"src/"
],
"engines": {
"node": ">=10"
},
Expand Down
Binary file added s3st.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 10 additions & 4 deletions scripts/build.sh
Expand Up @@ -2,10 +2,16 @@

VERSION=$1
V=$(echo $VERSION | tr . _)
NODE_VERSION=12.0.0

for platform in "macos" "linux" "alpine" "win.exe"
for PLATFORM in "macos-x64" "linux-x64" "alpine-x64" "windows-x86"
do
DEST="build/s3st-${V}-${platform}"
node_modules/.bin/nexe . -t macos-x64-12.0.0 -o $DEST --temp .nexe
gzip $DEST
SUFFIX=$(echo $PLATFORM | cut -d'-' -f1)
if [ "$SUFFIX" == "windows" ]
then
SUFFIX="${SUFFIX}.exe"
fi
DEST="build/s3st-${V}-${SUFFIX}"
node_modules/.bin/nexe . -t ${PLATFORM}-${NODE_VERSION} -o ${DEST} --temp .nexe
gzip ${DEST}
done

0 comments on commit 8c0fba2

Please sign in to comment.