-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Build script and admin logo + description
- Loading branch information
1 parent
87b07c3
commit 3060bfe
Showing
2 changed files
with
57 additions
and
2 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 |
---|---|---|
@@ -0,0 +1,50 @@ | ||
#!/usr/bin/env bash | ||
|
||
base=${PWD} | ||
release=/tmp/recaptcha-release | ||
|
||
rm -rf ${release} | ||
mkdir ${release} | ||
|
||
git archive --format zip --worktree-attributes HEAD > ${release}/release.zip | ||
|
||
cd ${release} | ||
unzip release.zip -d ./ | ||
rm release.zip | ||
|
||
# Delete files | ||
rm -rf ${release}/build.sh | ||
|
||
# Install all Composer dependencies | ||
composer install --prefer-dist --optimize-autoloader --ignore-platform-reqs --no-dev | ||
|
||
cd "${release}/js" | ||
if [ -f bower.json ]; then | ||
bower install | ||
fi | ||
|
||
for app in forum admin; do | ||
cd "${release}/js" | ||
|
||
if [ -d $app ]; then | ||
cd $app | ||
|
||
if [ -f bower.json ]; then | ||
bower install | ||
fi | ||
|
||
npm install | ||
gulp --production | ||
rm -rf node_modules bower_components | ||
fi | ||
done | ||
|
||
rm -rf "${release}/extensions/${extension}/js/bower_components" | ||
wait | ||
|
||
# Finally, create the release archive | ||
cd ${release} | ||
find . -type d -exec chmod 0750 {} + | ||
find . -type f -exec chmod 0644 {} + | ||
chmod 0775 . | ||
zip -r recaptcha.zip ./ |
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