-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.sh
28 lines (21 loc) · 783 Bytes
/
build.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/bash
APP_NAME=separated-values-formatter # short-name, jar and xpi files name. Must be lowercase with no spaces
CHROME_PROVIDERS="content" # which chrome providers we have (space-separated list)
ROOT_DIRS="defaults" # ...and these directories (space separated list)
ROOT_DIR=`pwd`
TMP_DIR=build
# remove any left-over files from previous build
rm -f $APP_NAME.jar $APP_NAME.xpi
rm -rf $TMP_DIR
mkdir -p $TMP_DIR/chrome/content
cp -v -R content $TMP_DIR/chrome
cp -v -R locale $TMP_DIR/chrome
cp -v -R skin $TMP_DIR/chrome
cp -v -R defaults $TMP_DIR
cp -v install.rdf $TMP_DIR
cp -v chrome.manifest.production $TMP_DIR/chrome.manifest
# generate the XPI file
cd $TMP_DIR
echo "Generating $APP_NAME.xpi..."
zip -r ../$APP_NAME.xpi *
cd "$ROOT_DIR"