diff --git a/Makefile b/Makefile index 3f44971..206b4e6 100644 --- a/Makefile +++ b/Makefile @@ -1,9 +1,20 @@ -QMAKE = qmake-qt5 -ifeq (, $(shell which qmake-qt5 2>/dev/null)) - ifeq (, $(shell which qmake 2>/dev/null)) +SYSTEM = +ifeq (Cygwin,$(shell uname -o)) + SYSTEM = Windows +else +ifeq (GNU/Linux,$(shell uname -o)) + SYSTEM = Linux + + QMAKE = qmake-qt5 + ifeq (, $(shell which qmake-qt5 2>/dev/null)) + ifeq (, $(shell which qmake 2>/dev/null)) $(error "No qmake in $(PATH)") + endif + QMAKE = qmake endif - QMAKE = qmake +else + $(error "Unknown system") +endif endif .PHONY: clean \ @@ -27,14 +38,19 @@ clean: rm -f *.xpi ;\ rm -f SysTray-X ;\ rm -rf app/build ;\ + rm -rf app/build32 ;\ + rm -rf app/build64 ;\ + rm -rf app/build-* ;\ + rm -rf app/dist* ;\ systray-x-xpi: - @echo "Creating systray-x.xpi" ;\ - rm -f systray-x.xpi ;\ + @echo "Creating systray-x@Ximi1970.xpi" ;\ + rm -f systray-x@Ximi1970.xpi ;\ cd webext ;\ - zip ../systray-x.xpi -qr * ;\ + zip ../systray-x@Ximi1970.xpi -qr * ;\ cd .. +ifeq (Linux,$(SYSTEM)) systray-x-app: @echo "Creating systray-x app" ;\ rm -f SysTray-X ;\ @@ -44,3 +60,17 @@ systray-x-app: make ;\ cd ../.. ;\ cp app/build/SysTray-X . +else +systray-x-app: + @echo "Creating systray-x app" ;\ + rm -f SysTray-X ;\ + mkdir -p app/build32 ;\ + mkdir -p app/dist/win32 ;\ + cd app/build32 ;\ + ../build.bat x86 5.14.1 ;\ + cd ../.. ;\ + mkdir -p app/build64 ;\ + cd app/build64 ;\ + ../build.bat x86_64 5.14.1 ;\ + cd ../.. +endif diff --git a/README.md b/README.md index b11cddf..5cd7b4a 100644 --- a/README.md +++ b/README.md @@ -9,8 +9,73 @@ The add-on and system tray application can do: - show / hide Thunderbird (minimize) - minimizing hides to tray - minimize on startup -- to be implemented: start a new mail -- to be implemented: open the last used account + +## Binaries (System) + +These packages will install the Thunderbird Add-on and companion app system wide. +Root credentials are required. + +### openSuSE +#### Leap 15.1 + +```bash +sudo zypper ar -f https://download.opensuse.org/repositories/home:/Ximi1970:/Mozilla:/Add-ons/openSUSE_Leap_15.1/ SysTray-X +sudo zypper in systray-x +``` + +#### Leap 15.2 + +```bash +sudo zypper ar -f https://download.opensuse.org/repositories/home:/Ximi1970:/Mozilla:/Add-ons/openSUSE_Leap_15.2/ SysTray-X +sudo zypper in systray-x +``` + +#### Tumbleweed + +```bash +sudo zypper ar -f https://download.opensuse.org/repositories/home:/Ximi1970:/Mozilla:/Add-ons/openSUSE_Tumbleweed/ SysTray-X +sudo zypper in systray-x +``` + +#### SLE 15 + +```bash +sudo zypper ar -f https://download.opensuse.org/repositories/home:/Ximi1970:/Mozilla:/Add-ons/openSUSE_SLE_15_SP1/ SysTray-X +sudo zypper in systray-x +``` + +### xUbuntu + +#### 19.10 + +```bash +wget -q https://download.opensuse.org/repositories/home:/Ximi1970:/Mozilla:/Add-ons/xUbuntu_19.10/Release.key +sudo apt-key add Release.key +sudo bash -c "echo 'deb https://download.opensuse.org/repositories/home:/Ximi1970:/Mozilla:/Add-ons/xUbuntu_19.10 ./" > /etc/apt/source.list.d/systray-x.list'``` +sudo apt update +sudo apt install systray-x +``` + +#### 18.04 LTS + +```bash +wget -q https://download.opensuse.org/repositories/home:/Ximi1970:/Mozilla:/Add-ons/xUbuntu_18.04/Release.key +sudo apt-key add Release.key +sudo bash -c 'echo "deb https://download.opensuse.org/repositories/home:/Ximi1970:/Mozilla:/Add-ons/xUbuntu_18.04 ./" > /etc/apt/source.list.d/systray-x.list'``` +sudo apt update +sudo apt install systray-x +``` + +## Binaries (User) + +User installable package. +No root credentials required. + +Download the installer here: + +[Companion installer](https://github.com/Ximi1970/systray-x/releases) + +And install the add-on using the Thunderbird Add-on / Extensions store. ## Building @@ -53,6 +118,14 @@ Clone the repository using TortoiseGit: ... +### Remarks + +Branches: + +master : Should be stable and working for all systems +develop : Working but maybe not for all systems +feature-xxx : Experimental + ## Contributers Luigi Baldoni \ : Initial setup of the OpenSuSE Build Service rpm package. diff --git a/README.references.txt b/README.references.txt index 3f2a55c..4089c1c 100644 --- a/README.references.txt +++ b/README.references.txt @@ -1,5 +1,20 @@ #