Prepares a WP plugin for sale by zipping and pushing only readme.txt to GitHub
Prepares a local plugin for sale by compressing the plugin into a .zip
file, moving it out to another folder on your local system, and pushing only the readme.txt file to GitHub so that it can be read by the Easy Digital Downloads Software Licensing readme parser.
Prerequisite: Main plugin file slug must be the same as the plugin folder name.
Prerequisite: The Version in the plugin header must start at the beginning of the line wihout a preceding *. So, the main plugin header must be WordPress style, not PHPDoc DocBlock style.
Prerequisite: Existing git repo consising of only the readme.txt file (use .gitignore to hide the rest), with its remote origin set up on GitHub. GitHub repo name must match the plugin slug, exactly.
-
Edit
ready.sh
to configure the first value at the top of the file. -
Place
ready.sh
in the local plugin directory. -
Run
./ready.sh
after updating the version in the main plugin file, and the changelog in the readme.txt file.
WARNING: this script pushes to GitHub.