Reduce number of Linux binaries

This commit is contained in:
2020-04-20 13:16:49 -05:00
parent 4e7fb325ef
commit aa5e1fe3e4
3 changed files with 42 additions and 24 deletions

View File

@@ -3,6 +3,13 @@
* Skynet support * Skynet support
* Synchronize UI major/minor version with `repertory` major/minor version * Synchronize UI major/minor version with `repertory` major/minor version
* Added `Password` component * Added `Password` component
* Reduced number of Linux binaries to:
* CentOS 7
* Debian 9
* Debian 10
* Debian 9 ARM64
* Debian 10 ARM64
* Solus
## 1.1.5 ## 1.1.5
* \#38: Enhance new repertory release available notification * \#38: Enhance new repertory release available notification

View File

@@ -14,8 +14,8 @@ if [ -f /etc/centos-release ]; then
DISTNAME=centos DISTNAME=centos
DISTVER=7 DISTVER=7
elif [ "$VERSION_ID" = "8" ]; then elif [ "$VERSION_ID" = "8" ]; then
DISTNAME=centos DISTNAME=debian
DISTVER=8 DISTVER=10
else else
resetDistVer resetDistVer
fi fi
@@ -24,8 +24,12 @@ elif [ -f /etc/fedora-release ]; then
if [ "$VERSION_ID" != "31" ] && [ "$VERSION_ID" != "30" ] && [ "$VERSION_ID" != "29" ] && [ "$VERSION_ID" != "28" ]; then if [ "$VERSION_ID" != "31" ] && [ "$VERSION_ID" != "30" ] && [ "$VERSION_ID" != "29" ] && [ "$VERSION_ID" != "28" ]; then
resetDistVer resetDistVer
else else
DISTNAME=fedora DISTNAME=debian
DISTVER=$VERSION_ID if [ "$VERSION_ID" = "28" ]; then
DISTVER=9
else
DISTVER=10
fi
fi fi
elif [ -f /etc/solus-release ]; then elif [ -f /etc/solus-release ]; then
DISTNAME=solus DISTNAME=solus
@@ -35,16 +39,16 @@ elif [ -f /etc/lsb-release ]; then
DISTVER=${DISTRIB_RELEASE} DISTVER=${DISTRIB_RELEASE}
if [ "$DISTNAME" != "ubuntu" ]; then if [ "$DISTNAME" != "ubuntu" ]; then
if [ "$DISTNAME" = "linuxmint" ]; then if [ "$DISTNAME" = "linuxmint" ]; then
if [ "$DISTVER" = "19" ] || [ "$DISTVER" = "19.1" ] || [ "$DISTVER" = "19.2" ]; then if [ "$DISTVER" = "19" ] || [ "$DISTVER" = "19.1" ] || [ "$DISTVER" = "19.2" ] || [ "$DISTVER" = "19.3" ]; then
DISTNAME=ubuntu DISTNAME=debian
DISTVER=18.04 DISTVER=9
else else
resetDistVer resetDistVer
fi fi
elif [ "$DISTNAME" = "elementary" ]; then elif [ "$DISTNAME" = "elementary" ]; then
if [ "$DISTVER" = "5.0" ]; then if [ "$DISTVER" = "5.0" ] || [ "$DISTVER" = "5.1" ]; then
DISTNAME=ubuntu DISTNAME=debian
DISTVER=18.04 DISTVER=9
else else
resetDistVer resetDistVer
fi fi
@@ -53,6 +57,13 @@ elif [ -f /etc/lsb-release ]; then
fi fi
elif [ "$DISTVER" != "18.04" ] && [ "$DISTVER" != "18.10" ] && [ "$DISTVER" != "19.04" ] && [ "$DISTVER" != "19.10" ]; then elif [ "$DISTVER" != "18.04" ] && [ "$DISTVER" != "18.10" ] && [ "$DISTVER" != "19.04" ] && [ "$DISTVER" != "19.10" ]; then
resetDistVer resetDistVer
else
DISTNAME=debian
if [ "$DISTVER" = "18.04" ]; then
DISTVER=9
else
DISTVER=10
fi
fi fi
fi fi
@@ -68,23 +79,24 @@ if [ "$DISTNAME" = "unknown" ]; then
if [ -f /etc/os-release ]; then if [ -f /etc/os-release ]; then
. /etc/os-release . /etc/os-release
if [ "$ID" = "arch" ]; then if [ "$ID" = "arch" ]; then
DISTNAME=arch DISTNAME=debian
DISTVER=10
elif [ "$ID" = "antergos" ] || [ "$ID" = "manjaro" ]; then elif [ "$ID" = "antergos" ] || [ "$ID" = "manjaro" ]; then
DISTNAME=ubuntu DISTNAME=debian
DISTVER=18.10 DISTVER=9
elif [ "$ID" = "opensuse-leap" ]; then elif [ "$ID" = "opensuse-leap" ]; then
if [ "$VERSION_ID" = "15.0" ]; then if [ "$VERSION_ID" = "15.0" ]; then
DISTNAME=opensuse DISTNAME=debian
DISTVER=15 DISTVER=9
elif [ "$VERSION_ID" = "15.1" ]; then elif [ "$VERSION_ID" = "15.1" ]; then
DISTNAME=opensuse DISTNAME=debian
DISTVER=15.1 DISTVER=9
else else
resetDistVer resetDistVer
fi fi
elif [ "$ID" = "opensuse-tumbleweed" ]; then elif [ "$ID" = "opensuse-tumbleweed" ]; then
DISTNAME=tumbleweed DISTNAME=debian
DISTVER= DISTVER=10
else else
resetDistVer resetDistVer
fi fi

View File

@@ -33,13 +33,12 @@ const REPERTORY_UI_BRANCH = '1.3.x_branch';
exports.RELEASES_URL = 'https://bitbucket.org/blockstorage/repertory/raw/' + REPERTORY_BRANCH + '/releases_1.3.json'; exports.RELEASES_URL = 'https://bitbucket.org/blockstorage/repertory/raw/' + REPERTORY_BRANCH + '/releases_1.3.json';
exports.UI_RELEASES_URL = 'https://bitbucket.org/blockstorage/repertory-ui/raw/' + REPERTORY_UI_BRANCH + '/releases.json'; exports.UI_RELEASES_URL = 'https://bitbucket.org/blockstorage/repertory-ui/raw/' + REPERTORY_UI_BRANCH + '/releases.json';
exports.LINUX_DETECT_SCRIPT_URL = 'https://bitbucket.org/blockstorage/repertory/raw/' + REPERTORY_BRANCH + '/detect_linux.sh'; exports.LINUX_DETECT_SCRIPT_URL = 'https://bitbucket.org/blockstorage/repertory/raw/' + REPERTORY_BRANCH + '/detect_linux2.sh';
exports.LINUX_SELECTABLE_PLATFORMS = [ exports.LINUX_SELECTABLE_PLATFORMS = [
'ubuntu18.04', 'centos7',
'ubuntu18.10', 'debian9',
'ubuntu19.04', 'debian10',
'ubuntu19.10'
]; ];
exports.DATA_LOCATIONS = { exports.DATA_LOCATIONS = {