diff --git a/.gitignore b/.gitignore index 2471394..2e92c4a 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ +/asset/ /vendor/ /.idea/ .*.sw[op] diff --git a/bin/make-release.sh b/bin/make-release.sh index 25f3788..ba706a7 100755 --- a/bin/make-release.sh +++ b/bin/make-release.sh @@ -27,7 +27,8 @@ git checkout -b "$BRANCH" || fail "Version branch $BRANCH already exists" git rm -rf vendor rm -rf vendor rm -f composer.lock -composer install || fail "composer install failed" +composer install --no-scripts || fail "composer install failed" +composer run-script post-update-cmd -- copy-assets find vendor/ -type f -name "*.php" \ | grep -v '/examples/' \ | grep -v '/example/' \ @@ -36,7 +37,7 @@ find vendor/ -type f -name "*.php" \ | xargs -L1 git add -f find vendor/ -type f -name LICENSE | xargs -L1 git add -f find vendor/ -type f -name '*.json' | xargs -L1 git add -f -find vendor -type f -path 'vendor/*/asset/*' | xargs -L1 git add -f +find asset/ -type f | xargs -L1 git add -f echo "v$VERSION" > VERSION git add VERSION git add composer.lock -f