FAQ | This is a LIVE service | Changelog

Skip to content
Snippets Groups Projects
Commit b6175b97 authored by Dr Adam Thorn's avatar Dr Adam Thorn
Browse files

zoom -> 5.14.16213

..and add updated script too
parent 32ab3b5e
No related branches found
No related tags found
1 merge request!257zoom -> 5.14.16213
Pipeline #331136 passed
......@@ -2,7 +2,7 @@
<package id="zoom" name="Zoom" revision="%version%.1" reboot="false">
<!-- Zoom have an odd approach to version numbers. This version does not seem to match
anything in the GUI, so check the MSI -->
<variable name="version" value="5.14.14578" />
<variable name="version" value="5.14.16213" />
<check type="uninstall" condition="versiongreaterorequal" path="Zoom(32bit)" value="%version%" />
......@@ -14,7 +14,7 @@
<upgrade include="install" />
<remove cmd="msiexec /qn /x {CFE3C6AC-915F-44D4-90ED-C7C0D647BB05}">
<remove cmd="msiexec /qn /x {0A02C7D6-B25D-4DCE-9B84-D997F2839661}">
<exit code="1605" />
</remove>
</package>
......
<packages:packages xmlns:packages="http://www.wpkg.org/packages">
<package id="zoom" name="Zoom" revision="%version%.1" reboot="false">
<!-- Zoom have an odd approach to version numbers. This version does not seem to match
anything in the GUI, so check the MSI -->
<variable name="version" value="${VERSION}" />
<check type="uninstall" condition="versiongreaterorequal" path="Zoom(32bit)" value="%version%" />
<!-- get the MSI from https://www.zoom.us/client/latest/ZoomInstallerFull.msi
MSI documentation at https://support.zoom.us/hc/en-us/articles/201362163-Mass-Installation-and-Configuration-for-Windows -->
<install cmd='msiexec /qn /l* %WPKGLOGDIR%\zoom.log /i %WPKGSOFTWARE%\zoom\%version%\ZoomInstallerFull.msi'>
<exit code="3010" reboot="false" />
</install>
<upgrade include="install" />
<remove cmd="msiexec /qn /x ${PRODUCTCODE}">
<exit code="1605" />
</remove>
</package>
</packages:packages>
#!/bin/bash
set -u
set -xv
XMLFILE=zoom.xml
. common.inc.sh
REMOTEDIR=software/zoom
TDIR=$(mktemp -d)
DLURL=https://www.zoom.us/client/latest/ZoomInstallerFull.msi
FILENAME=ZoomInstallerFull.msi
wget -q --no-check-certificate $DLURL -O "$TDIR/$FILENAME"
MAJOR_MINOR=$(msiinfo export $TDIR/$FILENAME _SummaryInformation | awk '$1==6 {print $2}' |cut -d '.' -f 1,2)
BUILD=$(msiinfo export $TDIR/$FILENAME _SummaryInformation | awk '$1==6 {print $3}' | sed 's#(\(.*\))#\1#' | tr -d '\r')
PRODUCTCODE=$(msi-productcode $TDIR/$FILENAME | tr -d ' ')
VERSION=${MAJOR_MINOR}.${BUILD}
export VERSION
export PRODUCTCODE
OVERSION=$(xmlstarlet sel -t -m '//variable[@name="version"]' -v '@value' $PKGDIR/$XMLFILE)
echo New version $VERSION was $OVERSION
if [ $VERSION != $OVERSION ] ; then
envsubst < $TEMPLATE > $PKGDIR/${XMLFILE}.new
if ! cmp $PKGDIR/${XMLFILE}.new $PKGDIR/$XMLFILE ; then
cp $PKGDIR/${XMLFILE}.new $PKGDIR/$XMLFILE
echo Package updated
smbclient --use-krb5-ccache=/tmp/krb5cc_$(id -u) $SHARE --command "mkdir $REMOTEDIR/$VERSION; cd $REMOTEDIR/$VERSION; put $TDIR/$FILENAME $FILENAME"
fi
rm $PKGDIR/${XMLFILE}.new
else
echo Package not updated.
fi
rm -Rf $TDIR
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment