-
Notifications
You must be signed in to change notification settings - Fork 217
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
35 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,10 @@ | ||
.idea | ||
data | ||
tmp | ||
temp | ||
node_modules | ||
app/node_modules | ||
npm-debug.log | ||
scripts | ||
docs | ||
_releases |
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 |
---|---|---|
|
@@ -3,3 +3,4 @@ data | |
temp | ||
node_modules | ||
npm-debug.log | ||
_releases |
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 |
---|---|---|
@@ -0,0 +1,32 @@ | ||
#!/usr/bin/env bash | ||
set -e | ||
|
||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | ||
cd $DIR | ||
|
||
# Get the current tag or use commit hash if there's none | ||
NAME=$(git describe --exact-match --tags $(git log -n1 --pretty='%h') 2>/dev/null || git log -n1 --pretty='%h') | ||
|
||
echo "Building app" | ||
cd $DIR/../app | ||
npm install | ||
npm run build | ||
|
||
|
||
echo "Bundling to _releases/psitransfer-$NAME.tar.gz" | ||
cd $DIR/.. | ||
mkdir -p _releases | ||
|
||
tar -czf _releases/psitransfer-$NAME.tar.gz --transform "s~^~psitransfer-$NAME/~" \ | ||
LICENSE \ | ||
README.md \ | ||
Dockerfile \ | ||
.dockerignore \ | ||
app.js \ | ||
config.js \ | ||
package.json \ | ||
docs \ | ||
lib \ | ||
public | ||
|
||
echo "DONE" |
This file was deleted.
Oops, something went wrong.