Skip to content

Comments

Webex: added appNewVersion and blockingProcesses.#1376

Merged
BigMacAdmin merged 2 commits intoInstallomator:mainfrom
mjsanders:label-webex
Mar 12, 2024
Merged

Webex: added appNewVersion and blockingProcesses.#1376
BigMacAdmin merged 2 commits intoInstallomator:mainfrom
mjsanders:label-webex

Conversation

@mjsanders
Copy link
Contributor

Note: due to the fact that Webex has lots of separate processes, the UI is bad because users gets separate notifications for each blockingProcesses. (and if you have bad luck, the other process has started the process just quitted 👎 )

Log running locally when I just deleted Webex from /Applications/
(note the versions found in deep ~/Library/ folders, which are stored there by the built-in update mechanisms)

maurits@MMacBook14 Installomator % sudo utils/assemble.sh webex DEBUG=0
Password:
Sorry, try again.
Password:
2023-12-15 15:21:33 : REQ   : webex : ################## Start Installomator v. 10.5beta, date 2023-12-15
2023-12-15 15:21:33 : INFO  : webex : ################## Version: 10.5beta
2023-12-15 15:21:33 : INFO  : webex : ################## Date: 2023-12-15
2023-12-15 15:21:33 : INFO  : webex : ################## webex
2023-12-15 15:21:33 : DEBUG : webex : DEBUG mode 1 enabled.
2023-12-15 15:21:35 : INFO  : webex : setting variable from argument DEBUG=0
2023-12-15 15:21:35 : DEBUG : webex : name=Webex
2023-12-15 15:21:35 : DEBUG : webex : appName=
2023-12-15 15:21:35 : DEBUG : webex : type=dmg
2023-12-15 15:21:35 : DEBUG : webex : archiveName=
2023-12-15 15:21:35 : DEBUG : webex : downloadURL=https://binaries.webex.com/WebexDesktop-MACOS-Apple-Silicon-Gold/Webex.dmg
2023-12-15 15:21:35 : DEBUG : webex : curlOptions=
2023-12-15 15:21:35 : DEBUG : webex : appNewVersion=43.12.0.28111
2023-12-15 15:21:35 : DEBUG : webex : appCustomVersion function: Not defined
2023-12-15 15:21:35 : DEBUG : webex : versionKey=CFBundleShortVersionString
2023-12-15 15:21:35 : DEBUG : webex : packageID=
2023-12-15 15:21:35 : DEBUG : webex : pkgName=
2023-12-15 15:21:35 : DEBUG : webex : choiceChangesXML=
2023-12-15 15:21:35 : DEBUG : webex : expectedTeamID=DE8Y96K9QP
2023-12-15 15:21:35 : DEBUG : webex : blockingProcesses=Webex Webex Teams Cisco WebEx Start WebexHelper
2023-12-15 15:21:35 : DEBUG : webex : installerTool=
2023-12-15 15:21:35 : DEBUG : webex : CLIInstaller=
2023-12-15 15:21:35 : DEBUG : webex : CLIArguments=
2023-12-15 15:21:35 : DEBUG : webex : updateTool=
2023-12-15 15:21:35 : DEBUG : webex : updateToolArguments=
2023-12-15 15:21:36 : DEBUG : webex : updateToolRunAsCurrentUser=
2023-12-15 15:21:36 : INFO  : webex : BLOCKING_PROCESS_ACTION=tell_user
2023-12-15 15:21:36 : INFO  : webex : NOTIFY=success
2023-12-15 15:21:36 : INFO  : webex : LOGGING=DEBUG
2023-12-15 15:21:36 : INFO  : webex : LOGO=/System/Applications/App Store.app/Contents/Resources/AppIcon.icns
2023-12-15 15:21:36 : INFO  : webex : Label type: dmg
2023-12-15 15:21:36 : INFO  : webex : archiveName: Webex.dmg
2023-12-15 15:21:36 : DEBUG : webex : Changing directory to /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/tmp.bIW2XIUjHy
2023-12-15 15:21:36 : INFO  : webex : name: Webex, appName: Webex.app
2023-12-15 15:21:36.075 mdfind[82763:2582016] [UserQueryParser] Loading keywords and predicates for locale "en_US"
2023-12-15 15:21:36.075 mdfind[82763:2582016] [UserQueryParser] Loading keywords and predicates for locale "en"
2023-12-15 15:21:36.206 mdfind[82763:2582016] Couldn't determine the mapping between prefab keywords and predicates.
2023-12-15 15:21:36 : INFO  : webex : App(s) found: /Users/maurits/Library/Application Support/Cisco Spark/Webexteams_upgrades_arm/43.11.0.27795_88620d23-3959-4f16-8a96-372cbc0e2858/Webex.app/Users/maurits/Library/Application Support/WebEx Folder/MC_43.10.1.9/Meeting Center.app/Users/maurits/Library/Application Support/WebEx Folder/MC_43.10.1.9/WebexAppLauncher.app/Users/maurits/Library/Application Support/WebEx Folder/Add-ons/Cisco WebEx Start.app/Users/maurits/Library/Application Support/WebEx Folder/MC_43.12.1.7/Meeting Center.app/Users/maurits/Library/Application Support/WebEx Folder/MC_43.12.1.7/WebexAppLauncher.app
2023-12-15 15:21:36 : WARN  : webex : could not determine location of Webex.app
2023-12-15 15:21:36 : INFO  : webex : appversion: 
2023-12-15 15:21:36 : INFO  : webex : Latest version of Webex is 43.12.0.28111
2023-12-15 15:21:36 : REQ   : webex : Downloading https://binaries.webex.com/WebexDesktop-MACOS-Apple-Silicon-Gold/Webex.dmg to Webex.dmg
2023-12-15 15:21:36 : DEBUG : webex : No Dialog connection, just download
2023-12-15 15:22:13 : DEBUG : webex : File list: -rw-r--r--  1 root  wheel   191M Dec 15 15:22 Webex.dmg
2023-12-15 15:22:13 : DEBUG : webex : File type: Webex.dmg: zlib compressed data
2023-12-15 15:22:13 : DEBUG : webex : curl output was:
*   Trying 13.227.219.54:443...
* Connected to binaries.webex.com (13.227.219.54) port 443
* ALPN: curl offers h2,http/1.1
* (304) (OUT), TLS handshake, Client hello (1):
} [323 bytes data]
*  CAfile: /etc/ssl/cert.pem
*  CApath: none
* (304) (IN), TLS handshake, Server hello (2):
{ [122 bytes data]
* (304) (IN), TLS handshake, Unknown (8):
{ [19 bytes data]
* (304) (IN), TLS handshake, Certificate (11):
{ [5073 bytes data]
* (304) (IN), TLS handshake, CERT verify (15):
{ [264 bytes data]
* (304) (IN), TLS handshake, Finished (20):
{ [36 bytes data]
* (304) (OUT), TLS handshake, Finished (20):
} [36 bytes data]
* SSL connection using TLSv1.3 / AEAD-AES128-GCM-SHA256
* ALPN: server accepted h2
* Server certificate:
*  subject: CN=binaries.webex.com; O=Cisco Systems Inc.; L=San Jose; ST=California; C=US
*  start date: Aug 11 02:28:08 2023 GMT
*  expire date: Aug 10 02:27:08 2024 GMT
*  subjectAltName: host "binaries.webex.com" matched cert's "binaries.webex.com"
*  issuer: C=US; O=IdenTrust; OU=HydrantID Trusted Certificate Service; CN=HydrantID Server CA O1
*  SSL certificate verify ok.
* using HTTP/2
* [HTTP/2] [1] OPENED stream for https://binaries.webex.com/WebexDesktop-MACOS-Apple-Silicon-Gold/Webex.dmg
* [HTTP/2] [1] [:method: GET]
* [HTTP/2] [1] [:scheme: https]
* [HTTP/2] [1] [:authority: binaries.webex.com]
* [HTTP/2] [1] [:path: /WebexDesktop-MACOS-Apple-Silicon-Gold/Webex.dmg]
* [HTTP/2] [1] [user-agent: curl/8.4.0]
* [HTTP/2] [1] [accept: */*]
> GET /WebexDesktop-MACOS-Apple-Silicon-Gold/Webex.dmg HTTP/2
> Host: binaries.webex.com
> User-Agent: curl/8.4.0
> Accept: */*
> 
< HTTP/2 200 
< content-type: binary/octet-stream
< content-length: 199767980
< last-modified: Thu, 07 Dec 2023 19:55:26 GMT
< x-amz-storage-class: REDUCED_REDUNDANCY
< x-amz-server-side-encryption: AES256
< x-amz-version-id: null
< accept-ranges: bytes
< server: AmazonS3
< date: Fri, 15 Dec 2023 14:21:36 GMT
< etag: "a5725f23690351772db4eecb48d29050-24"
< vary: Accept-Encoding
< x-cache: Hit from cloudfront
< via: 1.1 4cc2a0a7eb7d5483edc69be298297f9e.cloudfront.net (CloudFront)
< x-amz-cf-pop: AMS54-C1
< x-amz-cf-id: F8_4cXS2VauNSRDxWtxH56SyQ8VOVq7ic23sJQlIvh6Bis4aV83gJg==
< age: 93
< 
{ [15950 bytes data]
* Connection #0 to host binaries.webex.com left intact

2023-12-15 15:22:13 : REQ   : webex : no more blocking processes, continue with update
2023-12-15 15:22:13 : REQ   : webex : Installing Webex
2023-12-15 15:22:13 : INFO  : webex : Mounting /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/tmp.bIW2XIUjHy/Webex.dmg
2023-12-15 15:22:17 : DEBUG : webex : Debugging enabled, dmgmount output was:
Checksumming Protective Master Boot Record (MBR : 0)…
Protective Master Boot Record (MBR :: verified CRC32 $F7F79EC8
Checksumming GPT Header (Primary GPT Header : 1)…
GPT Header (Primary GPT Header : 1): verified CRC32 $0DD7DC7E
Checksumming GPT Partition Data (Primary GPT Table : 2)…
GPT Partition Data (Primary GPT Tabl: verified CRC32 $E4599886
Checksumming  (Apple_Free : 3)…
(Apple_Free : 3): verified CRC32 $00000000
Checksumming disk image (Apple_HFS : 4)…
disk image (Apple_HFS : 4): verified CRC32 $4402DC3D
Checksumming  (Apple_Free : 5)…
(Apple_Free : 5): verified CRC32 $00000000
Checksumming GPT Partition Data (Backup GPT Table : 6)…
GPT Partition Data (Backup GPT Table: verified CRC32 $E4599886
Checksumming GPT Header (Backup GPT Header : 7)…
GPT Header (Backup GPT Header : 7): verified CRC32 $B9CAE9B8
verified CRC32 $4D2F25D3
/dev/disk4          	GUID_partition_scheme
/dev/disk4s1        	Apple_HFS                      	/Volumes/Webex

2023-12-15 15:22:17 : INFO  : webex : Mounted: /Volumes/Webex
2023-12-15 15:22:17 : INFO  : webex : Verifying: /Volumes/Webex/Webex.app
2023-12-15 15:22:17 : DEBUG : webex : App size: 531M	/Volumes/Webex/Webex.app
2023-12-15 15:22:24 : DEBUG : webex : Debugging enabled, App Verification output was:
/Volumes/Webex/Webex.app: accepted
source=Notarized Developer ID
origin=Developer ID Application: Cisco (DE8Y96K9QP)

2023-12-15 15:22:24 : INFO  : webex : Team ID matching: DE8Y96K9QP (expected: DE8Y96K9QP )
2023-12-15 15:22:24 : INFO  : webex : Installing Webex version 43.12.0.28111 on versionKey CFBundleShortVersionString.
2023-12-15 15:22:24 : INFO  : webex : App has LSMinimumSystemVersion: 10.13
2023-12-15 15:22:24 : INFO  : webex : Copy /Volumes/Webex/Webex.app to /Applications
2023-12-15 15:22:28 : DEBUG : webex : Debugging enabled, App copy output was:
Copying /Volumes/Webex/Webex.app

2023-12-15 15:22:28 : WARN  : webex : Changing owner to maurits
2023-12-15 15:22:29 : INFO  : webex : Finishing...
2023-12-15 15:22:32 : INFO  : webex : App(s) found: /Applications/Webex.app
2023-12-15 15:22:32 : INFO  : webex : found app at /Applications/Webex.app, version 43.12.0.28111, on versionKey CFBundleShortVersionString
2023-12-15 15:22:32 : REQ   : webex : Installed Webex, version 43.12.0.28111
2023-12-15 15:22:32 : INFO  : webex : notifying
2023-12-15 15:22:32 : DEBUG : webex : Unmounting /Volumes/Webex
2023-12-15 15:22:33 : DEBUG : webex : Debugging enabled, Unmounting output was:
"disk4" ejected.
2023-12-15 15:22:33 : DEBUG : webex : Deleting /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/tmp.bIW2XIUjHy
2023-12-15 15:22:33 : DEBUG : webex : Debugging enabled, Deleting tmpDir output was:
/var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/tmp.bIW2XIUjHy/Webex.dmg
2023-12-15 15:22:33 : DEBUG : webex : /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/tmp.bIW2XIUjHy
2023-12-15 15:22:33 : INFO  : webex : App not closed, so no reopen.
2023-12-15 15:22:33 : REQ   : webex : All done!
2023-12-15 15:22:33 : REQ   : webex : ################## End Installomator, exit code 0 

maurits@MMacBook14 Installomator % 

log running locally when Webex is up to date:

maurits@MMacBook14 Installomator % sudo utils/assemble.sh webex DEBUG=0
Password:
2023-12-15 15:14:08 : REQ   : webex : ################## Start Installomator v. 10.5beta, date 2023-12-15
2023-12-15 15:14:08 : INFO  : webex : ################## Version: 10.5beta
2023-12-15 15:14:08 : INFO  : webex : ################## Date: 2023-12-15
2023-12-15 15:14:08 : INFO  : webex : ################## webex
2023-12-15 15:14:08 : DEBUG : webex : DEBUG mode 1 enabled.
2023-12-15 15:14:32 : INFO  : webex : setting variable from argument DEBUG=0
2023-12-15 15:14:32 : DEBUG : webex : name=Webex
2023-12-15 15:14:32 : DEBUG : webex : appName=
2023-12-15 15:14:32 : DEBUG : webex : type=dmg
2023-12-15 15:14:32 : DEBUG : webex : archiveName=
2023-12-15 15:14:32 : DEBUG : webex : downloadURL=https://binaries.webex.com/WebexDesktop-MACOS-Apple-Silicon-Gold/Webex.dmg
2023-12-15 15:14:32 : DEBUG : webex : curlOptions=
2023-12-15 15:14:32 : DEBUG : webex : appNewVersion=43.12.0.28111
2023-12-15 15:14:32 : DEBUG : webex : appCustomVersion function: Not defined
2023-12-15 15:14:32 : DEBUG : webex : versionKey=CFBundleShortVersionString
2023-12-15 15:14:32 : DEBUG : webex : packageID=
2023-12-15 15:14:32 : DEBUG : webex : pkgName=
2023-12-15 15:14:32 : DEBUG : webex : choiceChangesXML=
2023-12-15 15:14:32 : DEBUG : webex : expectedTeamID=DE8Y96K9QP
2023-12-15 15:14:32 : DEBUG : webex : blockingProcesses=Webex Webex Teams Cisco WebEx Start WebexHelper
2023-12-15 15:14:32 : DEBUG : webex : installerTool=
2023-12-15 15:14:32 : DEBUG : webex : CLIInstaller=
2023-12-15 15:14:32 : DEBUG : webex : CLIArguments=
2023-12-15 15:14:32 : DEBUG : webex : updateTool=
2023-12-15 15:14:32 : DEBUG : webex : updateToolArguments=
2023-12-15 15:14:32 : DEBUG : webex : updateToolRunAsCurrentUser=
2023-12-15 15:14:32 : INFO  : webex : BLOCKING_PROCESS_ACTION=tell_user
2023-12-15 15:14:32 : INFO  : webex : NOTIFY=success
2023-12-15 15:14:32 : INFO  : webex : LOGGING=DEBUG
2023-12-15 15:14:32 : INFO  : webex : LOGO=/System/Applications/App Store.app/Contents/Resources/AppIcon.icns
2023-12-15 15:14:32 : INFO  : webex : Label type: dmg
2023-12-15 15:14:32 : INFO  : webex : archiveName: Webex.dmg
2023-12-15 15:14:32 : DEBUG : webex : Changing directory to /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/tmp.99QNztcqUc
2023-12-15 15:14:32 : INFO  : webex : App(s) found: /Applications/Webex.app
2023-12-15 15:14:32 : INFO  : webex : found app at /Applications/Webex.app, version 43.12.0.28111, on versionKey CFBundleShortVersionString
2023-12-15 15:14:32 : INFO  : webex : appversion: 43.12.0.28111
2023-12-15 15:14:32 : INFO  : webex : Latest version of Webex is 43.12.0.28111
2023-12-15 15:14:32 : INFO  : webex : There is no newer version available.
2023-12-15 15:14:32 : DEBUG : webex : Deleting /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/tmp.99QNztcqUc
2023-12-15 15:14:32 : DEBUG : webex : Debugging enabled, Deleting tmpDir output was:
/var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/tmp.99QNztcqUc
2023-12-15 15:14:32 : INFO  : webex : App not closed, so no reopen.
2023-12-15 15:14:32 : REQ   : webex : No newer version.
2023-12-15 15:14:32 : REQ   : webex : ################## End Installomator, exit code 0 

maurits@MMacBook14 Installomator % 

Note: due to the fact that Webex has lots of separate processes, the UI is bad because users gets separate notifications for each blockingProcesses. (and if you have bad luck, the other process has started the process just quitted).
@BigMacAdmin
Copy link
Collaborator

Thank you!

@BigMacAdmin BigMacAdmin added the application adds or improves an application label label Mar 12, 2024
@BigMacAdmin BigMacAdmin self-assigned this Mar 12, 2024
@BigMacAdmin BigMacAdmin merged commit b4d19b7 into Installomator:main Mar 12, 2024
@scriptingosx scriptingosx added this to the v10.6 milestone Mar 25, 2024
@scriptingosx scriptingosx changed the title added appNewVersion and blockingProcesses. Webex: added appNewVersion and blockingProcesses. Aug 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

application adds or improves an application label

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants