mirror of
https://github.com/mtan93/Installomator.git
synced 2026-03-08 05:31:53 +00:00
``` # utils/assemble.sh vlc DEBUG=0 2022-09-28 15:22:49 : INFO : vlc : setting variable from argument DEBUG=0 2022-09-28 15:22:49 : REQ : vlc : ################## Start Installomator v. 10.0beta3, date 2022-09-28 2022-09-28 15:22:49 : INFO : vlc : ################## Version: 10.0beta3 2022-09-28 15:22:49 : INFO : vlc : ################## Date: 2022-09-28 2022-09-28 15:22:49 : INFO : vlc : ################## vlc 2022-09-28 15:22:49 : INFO : vlc : BLOCKING_PROCESS_ACTION=tell_user 2022-09-28 15:22:49 : INFO : vlc : NOTIFY=success 2022-09-28 15:22:49 : INFO : vlc : LOGGING=INFO 2022-09-28 15:22:49 : INFO : vlc : LOGO=/System/Applications/App Store.app/Contents/Resources/AppIcon.icns 2022-09-28 15:22:49 : INFO : vlc : Label type: dmg 2022-09-28 15:22:49 : INFO : vlc : archiveName: VLC.dmg 2022-09-28 15:22:49 : INFO : vlc : no blocking processes defined, using VLC as default 2022-09-28 15:22:49 : INFO : vlc : App(s) found: /Applications/VLC.app 2022-09-28 15:22:49 : INFO : vlc : found app at /Applications/VLC.app, version 3.0.17.3, on versionKey CFBundleShortVersionString 2022-09-28 15:22:49 : INFO : vlc : appversion: 3.0.17.3 2022-09-28 15:22:49 : INFO : vlc : Latest version of VLC is 3.0.17.3 2022-09-28 15:22:49 : INFO : vlc : There is no newer version available. 2022-09-28 15:22:49 : INFO : vlc : App not closed, so no reopen. 2022-09-28 15:22:49 : REQ : vlc : No newer version. 2022-09-28 15:22:49 : REQ : vlc : ################## End Installomator, exit code 0 ```
14 lines
948 B
Bash
14 lines
948 B
Bash
vlc)
|
|
name="VLC"
|
|
type="dmg"
|
|
if [[ $(arch) == "arm64" ]]; then
|
|
downloadURL=$(curl -fs http://update.videolan.org/vlc/sparkle/vlc-arm64.xml | xpath '//rss/channel/item[last()]/enclosure/@url' 2>/dev/null | cut -d '"' -f 2 )
|
|
#appNewVersion=$(curl -fs http://update.videolan.org/vlc/sparkle/vlc-arm64.xml | xpath '//rss/channel/item[last()]/enclosure/@sparkle:version' 2>/dev/null | cut -d '"' -f 2 )
|
|
elif [[ $(arch) == "i386" ]]; then
|
|
downloadURL=$(curl -fs http://update.videolan.org/vlc/sparkle/vlc-intel64.xml | xpath '//rss/channel/item[last()]/enclosure/@url' 2>/dev/null | cut -d '"' -f 2 )
|
|
#appNewVersion=$(curl -fs http://update.videolan.org/vlc/sparkle/vlc-intel64.xml | xpath '//rss/channel/item[last()]/enclosure/@sparkle:version' 2>/dev/null | cut -d '"' -f 2 )
|
|
fi
|
|
appNewVersion=$(echo ${downloadURL} | sed -E 's/.*\/vlc-([0-9.]*).*\.dmg/\1/' )
|
|
expectedTeamID="75GAHG3SZQ"
|
|
;;
|