Skip to content
This repository has been archived by the owner on Dec 4, 2023. It is now read-only.

Commit

Permalink
Minor updates, add prepare-release script
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonmccallister committed May 9, 2016
1 parent 7b3da36 commit ff5ca67
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ElixirPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,8 @@ public function defineSettings()
*/
public function getSettingsHtml()
{
return craft()->templates->render('elixir/settings', array(
return craft()->templates->render('elixir/settings', [
'settings' => $this->getSettings()
));
]);
}
}
23 changes: 23 additions & 0 deletions prepare-release.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#!/bin/bash
# Prepare a plugin release

# ask/get the plugin handle
read -p "Enter the plugin handle (e.g. handle):" handle

# ask/get the version from command line (e.g 1.0.0)
read -p "Enter the plugin version to prepare (e.g. 1.0.0):" version

# set the release path
releasePath=~/Desktop/$handle

# move folder to ~/Desktop
cp -R . $releasePath

# install composer dependencies
cd $releasePath && composer install

# remove support files (LICENSE, README.me, .gitignore and etc.)
cd $releasePath && rm -rf {.idea,LICENSE,README.md,.gitignore,prepare-release.sh,releases.json,.git}

# zip the folder based on the handle
zip -r ~/Desktop/$handle-$version.zip $releasePath

0 comments on commit ff5ca67

Please sign in to comment.