Update installers for GNOME

This commit is contained in:
Ximi1970
2020-04-16 22:59:11 +02:00
parent d63c61ded5
commit 004cea0477
13 changed files with 274 additions and 7 deletions

View File

@@ -19,9 +19,15 @@ OBS_RPM_ARCHS+="SLE_15/x86_64 "
OBS_RPM_PKS+="sle150 "
OBS_RPM_ARCHS+="SLE_15_SP1/x86_64 "
OBS_RPM_PKS+="sle151 "
OBS_RPM_ARCHS+="Fedora_31/x86_64 "
OBS_RPM_PKS+="fed31 "
OBS_DEB_ARCHS=""
OBS_DEB_PKS=""
OBS_DEB_ARCHS+="Debian_10/i386 "
OBS_DEB_PKS+="deb10 "
OBS_DEB_ARCHS+="Debian_10/amd64 "
OBS_DEB_PKS+="deb10 "
OBS_DEB_ARCHS+="xUbuntu_18.04/i386 "
OBS_DEB_PKS+="bionic1804 "
OBS_DEB_ARCHS+="xUbuntu_18.04/amd64 "
@@ -50,7 +56,7 @@ for rpmdir in $OBS_RPM_ARCHS ; do
#
# Find rpm
#
RPM_FILE=`grep ">systray.*<" index.html | sed -e "s/.*>\(systray-x.*rpm\)<.*/\1/"`
RPM_FILE=`grep ">systray-x-[^d].*<" index.html | sed -e "s/.*>\(systray-x-[^d].*rpm\)<.*/\1/"`
rm -f index.html
echo $rpmdir/$RPM_FILE
@@ -121,6 +127,17 @@ for rpmdir in $OBS_RPM_ARCHS ; do
# Create installer
#
cp -f ../dist/install.sh SysTray-X-$FOUND_VERSION-$BASE_NAME-install.sh
#
# Insert gnome setup
#
DISTRO=`echo $rpmdir | cut -d'/' -f1`
sed -i -e "/__GNOME_SETUP__/r../dist/install.$DISTRO.sh" SysTray-X-$FOUND_VERSION-$BASE_NAME-install.sh
sed -i -e "s/__GNOME_SETUP__//" SysTray-X-$FOUND_VERSION-$BASE_NAME-install.sh
#
# Insert install tar
#
cat $PACKAGE_NAME.tar.xz >> SysTray-X-$FOUND_VERSION-$BASE_NAME-install.sh
chmod 755 SysTray-X-$FOUND_VERSION-$BASE_NAME-install.sh
@@ -215,6 +232,17 @@ for debdir in $OBS_DEB_ARCHS ; do
# Create installer
#
cp -f ../dist/install.sh SysTray-X-$FOUND_VERSION-$BASE_NAME-install.sh
#
# Insert gnome setup
#
DISTRO=`echo $rpmdir | cut -d'/' -f1`
sed -i -e "/__GNOME_SETUP__/r../dist/install.$DISTRO.sh" SysTray-X-$FOUND_VERSION-$BASE_NAME-install.sh
sed -i -e "s/__GNOME_SETUP__//" SysTray-X-$FOUND_VERSION-$BASE_NAME-install.sh
#
# Insert install tar
#
cat $PACKAGE_NAME.tar.xz >> SysTray-X-$FOUND_VERSION-$BASE_NAME-install.sh
chmod 755 SysTray-X-$FOUND_VERSION-$BASE_NAME-install.sh