Skip to content

Comments

Fix "polylens" label to exclude Windows-only versions#2003

Closed
jschwager wants to merge 1 commit intoInstallomator:mainfrom
jschwager:fix-label-polylens
Closed

Fix "polylens" label to exclude Windows-only versions#2003
jschwager wants to merge 1 commit intoInstallomator:mainfrom
jschwager:fix-label-polylens

Conversation

@jschwager
Copy link
Contributor

appNewVersion was previously grabbing version numbers for Windows-only versions. Updated the command to exclude any versions with "Windows" in the title.

Output:

./assemble.sh polylens              
2024-11-13 21:08:32 : REQ   : polylens : ################## Start Installomator v. 10.7beta, date 2024-11-13
2024-11-13 21:08:32 : INFO  : polylens : ################## Version: 10.7beta
2024-11-13 21:08:32 : INFO  : polylens : ################## Date: 2024-11-13
2024-11-13 21:08:32 : INFO  : polylens : ################## polylens
2024-11-13 21:08:32 : DEBUG : polylens : DEBUG mode 1 enabled.
2024-11-13 21:08:32 : DEBUG : polylens : name=Poly Lens
2024-11-13 21:08:32 : DEBUG : polylens : appName=
2024-11-13 21:08:32 : DEBUG : polylens : type=dmg
2024-11-13 21:08:33 : DEBUG : polylens : archiveName=
2024-11-13 21:08:33 : DEBUG : polylens : downloadURL=https://swupdate.lens.poly.com/lens-desktop-mac/1.4.0/1.4.0/PolyLens-1.4.0.dmg
2024-11-13 21:08:33 : DEBUG : polylens : curlOptions=
2024-11-13 21:08:33 : DEBUG : polylens : appNewVersion=1.4.0
2024-11-13 21:08:33 : DEBUG : polylens : appCustomVersion function: Not defined
2024-11-13 21:08:33 : DEBUG : polylens : versionKey=CFBundleShortVersionString
2024-11-13 21:08:33 : DEBUG : polylens : packageID=
2024-11-13 21:08:33 : DEBUG : polylens : pkgName=
2024-11-13 21:08:33 : DEBUG : polylens : choiceChangesXML=
2024-11-13 21:08:33 : DEBUG : polylens : expectedTeamID=SKWK2Q7JJV
2024-11-13 21:08:33 : DEBUG : polylens : blockingProcesses=
2024-11-13 21:08:33 : DEBUG : polylens : installerTool=
2024-11-13 21:08:33 : DEBUG : polylens : CLIInstaller=
2024-11-13 21:08:33 : DEBUG : polylens : CLIArguments=
2024-11-13 21:08:33 : DEBUG : polylens : updateTool=
2024-11-13 21:08:33 : DEBUG : polylens : updateToolArguments=
2024-11-13 21:08:33 : DEBUG : polylens : updateToolRunAsCurrentUser=
2024-11-13 21:08:33 : INFO  : polylens : BLOCKING_PROCESS_ACTION=tell_user
2024-11-13 21:08:33 : INFO  : polylens : NOTIFY=success
2024-11-13 21:08:33 : INFO  : polylens : LOGGING=DEBUG
2024-11-13 21:08:33 : INFO  : polylens : LOGO=/System/Applications/App Store.app/Contents/Resources/AppIcon.icns
2024-11-13 21:08:33 : INFO  : polylens : Label type: dmg
2024-11-13 21:08:33 : INFO  : polylens : archiveName: Poly Lens.dmg
2024-11-13 21:08:33 : INFO  : polylens : no blocking processes defined, using Poly Lens as default
2024-11-13 21:08:33 : DEBUG : polylens : Changing directory to /Users/jaredschwager/Documents/Repositories/Installomator/build
2024-11-13 21:08:33 : INFO  : polylens : name: Poly Lens, appName: Poly Lens.app
2024-11-13 21:08:33.365 mdfind[35649:569911] [UserQueryParser] Loading keywords and predicates for locale "en_US"
2024-11-13 21:08:33.366 mdfind[35649:569911] [UserQueryParser] Loading keywords and predicates for locale "en"
2024-11-13 21:08:33.614 mdfind[35649:569911] Couldn't determine the mapping between prefab keywords and predicates.
2024-11-13 21:08:33 : WARN  : polylens : No previous app found
2024-11-13 21:08:33 : WARN  : polylens : could not find Poly Lens.app
2024-11-13 21:08:33 : INFO  : polylens : appversion: 
2024-11-13 21:08:33 : INFO  : polylens : Latest version of Poly Lens is 1.4.0
2024-11-13 21:08:33 : REQ   : polylens : Downloading https://swupdate.lens.poly.com/lens-desktop-mac/1.4.0/1.4.0/PolyLens-1.4.0.dmg to Poly Lens.dmg
2024-11-13 21:08:33 : DEBUG : polylens : No Dialog connection, just download
2024-11-13 21:08:39 : DEBUG : polylens : File list: -rw-r--r--@ 1 jaredschwager  staff   173M Nov 13 21:08 Poly Lens.dmg
2024-11-13 21:08:39 : DEBUG : polylens : File type: Poly Lens.dmg: zlib compressed data
2024-11-13 21:08:39 : DEBUG : polylens : curl output was:
* Host swupdate.lens.poly.com:443 was resolved.
* IPv6: (none)
* IPv4: 13.107.253.40
*   Trying 13.107.253.40:443...
* Connected to swupdate.lens.poly.com (13.107.253.40) port 443
* ALPN: curl offers h2,http/1.1
* (304) (OUT), TLS handshake, Client hello (1):
} [327 bytes data]
*  CAfile: /etc/ssl/cert.pem
*  CApath: none
* (304) (IN), TLS handshake, Server hello (2):
{ [88 bytes data]
* (304) (OUT), TLS handshake, Client hello (1):
} [360 bytes data]
* (304) (IN), TLS handshake, Server hello (2):
{ [155 bytes data]
* (304) (IN), TLS handshake, Unknown (8):
{ [19 bytes data]
* (304) (IN), TLS handshake, Certificate (11):
{ [3929 bytes data]
* (304) (IN), TLS handshake, CERT verify (15):
{ [264 bytes data]
* (304) (IN), TLS handshake, Finished (20):
{ [52 bytes data]
* (304) (OUT), TLS handshake, Finished (20):
} [52 bytes data]
* SSL connection using TLSv1.3 / AEAD-AES256-GCM-SHA384 / [blank] / UNDEF
* ALPN: server accepted h2
* Server certificate:
*  subject: C=US; ST=Washington; L=Redmond; O=Microsoft Corporation; CN=swupdate.lens.poly.com
*  start date: Jul 31 00:00:00 2024 GMT
*  expire date: Jul 31 23:59:59 2025 GMT
*  subjectAltName: host "swupdate.lens.poly.com" matched cert's "swupdate.lens.poly.com"
*  issuer: C=US; O=DigiCert Inc; CN=DigiCert TLS RSA SHA256 2020 CA1
*  SSL certificate verify ok.
* using HTTP/2
* [HTTP/2] [1] OPENED stream for https://swupdate.lens.poly.com/lens-desktop-mac/1.4.0/1.4.0/PolyLens-1.4.0.dmg
* [HTTP/2] [1] [:method: GET]
* [HTTP/2] [1] [:scheme: https]
* [HTTP/2] [1] [:authority: swupdate.lens.poly.com]
* [HTTP/2] [1] [:path: /lens-desktop-mac/1.4.0/1.4.0/PolyLens-1.4.0.dmg]
* [HTTP/2] [1] [user-agent: curl/8.7.1]
* [HTTP/2] [1] [accept: */*]
> GET /lens-desktop-mac/1.4.0/1.4.0/PolyLens-1.4.0.dmg HTTP/2
> Host: swupdate.lens.poly.com
> User-Agent: curl/8.7.1
> Accept: */*
> 
* Request completely sent off
< HTTP/2 200 
< date: Thu, 14 Nov 2024 02:08:34 GMT
< content-type: application/octet-stream
< content-length: 181042162
< last-modified: Thu, 16 May 2024 17:46:46 GMT
< etag: "0x8DC75D02800E902"
< x-ms-request-id: d3ef9b1e-701e-0001-2838-369b87000000
< x-ms-version: 2018-03-28
< access-control-allow-origin: *
< x-azure-ref: 20241114T020834Z-178cd9dd65f2w8drhC1MNZxr6g000000082g000000010v1m
< x-fd-int-roxy-purgeid: 0
< x-cache-info: L1_T2
< x-cache: TCP_HIT
< accept-ranges: bytes
< 
{ [8192 bytes data]
* Connection #0 to host swupdate.lens.poly.com left intact

2024-11-13 21:08:39 : DEBUG : polylens : DEBUG mode 1, not checking for blocking processes
2024-11-13 21:08:39 : REQ   : polylens : Installing Poly Lens
2024-11-13 21:08:39 : INFO  : polylens : Mounting /Users/jaredschwager/Documents/Repositories/Installomator/build/Poly Lens.dmg
2024-11-13 21:08:44 : DEBUG : polylens : Debugging enabled, dmgmount output was:
Checksumming Protective Master Boot Record (MBR : 0)…
Protective Master Boot Record (MBR :: verified   CRC32 $995A3A79
Checksumming GPT Header (Primary GPT Header : 1)…
GPT Header (Primary GPT Header : 1): verified   CRC32 $5C3C0E69
Checksumming GPT Partition Data (Primary GPT Table : 2)…
GPT Partition Data (Primary GPT Tabl: verified   CRC32 $AB99A171
Checksumming  (Apple_Free : 3)…
(Apple_Free : 3): verified   CRC32 $00000000
Checksumming disk image (Apple_APFS : 4)…
disk image (Apple_APFS : 4): verified   CRC32 $4E8DF8D8
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 $AB99A171
Checksumming GPT Header (Backup GPT Header : 7)…
GPT Header (Backup GPT Header : 7): verified   CRC32 $4FE040C9
verified   CRC32 $A06C3EC7
/dev/disk4          	GUID_partition_scheme
/dev/disk4s1        	Apple_APFS
/dev/disk5          	EF57347C-0000-11AA-AA11-0030654
/dev/disk5s1        	41504653-0000-11AA-AA11-0030654	/Volumes/Poly Lens 1.4.0

2024-11-13 21:08:44 : INFO  : polylens : Mounted: /Volumes/Poly Lens 1.4.0
2024-11-13 21:08:44 : INFO  : polylens : Verifying: /Volumes/Poly Lens 1.4.0/Poly Lens.app
2024-11-13 21:08:44 : DEBUG : polylens : App size: 402M	/Volumes/Poly Lens 1.4.0/Poly Lens.app
2024-11-13 21:08:46 : DEBUG : polylens : Debugging enabled, App Verification output was:
/Volumes/Poly Lens 1.4.0/Poly Lens.app: accepted
source=Notarized Developer ID
origin=Developer ID Application: Plantronics, Inc. (SKWK2Q7JJV)

2024-11-13 21:08:46 : INFO  : polylens : Team ID matching: SKWK2Q7JJV (expected: SKWK2Q7JJV )
2024-11-13 21:08:46 : INFO  : polylens : Installing Poly Lens version 1.4.0 on versionKey CFBundleShortVersionString.
2024-11-13 21:08:46 : INFO  : polylens : App has LSMinimumSystemVersion: 10.11.0
2024-11-13 21:08:46 : DEBUG : polylens : DEBUG mode 1 enabled, skipping remove, copy and chown steps
2024-11-13 21:08:46 : INFO  : polylens : Finishing...
2024-11-13 21:08:49 : INFO  : polylens : name: Poly Lens, appName: Poly Lens.app
2024-11-13 21:08:49.890 mdfind[35774:570537] [UserQueryParser] Loading keywords and predicates for locale "en_US"
2024-11-13 21:08:49.890 mdfind[35774:570537] [UserQueryParser] Loading keywords and predicates for locale "en"
2024-11-13 21:08:49.937 mdfind[35774:570537] Couldn't determine the mapping between prefab keywords and predicates.
2024-11-13 21:08:49 : WARN  : polylens : No previous app found
2024-11-13 21:08:49 : WARN  : polylens : could not find Poly Lens.app
2024-11-13 21:08:49 : REQ   : polylens : Installed Poly Lens, version 1.4.0
2024-11-13 21:08:49 : INFO  : polylens : notifying
2024-11-13 21:08:50 : DEBUG : polylens : Unmounting /Volumes/Poly Lens 1.4.0
2024-11-13 21:08:50 : DEBUG : polylens : Debugging enabled, Unmounting output was:
"disk4" ejected.
2024-11-13 21:08:50 : DEBUG : polylens : DEBUG mode 1, not reopening anything
2024-11-13 21:08:50 : REQ   : polylens : All done!
2024-11-13 21:08:50 : REQ   : polylens : ################## End Installomator, exit code 0

appNewVersion was previously grabbing version numbers for Windows-only versions. Updated the command to exclude any versions with "Windows" in the title.
@jschwager jschwager changed the title Fix "polylens" label Fix "polylens" label to exclude Windows-only versions Nov 14, 2024
@gilburns
Copy link
Contributor

gilburns commented Nov 14, 2024

I submitted a PR a few weeks ago that uses the atom feed to find the latest version

#1922

Check that out and see if it works for you.

@jschwager jschwager closed this Nov 21, 2024
@jschwager
Copy link
Contributor Author

Thanks @gilburns! I somehow missed that one. Closing my PR.

@jschwager jschwager deleted the fix-label-polylens branch November 21, 2024 14:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants