From a6beb3a9529fe55231fc7ee3b01013a369006c9f Mon Sep 17 00:00:00 2001 From: Ryan C Date: Sat, 13 Jul 2019 22:55:24 +0100 Subject: [PATCH] Add simple build script --- README.md | 6 ++++-- build.sh | 6 ++++++ 2 files changed, 10 insertions(+), 2 deletions(-) create mode 100755 build.sh diff --git a/README.md b/README.md index cad300e..d4317c9 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,12 @@ # Modoki Moon ![Preview](http://i65.tinypic.com/2wqefjm.png) -Remake of the [Modern Modoki](https://addons.mozilla.org/firefox/addon/modern-modoki/) theme for Pale Moon. +Remake of the "Modern Modoki" theme for Pale Moon. ## Building Simply download the contents of the "src" folder and pack the contents into a .zip file. Then, rename the file to .xpi and drag into the browser. +On Unix systems (or Windows 10, with [WSL](https://docs.microsoft.com/en-us/windows/wsl/about)) you can optionally run `build.sh` instead. Running this as-is will produce a .xpi file ending in `-dev`, and if run from the command line and appending a number (e.g. `./build.sh 2`) will append that number to the filename instead. + ## Download -You can grab the latest release either from the Releases section of this repository, or the [Pale Moon Add-Ons Site](https://addons.palemoon.org/themes/complete/modoki-moon/). +You can grab the latest release either from the Releases section of this repository, or the [Pale Moon Add-Ons Site](https://addons.palemoon.org/addon/modoki-moon/). diff --git a/build.sh b/build.sh new file mode 100755 index 0000000..485d6a9 --- /dev/null +++ b/build.sh @@ -0,0 +1,6 @@ +#!/bin/bash +NAME=modokimoon +VER=${1:-dev} +rm $NAME-$VER-pm.xpi +cd src/ +zip -qr9XD ../$NAME-$VER-pm.xpi *