From 804b3ec7f8d7e01aa0c0d94146edece71be287f9 Mon Sep 17 00:00:00 2001 From: Ryan C Date: Fri, 7 Jun 2019 22:55:28 +0100 Subject: [PATCH] Add simple build script --- README.md | 2 ++ build.sh | 6 ++++++ 2 files changed, 8 insertions(+) create mode 100755 build.sh diff --git a/README.md b/README.md index cf48ac2..577e11f 100644 --- a/README.md +++ b/README.md @@ -6,5 +6,7 @@ Fork of the theme [Firefox 3 theme for Firefox 4+ Reloaded!](https://addons.mozi ## 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/moonfox3/). diff --git a/build.sh b/build.sh new file mode 100755 index 0000000..a8fe947 --- /dev/null +++ b/build.sh @@ -0,0 +1,6 @@ +#!/bin/bash +NAME=moonfox3 +VER=${1:-dev} +rm $NAME-$VER-pm.xpi +cd src/ +zip -qr9XD ../$NAME-$VER-pm.xpi *