Skip to content

Instantly share code, notes, and snippets.

@miketaylr
Created October 29, 2010 18:14
Show Gist options
  • Save miketaylr/654044 to your computer and use it in GitHub Desktop.
Save miketaylr/654044 to your computer and use it in GitHub Desktop.
Handy script for developing Opera extensions
#!/bin/bash
# zip up all the files in the current directory
if [ $1 ]; then
echo "Creating $1.oex"
zip -r $1.zip .
# rename the .zip file to an .oex file
mv $1.zip $1.oex
# open the .oex in Opera
open $1.oex
else
echo "Please give your extension a name"
fi
@miketaylr
Copy link
Author

Jam it in your path, or make a bash alias. It will zip up everything in your directory and give it a name, then open up the Install Extension prompt in Opera.

Usage: /development/folder> package name-of-extension

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment