Skip to content

Commit

Permalink
Tried to make it New Firefox Compatible
Browse files Browse the repository at this point in the history
  • Loading branch information
Rick Pastoor committed Nov 14, 2017
1 parent d5a971e commit 03455ae
Show file tree
Hide file tree
Showing 6 changed files with 35 additions and 37 deletions.
2 changes: 1 addition & 1 deletion config
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export SCRUMMER_VERSION="0.24"
export SCRUMMER_VERSION="0.25"
9 changes: 0 additions & 9 deletions platform/firefox/index.js

This file was deleted.

24 changes: 24 additions & 0 deletions platform/firefox/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"name": "Scrummer",
"version": "SCRUMMER_VERSION",
"description": "Adds Storypoints to Trello",
"content_scripts": [
{
"run_at": "document_end",
"matches": ["https://trello.com/*"],
"js": ["scrummer.js"],
"css": ["scrummer.css"]
}
],
"manifest_version" : 2,
"applications": {
"gecko": {
"id": "scrummer@jetpack"
}
},
"icons": {
"48": "img/icon48.png",
"128": "img/icon128.png",
"1024": "img/icon1024.png"
}
}
14 changes: 0 additions & 14 deletions platform/firefox/package.json

This file was deleted.

1 change: 0 additions & 1 deletion tools/make-chromium.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

source ./config

echo "*** scrummer(Chromium): Creating package"
echo "*** scrummer(Chromium): Copying files"

DES=./dist/build/scrummer.chromium
Expand Down
22 changes: 10 additions & 12 deletions tools/make-firefox.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,26 +6,24 @@ source ./config

echo "*** scrummer.firefox: Copying files"

DES=dist/build/scrummer.firefox
DES=./dist/build/scrummer.firefox
rm -rf $DES
mkdir -p $DES
mkdir -p $DES/data
mkdir -p $DES/img/

cp -R src/* $DES/data
cp platform/firefox/index.js $DES/
cp platform/firefox/package.json $DES/
cp -R platform/chromium/img $DES/
mv $DES/img/icon128.png $DES/icon.png
cp -R ./src/* $DES/
cp -R ./platform/chromium/img/* $DES/img
cp ./platform/firefox/manifest.json $DES/

# Replace version
sed -i.bak 's/SCRUMMER_VERSION/'$SCRUMMER_VERSION'/g' $DES/package.json
rm $DES/package.json.bak
sed -i.bak 's/SCRUMMER_VERSION/'$SCRUMMER_VERSION'/g' $DES/manifest.json
rm $DES/manifest.json.bak

if [ "$1" = all ]; then
echo "*** scrummer.firefox: Creating package..."
pushd $DES/
jpm xpi
mv ./scrummer.xpi ./../scrummer.firefox.xpi
pushd $(dirname $DES/)
zip scrummer.firefox.xpi -qr $(basename $DES/)
popd
fi

echo "*** scrummer.firefox: Package done."

0 comments on commit 03455ae

Please sign in to comment.