mirror of
https://github.com/mtan93/Installomator.git
synced 2026-04-03 22:04:30 +01:00
Merge pull request #245 from Installomator/Theile-labels-0.7
Theile labels 0.7
This commit is contained in:
@@ -9,6 +9,7 @@ adobereaderdc-install
|
|||||||
adobereaderdc-update
|
adobereaderdc-update
|
||||||
aircall
|
aircall
|
||||||
airserver
|
airserver
|
||||||
|
airtame
|
||||||
aldente
|
aldente
|
||||||
alfred
|
alfred
|
||||||
alttab
|
alttab
|
||||||
@@ -209,6 +210,7 @@ openvpnconnect
|
|||||||
openvpnconnectv3
|
openvpnconnectv3
|
||||||
opera
|
opera
|
||||||
pacifist
|
pacifist
|
||||||
|
parsec
|
||||||
pdfsam
|
pdfsam
|
||||||
pitch
|
pitch
|
||||||
plantronicshub
|
plantronicshub
|
||||||
@@ -261,6 +263,7 @@ sonos
|
|||||||
sonoss1
|
sonoss1
|
||||||
sonoss2
|
sonoss2
|
||||||
sourcetree
|
sourcetree
|
||||||
|
splashtopsos
|
||||||
spotify
|
spotify
|
||||||
sublimetext
|
sublimetext
|
||||||
supportapp
|
supportapp
|
||||||
@@ -297,6 +300,7 @@ vivaldi
|
|||||||
vlc
|
vlc
|
||||||
vmwarehorizonclient
|
vmwarehorizonclient
|
||||||
vscodium
|
vscodium
|
||||||
|
wallyezflash
|
||||||
webex
|
webex
|
||||||
webexmeetings
|
webexmeetings
|
||||||
webexteams
|
webexteams
|
||||||
@@ -310,6 +314,7 @@ xink
|
|||||||
xquartz
|
xquartz
|
||||||
yubikeymanagerqt
|
yubikeymanagerqt
|
||||||
zappy
|
zappy
|
||||||
|
zohoworkdrive
|
||||||
zoom
|
zoom
|
||||||
zoomclient
|
zoomclient
|
||||||
zoomrooms
|
zoomrooms
|
||||||
|
|||||||
@@ -1,10 +0,0 @@
|
|||||||
|
|
||||||
cdef)
|
|
||||||
# cdef currently not signed
|
|
||||||
# credit: Søren Theilgaard (@theilgaard)
|
|
||||||
name="cdef"
|
|
||||||
type="pkg"
|
|
||||||
downloadURL=$(downloadURLFromGit Shufflepuck cdef)
|
|
||||||
appNewVersion=$(versionFromGit Shufflepuck cdef)
|
|
||||||
#expectedTeamID="EM3ER8T33A"
|
|
||||||
;;
|
|
||||||
7
fragments/labels/airtame.sh
Normal file
7
fragments/labels/airtame.sh
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
airtame)
|
||||||
|
name="Airtame"
|
||||||
|
type="dmg"
|
||||||
|
downloadURL="$(curl -fs https://airtame.com/download/ | grep -i platform=mac | head -1 | grep -o -i -E "https.*" | cut -d '"' -f1)"
|
||||||
|
appNewVersion="$(curl -fsIL "${downloadURL}" | grep -i ^location | sed -E 's/.*\/[a-zA-Z]*-([0-9.]*)\..*/\1/g')"
|
||||||
|
expectedTeamID="4TPSP88HN2"
|
||||||
|
;;
|
||||||
@@ -1,7 +1,9 @@
|
|||||||
lulu)
|
lulu)
|
||||||
name="LuLu"
|
name="LuLu"
|
||||||
type="dmg"
|
type="dmg"
|
||||||
downloadURL=$( curl -fs "https://objective-see.com/products/lulu.html" | grep https | grep "$type" | head -1 | tr '"' "\n" | grep "^http" )
|
#downloadURL=$( curl -fs "https://objective-see.com/products/lulu.html" | grep https | grep "$type" | head -1 | tr '"' "\n" | grep "^http" )
|
||||||
appNewVersion=$( echo "${downloadURL}" | sed -E 's/.*\/[a-zA-Z]*_([0-9.]*)\..*/\1/g' )
|
#appNewVersion=$( echo "${downloadURL}" | sed -E 's/.*\/[a-zA-Z]*_([0-9.]*)\..*/\1/g' )
|
||||||
|
downloadURL=$(downloadURLFromGit objective-see LuLu)
|
||||||
|
appNewVersion=$(versionFromGit objective-see LuLu)
|
||||||
expectedTeamID="VBG97UB4TA"
|
expectedTeamID="VBG97UB4TA"
|
||||||
;;
|
;;
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
screencloudplayer)
|
screencloudplayer)
|
||||||
# credit: AP Orlebeke (@apizz)
|
# credit: AP Orlebeke (@apizz)
|
||||||
name="ScreenCloud Player"
|
name="ScreenCloud Player"
|
||||||
type="dmg"
|
type="dmg"
|
||||||
downloadURL=$(curl -sL "https://screencloud.com/download" | sed -n 's/^.*"url":"\([^"]*\)".*$/\1/p')
|
downloadURL=$(curl -sL "https://screencloud.com/download" | sed -n 's/^.*"url":"\([^"]*\)".*$/\1/p')
|
||||||
expectedTeamID="3C4F953K6P"
|
expectedTeamID="3C4F953K6P"
|
||||||
;;
|
;;
|
||||||
6
fragments/labels/splashtopsos.sh
Normal file
6
fragments/labels/splashtopsos.sh
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
splashtopsos)
|
||||||
|
name="Splashtop SOS"
|
||||||
|
type="dmg"
|
||||||
|
downloadURL="https://download.splashtop.com/sos/SplashtopSOS.dmg"
|
||||||
|
expectedTeamID="CPQQ3AW49Y"
|
||||||
|
;;
|
||||||
11
fragments/labels/zohoworkdrive.sh
Normal file
11
fragments/labels/zohoworkdrive.sh
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
zohoworkdrive)
|
||||||
|
# Using this label expects you to agree to these:
|
||||||
|
# License Areemant: https://www.zoho.com/workdrive/zohoworkdrive-license-agreement.html
|
||||||
|
# Privacy policy: https://www.zoho.com/privacy.html
|
||||||
|
name="ZohoWorkDrive"
|
||||||
|
type="dmg"
|
||||||
|
lines=$(curl -fs https://www.zohowebstatic.com/sites/all/themes/zoho/scripts/workdrive.js | grep files-accl.zohopublic.com | tr '"' "\n")
|
||||||
|
downloadURL=$(echo "$lines" | grep -i "files-accl.zohopublic.com")$(echo "$lines" | grep -i -A17 "files-accl.zohopublic.com" | grep -i -A2 macintosh | tail -1)
|
||||||
|
expectedTeamID="TZ824L8Y37"
|
||||||
|
appName="Zoho WorkDrive.app"
|
||||||
|
;;
|
||||||
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
export PATH=/usr/bin:/bin:/usr/sbin:/sbin
|
export PATH=/usr/bin:/bin:/usr/sbin:/sbin
|
||||||
|
|
||||||
downloadURL=${1?:"need to provide a download URL"}
|
downloadURL=${1?:"need to provide a download URL."}
|
||||||
|
|
||||||
# Note: this tool _very_ experimental and does not work in many cases
|
# Note: this tool _very_ experimental and does not work in many cases
|
||||||
# That being said, it's a great place to start for building up the label in the Case-statement
|
# That being said, it's a great place to start for building up the label in the Case-statement
|
||||||
@@ -10,19 +10,23 @@ downloadURL=${1?:"need to provide a download URL"}
|
|||||||
# Usage
|
# Usage
|
||||||
# ./buildLabel.sh <URL to download software>
|
# ./buildLabel.sh <URL to download software>
|
||||||
|
|
||||||
tmpDir=$(pwd) # use working directory as download folder (REMEMBER to comment out removal of tmpDir in bottom of script)
|
# Use working directory as download folder
|
||||||
|
tmpDir=$(date "+%Y-%m-%d-%H-%M-%S")
|
||||||
|
# Create a n almost unique folder name
|
||||||
|
mkdir $tmpDir
|
||||||
|
|
||||||
# change directory to temporary working directory
|
# change directory to temporary working directory
|
||||||
echo "Changing directory to $tmpDir"
|
echo "Changing directory to $tmpDir"
|
||||||
if ! cd "$tmpDir"; then
|
if ! cd "$tmpDir"; then
|
||||||
echo "error changing directory $tmpDir"
|
echo "Error changing directory $tmpDir"
|
||||||
#rm -Rf "$tmpDir"
|
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
echo "Working dir: $(pwd)"
|
||||||
|
|
||||||
# download the URL
|
# download the URL
|
||||||
echo "Downloading $downloadURL"
|
echo "Downloading $downloadURL"
|
||||||
if ! downloadOut="$(curl -fsL "$downloadURL" --remote-header-name --remote-name -w "%{filename_effective}\n%{url_effective}\n")"; then
|
echo "Redirecting to (maybe this can help us with version):\n$(curl -fsIL "$downloadURL" | grep -i ^location)"
|
||||||
|
if ! downloadOut="$(curl -fL "$downloadURL" --remote-header-name --remote-name -w "%{filename_effective}\n%{url_effective}\n")"; then
|
||||||
echo "error downloading $downloadURL"
|
echo "error downloading $downloadURL"
|
||||||
exit 2
|
exit 2
|
||||||
fi
|
fi
|
||||||
@@ -60,12 +64,25 @@ appInvestigation() {
|
|||||||
exit 4
|
exit 4
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
echo "downloadOut: ${downloadOut}"
|
|
||||||
|
echo "downloadOut:\n${downloadOut}"
|
||||||
archiveTempName=$( echo "${downloadOut}" | head -1 )
|
archiveTempName=$( echo "${downloadOut}" | head -1 )
|
||||||
echo "archiveTempName: $archiveTempName"
|
echo "archiveTempName: $archiveTempName"
|
||||||
archivePath=$( echo "${downloadOut}" | tail -1 )
|
archivePath=$( echo "${downloadOut}" | tail -1 )
|
||||||
echo "archivePath: $archivePath"
|
echo "archivePath: $archivePath"
|
||||||
archiveName=${archivePath##*/}
|
|
||||||
|
try1archiveName=${archiveTempName##*/}
|
||||||
|
try2archiveName=${archivePath##*/}
|
||||||
|
fileName_re='^([a-zA-Z0-9\_.-]*)\.(dmg|pkg|zip|tbz)$'
|
||||||
|
if [[ "${try1archiveName}" =~ $fileName_re ]]; then
|
||||||
|
archiveName=${try1archiveName}
|
||||||
|
elif [[ "${try2archiveName}" =~ $fileName_re ]]; then
|
||||||
|
archiveName=${try2archiveName}
|
||||||
|
else
|
||||||
|
echo "Could not determine archiveName from “$try1archiveName” and “$try2archiveName”"
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
|
||||||
echo "archiveName: $archiveName"
|
echo "archiveName: $archiveName"
|
||||||
mv $archiveTempName $archiveName
|
mv $archiveTempName $archiveName
|
||||||
name=${archiveName%.*}
|
name=${archiveName%.*}
|
||||||
@@ -125,7 +142,7 @@ echo "**********"
|
|||||||
echo
|
echo
|
||||||
echo "Labels should be named in small caps, numbers 0-9, “-”, and “_”. No other characters allowed."
|
echo "Labels should be named in small caps, numbers 0-9, “-”, and “_”. No other characters allowed."
|
||||||
echo
|
echo
|
||||||
echo "appNewVersion is often difficult to find. Can sometimes be found in the filename, but also on a web page. See archivePath above if link contains information about this."
|
echo "appNewVersion is often difficult to find. Can sometimes be found in the filename, sometimes as part of the download redirects, but also on a web page. See redirect and archivePath above if link contains information about this. That is a good place to start"
|
||||||
echo
|
echo
|
||||||
echo "$identifier)"
|
echo "$identifier)"
|
||||||
echo " name=\"$name\""
|
echo " name=\"$name\""
|
||||||
|
|||||||
Reference in New Issue
Block a user