diff --git a/.gitignore b/.gitignore index 36a416f..126cf94 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,6 @@ .DS_Store dist +platform/safari/apple-intermediate.pem +platform/safari/apple-root.pem +platform/safari/cert.pem +platform/safari/privatekey.pem diff --git a/README.md b/README.md index 4ccaffc..00fba99 100644 --- a/README.md +++ b/README.md @@ -52,3 +52,33 @@ npm install jpm --global ``` With JPM, you can run the plugin in a debug environment. Change your directory to `dist/build/scrummer.firefox` and run `jpm run`. Now open your Trello board to see if your changes are working as expected. Happy coding! + +## Developing and testing Safari + +To build your own version of the Scrummer for Safari plugin, follow these steps: + +Install xar-js: + +``` +npm intall xar-js --global +``` + +You need to [follow the xar-js README](https://github.com/robertknight/xar-js#building-a-safari-extension) on how to export the required certificate files +in order to build a valid version of the extension. + +After following this guide, you should have these files inside your `platform/safari` folder: + +| Filename | +|:-----------------------| +| apple-intermediate.pem | +| apple-root.pem | +| cert.pem | +| privatekey.pem | + +Almost ready. Now run this command: + +``` +tools/make-safari.sh all +``` + +The script will build a `scrummer.safariextz`. Doubleclick it and Safari will ask you if you want to install the extension. diff --git a/platform/chromium/manifest.json b/platform/chromium/manifest.json index 0d27d2f..a1f9eea 100644 --- a/platform/chromium/manifest.json +++ b/platform/chromium/manifest.json @@ -1,6 +1,6 @@ { "name": "Scrummer", - "version": "0.18", + "version": "0.19", "description": "Adds Storypoints to Trello", "content_scripts": [ { diff --git a/platform/firefox/package.json b/platform/firefox/package.json index c0d24b6..7bec091 100644 --- a/platform/firefox/package.json +++ b/platform/firefox/package.json @@ -2,7 +2,7 @@ "id": "scrummer@jetpack", "title": "Scrummer", "name": "scrummer", - "version": "0.18", + "version": "0.19", "description": "", "main": "index.js", "author": "Rick Pastoor", diff --git a/platform/safari/Info.plist b/platform/safari/Info.plist new file mode 100644 index 0000000..210ac5b --- /dev/null +++ b/platform/safari/Info.plist @@ -0,0 +1,52 @@ + + + + + Builder Version + 10600.8.9 + CFBundleDisplayName + Scrummer + CFBundleIdentifier + nl.rickpastoor.scrummer + CFBundleInfoDictionaryVersion + 6.0 + CFBundleShortVersionString + 0.19 + CFBundleVersion + 1 + Chrome + + Content + + Scripts + + Start + + scrummer.js + + + Stylesheets + + scrummer.css + + + DeveloperIdentifier + ZCXSU9SYUC + ExtensionInfoDictionaryVersion + 1.0 + Permissions + + Website Access + + Allowed Domains + + *.trello.com + + Include Secure Pages + + Level + Some + + + + diff --git a/src/scrummer.css b/src/scrummer.css index 8c50c22..ee2480e 100644 --- a/src/scrummer.css +++ b/src/scrummer.css @@ -26,10 +26,11 @@ font-size: 18px; padding: 3px 9px; margin-right: 5px; + color: #fff !important; } .scrummer-picker-button:hover { - background-color: #4CB2D9; + color: #ccc !important; } .scrummer-separator-card { @@ -44,5 +45,5 @@ text-align: center; top: 2px; position: relative; - color: #fff; + color: #fff !important; } diff --git a/tools/make-firefox.sh b/tools/make-firefox.sh index 30f6169..542b08a 100755 --- a/tools/make-firefox.sh +++ b/tools/make-firefox.sh @@ -2,7 +2,7 @@ # # This script assumes a linux environment -echo "*** uMatrix.firefox: Copying files" +echo "*** scrummer.firefox: Copying files" DES=dist/build/scrummer.firefox rm -rf $DES diff --git a/tools/make-safari.sh b/tools/make-safari.sh new file mode 100755 index 0000000..9b4e151 --- /dev/null +++ b/tools/make-safari.sh @@ -0,0 +1,20 @@ +#!/bin/bash +# +# This script assumes a linux environment + +echo "*** scrummer.safari: Copying files" + +DES=dist/build/scrummer.safariextension +rm -rf $DES +mkdir -p $DES + +cp -R src/* $DES/ +cp platform/safari/Info.plist $DES/ + +if [ "$1" = all ]; then + echo "*** scrummer.safari: Creating package..." + pushd $(dirname $DES/) + xarjs create scrummer.safariextz --cert ./../../platform/safari/cert.pem --cert ./../../platform/safari/apple-intermediate.pem --cert ./../../platform/safari/apple-root.pem --private-key ./../../platform/safari/privatekey.pem $(basename $DES/) +fi + +echo "*** scrummer.safari: Package done."