Skip to content

Commit

Permalink
added script for packaging
Browse files Browse the repository at this point in the history
  • Loading branch information
Philipp Nebert committed May 30, 2017
1 parent 0241153 commit 49c24f9
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions package.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/bash

if [ ! -f manifest.json ]; then
echo "Please execute inside project directory!"
fi

excludedfiles=("package.sh" "icons/pwdhash-icon.svg")

currentversion=$(grep -oP '"version": "\K[\d.]+' manifest.json)

zip -r -FS ../pwdhash-${currentversion}.zip * -x ${excludedfiles[@]}

0 comments on commit 49c24f9

Please sign in to comment.