Skip to content

Commit

Permalink
Updated build.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanpoensgen committed Feb 27, 2020
1 parent 122309b commit 4db4e4d
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions bin/build.sh
Original file line number Diff line number Diff line change
@@ -1,22 +1,6 @@
#!/usr/bin/env bash

pluginName=${PWD##*/}

commit=$1
if [ -z ${commit} ]; then
commit=$(git tag --sort=-creatordate | head -1)
if [ -z ${commit} ]; then
commit="master";
fi
fi

# Remove old release
rm -rf ${pluginName}-*.zip

# Build new release
npm install --prefix src/Resources/app/storefront
cd ../../../
./psh.phar administration:build
./psh.phar storefront:build
cd custom/plugins/${pluginName}
git archive --prefix ${pluginName}/ ${commit} --format=zip > ${pluginName}-${commit}.zip

0 comments on commit 4db4e4d

Please sign in to comment.