Build and run cross-platform browser extensions from one codebase.
Please see the introductory blog post for details on the history of this project.
Documentation can be found here.
- Python dependencies:
sudo apt-get install python-setuptools python-pip python-virtualenv
- Mercurial:
sudo apt-get install mercurial
- Git:
sudo apt-get install git
- Java Runtime:
sudo apt-get install default-jre
- NSIS:
sudo apt-get install nsis
(Only needed if you want to do IE builds)
- Python dependencies:
sudo easy_install pip virtualenv
- Mercurial: http://mercurial.selenic.com
- Git: http://git-scm.com
-
Python 2.7.5: http://www.python.org/ftp/python/2.7.5/python-2.7.5.msi
Add the following paths: (Control Panel -> System -> Advanced -> Environment Variables)
C:\Python27;C:\Python27\Scripts
-
Python setuptools: https://pypi.python.org/pypi/setuptools/1.0#windows
-
Python dependencies:
easy_install pip virtualenv
-
Mercurial: http://mercurial.selenic.com
-
Git: http://git-scm.com/download/win (Choose "Run Git from the Windows Command Prompt option!)
-
Putty: http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
-
Java Runtime: http://java.com/en/download/index.jsp
-
NSIS: http://nsis.sourceforge.net/ (Version 2.46)
Add the following paths: (Control Panel -> System -> Advanced -> Environment Variables)
C:\Program Files (x86)\NSIS
-
signtool: http://msdn.microsoft.com/en-us/library/windows/desktop/aa387764(v=vs.85).aspx
git clone https://github.com/trigger-corp/browser-extensions.git
cd browser-extensions
virtualenv --no-site-packages ./python-env
source ./python-env/bin/activate
.\python-env\Scripts\activate.bat
cd generate
pip install -r requirements.txt
python setup.py develop
cd ..
source ./python-env/bin/activate
.\python-env\Scripts\activate.bat
Create a directory for your extension, change into it and then run:
forge-extension create
forge-extension build <platform>
Where <platform>
is one of chrome
, safari
, firefox
or ie
forge-extension package <platform>
Where <platform>
is one of chrome
, safari
, firefox
or ie
forge-module-test-app -o ~/forge-workspace/v2automated/src -t automated all
forge-module-test-app -o ~/forge-workspace/v2interactive/src -t interactive all