Skip to content

Commit

Permalink
Build script and admin logo + description
Browse files Browse the repository at this point in the history
  • Loading branch information
mtotheikle committed Sep 5, 2015
1 parent 87b07c3 commit 3060bfe
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 2 deletions.
50 changes: 50 additions & 0 deletions build.sh
@@ -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 ./
9 changes: 7 additions & 2 deletions flarum.json
@@ -1,9 +1,9 @@
{
"name": "recaptcha",
"title": "Google reCAPTCHA",
"description": null,
"description": "Stop registration spam by using the Google reCAPTCHA service",
"keywords": [],
"version": "0.1.1",
"version": "0.1.0",
"author": {
"name": "Michael Williams",
"email": "mtotheikle@gmail.com"
Expand All @@ -12,5 +12,10 @@
"require": {
"php": ">=5.4.0",
"flarum": ">0.1.0"
},
"icon": {
"name": "lock",
"backgroundColor": "#148E81",
"color": "#fff"
}
}

0 comments on commit 3060bfe

Please sign in to comment.