make-release.sh: Copy assets, don't include sources of them

This commit is contained in:
Johannes Meyer 2021-05-04 10:21:50 +02:00
parent d11bbb0f52
commit da439fd52a
2 changed files with 4 additions and 2 deletions

1
.gitignore vendored
View File

@ -1,3 +1,4 @@
/asset/
/vendor/
/.idea/
.*.sw[op]

View File

@ -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