Skip to content

@canuckistani /jpscripts.sh forked from anonymous/jpscripts.txt
Created

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Bash scripts to drive cfx without having to activate the jetpack environment.
#!/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" $@
#!/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.