Created — forked from anonymous/jpscripts.txt

Embed URL

HTTPS clone URL

SSH clone URL

You can clone with HTTPS or SSH.

Download Gist

Bash scripts to drive cfx without having to activate the jetpack environment.

View jpscripts.sh
1 2 3 4 5 6 7 8 9 10 11
#!/bin/bash
 
# edit these variables to match your own use case.
PY=`which python`
CFX="$HOME/code/jetpack/addon-sdk/bin/cfx"
#CFX="$HOME/code/jetpack/testing/addon-sdk-1.2b1/bin/cfx"
FF="/Applications/Aurora.app"
P="$HOME/Library/Application\ Support/Firefox/Profiles/b271f03z.Firebug"
 
$PY $CFX --binary=$FF --profiledir="$P" $@
 
View jpscripts.sh
1 2 3 4 5 6 7 8 9
#!/bin/bash
# This script:
# 1. creates a directory using the first argument as the name.
# 2. runs cfx init to create a skeleton add-on
# 3. zeros out the sample code to leave us with nice clean blank files.
 
_PWD=`pwd`
mkdir -p "$_PWD/$1" && cd "$_PWD/$1" && jetpack init
echo "" > lib/main.js && echo "" > doc/main.md && echo "" > test/test-main.js && echo "" > ./README.md
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.