-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bump to v1.2, support alpine, POSIX-compliant postinstall script
- Loading branch information
Showing
5 changed files
with
18 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,16 @@ | ||
#!/bin/bash | ||
#!/bin/sh | ||
mkdir -p bin || exit 1 | ||
if [[ "$OSTYPE" == "linux-gnu"* ]]; then | ||
MINIFIER_BIN=linux | ||
elif [[ "$OSTYPE" == "darwin"* ]]; then | ||
MINIFIER_BIN=macos | ||
case $OSTYPE in | ||
"linux-gnu"*) MINIFIER_BIN=linux ;; | ||
"darwin"*) MINIFIER_BIN=macos ;; | ||
esac | ||
if [ -e /etc/os-release ]; then | ||
. /etc/os-release | ||
case $ID in | ||
"alpine"*) MINIFIER_BIN=alpine ;; | ||
*) MINIFIER_BIN=linux ;; | ||
esac | ||
fi | ||
echo "$MINIFIER_BIN detected, downloading minifier binary..." | ||
curl -L --url https://github.com/sam0x17/es6-minifier/releases/download/minify-dist/minify-$MINIFIER_BIN --output bin/es6-minifier || exit 1 | ||
curl -L --url https://github.com/sam0x17/es6-minifier/releases/download/0.1.2/minify-$MINIFIER_BIN --output bin/es6-minifier || exit 1 | ||
chmod +x bin/es6-minifier || exit 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
name: es6-minifier | ||
version: 0.1.0 | ||
version: 0.1.2 | ||
|
||
authors: | ||
- Sam Johnson <sam@durosoft.com> | ||
|