From 37821cbb3a89473c0d8ae3400710deeed4913c35 Mon Sep 17 00:00:00 2001 From: "Scott E. Graves" Date: Thu, 4 Jul 2019 14:37:56 -0500 Subject: [PATCH] OpenSUSE 15.0/OpenSUSE 15.1 support --- CHANGELOG.md | 6 +++++- README.md | 2 ++ public/detect_linux.sh | 10 ++++++++++ releases.json | 16 ++++++++++++++++ src/constants.js | 2 ++ 5 files changed, 35 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2bca85e..993f9a2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,9 @@ # Changelog # +## 1.0.4 ## +* Additional Linux distribution support: + * OpenSUSE Leap 15 + * OpenSUSE Leap 15.1 + ## 1.0.3 ## * Linux distribution support * Arch Linux @@ -17,7 +22,6 @@ * Ubuntu 19.04 * Removed `react-css-modules` dependency * Removed Hyperspace (no active development/insufficient host network) -* Added signature or SHA-256 validation to downloads * Restore main window on error message ## 1.0.2 ## diff --git a/README.md b/README.md index 9dfd4c6..7b58066 100644 --- a/README.md +++ b/README.md @@ -24,6 +24,8 @@ Repertory allows you to mount Sia and/or SiaPrime blockchain storage solutions v * Fedora 30 * Linux Mint 19 * Linux Mint 19.1 + * OpenSUSE Leap 15 + * OpenSUSE Leap 15.1 * Solus * Ubuntu 18.04 * Ubuntu 18.10 diff --git a/public/detect_linux.sh b/public/detect_linux.sh index c20dcf0..edbccdd 100644 --- a/public/detect_linux.sh +++ b/public/detect_linux.sh @@ -65,6 +65,16 @@ elif [ -f /etc/os-release ]; then . /etc/os-release if [ "$ID" == "arch" ]; then DISTNAME=arch + elif [ "$ID" == "opensuse-leap" ]; then + if [ "$VERSION_ID" == "15.0" ]; then + DISTNAME=opensuse + DISTVER=15 + elif [ "$VERSION_ID" == "15.1" ]; then + DISTNAME=opensuse + DISTVER=15.1 + else + resetDistVer + fi else resetDistVer fi diff --git a/releases.json b/releases.json index a592332..e3af09e 100644 --- a/releases.json +++ b/releases.json @@ -56,6 +56,22 @@ ] } }, + "opensuse15": { + "1.0.4": { + "sha256": "", + "sig": "", + "urls": [ + ] + } + }, + "opensuse15.1": { + "1.0.4": { + "sha256": "", + "sig": "", + "urls": [ + ] + } + }, "solus": { "1.0.4": { "sha256": "", diff --git a/src/constants.js b/src/constants.js index 21f48b5..ee65d9c 100644 --- a/src/constants.js +++ b/src/constants.js @@ -38,6 +38,8 @@ exports.DATA_LOCATIONS = { fedora29: '~/.local/repertory/ui', fedora30: '~/.local/repertory/ui', linux: '~/.local/repertory/ui', + opensuse15: '~/.local/repertory/ui', + 'opensuse15.1': '~/.local/repertory/ui', solus: '~/.local/repertory/ui', 'ubuntu18.04': '~/.local/repertory/ui', 'ubuntu18.10': '~/.local/repertory/ui',