Commit graph

79 commits

Author SHA1 Message Date
dante ruiz
768ac08d11 Add entitlements for Launcher and Interface 2019-09-06 11:20:16 -07:00
dante ruiz
c2e0e6a976 Change Launcher config.json location
Launcher `config.json` can not be inside Interface's app bundle, as it
will break signing.
2019-09-06 11:20:06 -07:00
Matt Hardcastle
43237e1409 Check macOS Launcher's zip size before unzipping
The Launcher can download an error page rather than the full Launcher.
When this happens, the error page file is passed directly to unzip,
which promptly fails with the following message:

  End-of-central-directory signature not found.  Either this file is not
  a zipfile, or it constitutes one disk of a multi-part archive.  In the
  latter case the central directory and zipfile comment will be found on
  the last disk(s) of this archive.
  unzip:  cannot find zipfile directory in one of NewHQLauncher.zip or
          NewHQLauncher.zip.zip, and cannot find NewHQLauncher.zip.ZIP, period.

This change improves the error message by checking the size of the
Launcher download and failing if the Launcher is smaller than the
smallest Launcher we've released. The smallest Launcher we've had is
308KB, so I picked 250KB as the limit because it's a nice rounder number
below that.
2019-09-05 12:35:24 -07:00
Matt Hardcastle
cba258b8c4 Error handling for Launcher's update
Before this change the update helper app in the Mac version of HQ
Launcher silently ignored errors. This change adds error handling to aid
troubleshooting.
2019-09-03 09:18:32 -07:00
Matt Hardcastle
b8d2e73cf7 Don't cache when fetching Thunder's build info
I was mistaken when I added the EphemeralSession to stop local caching.
Using an EphermeralSession doesn't stop Foundation from caching a
request. Setting a request cache policy controls caching.
2019-08-29 16:49:21 -07:00
Shannon Romano
7d7db56782
Merge pull request #16094 from huffman/fix/win-launcher-button-labels
DEV-396: Fix login and next button labels in launchers
2019-08-26 15:40:33 -07:00
Matt Hardcastle
ce25ee5377 Add HIFI_THUNDER_URL environment variable 2019-08-26 09:10:19 -07:00
Ryan Huffman
2e0410c6bc Fix login and next button labels in launchers 2019-08-23 15:36:07 -07:00
Shannon Romano
264abe7d0c
Merge pull request #16046 from huffman/feat/mac-launcher-tags
DEV-316: Add build tags to Mac launcher
2019-08-23 13:41:52 -07:00
Ryan Huffman
1eaba67f67 Remove use of build version in mac launcher settings 2019-08-22 15:07:12 -07:00
Matt Hardcastle
fa8db8c6ee Add platform to Mac Launcher's user-agent string 2019-08-22 09:10:38 -07:00
Matt Hardcastle
c987106d96 Add User-Agent string to macOS Launcher
Before this change, the mac HQ launcher didn't set a User-Agent string.
This change adds a User-Agent header – HQLauncher/$version – to each
HTTP request the mac launcher makes.

The approach I took was to add the User-Agent header to each HTTP
request. There is room for improvement. Most of the session
initialization could be rolled up into a helper class that sets the
User-Agent headers and other configuration parameters. Making that
change would be too much overhead for this quick task.

Jira: https://highfidelity.atlassian.net/browse/DEV-417
2019-08-21 13:29:56 -07:00
Ryan Huffman
b8887aa01e Fix mac launcher not correctly reading interface version
The logic to convert the interface output assumed that the output would
be null terminated, but it was not.
2019-08-19 10:02:38 -07:00
Ryan Huffman
73c120b154 Add mac launcher logging around latest build 2019-08-19 10:00:29 -07:00
Ryan Huffman
5916fb42ac Fix mac launcher not correctly reading interface version
The logic to convert the interface output assumed that the output would
be null terminated, but it was not.
2019-08-19 09:59:16 -07:00
Ryan Huffman
5ae6a323ac Cleanup macos launcher download spam 2019-08-19 09:58:22 -07:00
Ryan Huffman
8642f2aaf8 Fix mac launcher not handling networking failures when requesting builds 2019-08-16 17:07:35 -07:00
Ryan Huffman
322ba3ad55 Add env variable to adjust builds URL in mac launcher 2019-08-16 17:07:35 -07:00
Ryan Huffman
1e65908e43 Add build tags to Mac launcher 2019-08-16 17:07:35 -07:00
Matt Hardcastle
cff4f9da19 Use execve to "launch" Interface on macOS
Co-authored-by: dante ruiz <dante@highfidelity.io>
2019-08-07 16:41:24 -07:00
dante ruiz
7ab8a6b8d1 fixing typo 2019-08-05 13:16:08 -07:00
dante ruiz
b9106b9ade making requested changes 2019-08-02 11:26:41 -07:00
dante ruiz
7ed13a2ba2 auto-updater 2019-07-26 17:41:46 -07:00
dante ruiz
9c6c4a264d inital work 2019-07-24 15:23:26 -07:00
dante ruiz
08bfe00ac4 making requested changes 2019-07-23 14:09:46 -07:00
dante ruiz
1d1b1a93d9 revert 2019-07-22 10:06:24 -07:00
dante ruiz
78d877a0b6 finish versioning 2019-07-22 10:01:48 -07:00
dante ruiz
1eae39b78c starting cleanup work 2019-07-19 18:07:55 -07:00
dante ruiz
2ffacfea83 change script params 2019-07-11 08:51:47 -07:00
dante ruiz
996a2f0888 remove comment 2019-07-09 15:47:05 -07:00
dante ruiz
1741b9a91b remove prints 2019-07-09 14:49:08 -07:00
dante ruiz
8819a37712 making updates 2019-07-09 14:44:40 -07:00
dante ruiz
15cc7a0e6c finished work 2019-07-09 10:43:46 -07:00
dante ruiz
a5f9283bde almost done 2019-07-06 11:46:40 -07:00
dante ruiz
f210be32dc updating progress indicator work 2019-07-02 20:56:49 -07:00
dante ruiz
fb8027bdf5 inital progress indicator work 2019-07-01 19:01:13 -07:00
dante ruiz
12477f3df1 making requested changes 2019-06-28 15:37:21 -07:00
dante ruiz
6a5c9097c9 finished adding error checking for launcher 2019-06-28 13:35:24 -07:00
dante ruiz
d20f50fa3c redoing some work 2019-06-27 20:53:23 -07:00
dante ruiz
1e38e7b7eb print out exception error 2019-06-25 14:11:41 -07:00
dante ruiz
68d620fca3 fix crash 2019-06-25 13:37:45 -07:00
Dante Ruiz
bcdf409fd3
Merge pull request #15824 from MattHardcastle/mac-hq-launcher
A couple macOS HQ Launcher bug fixes
2019-06-25 08:28:50 -07:00
dante ruiz
dd639c4191 fix typo 2019-06-24 15:33:47 -07:00
dante ruiz
e119afdead terms of service 2019-06-24 14:35:59 -07:00
Matt Hardcastle
9ae67c15b2 Use old API to launch tasks on all versions of macOS 2019-06-24 14:27:07 -07:00
Matt Hardcastle
4f6e2c85f9 Never cache the tags API in macOS's HQ Launcher
Prior to this change we used the default session while downloading the
latest tags API response from Thunder. This left open the possibility that
NSURLSession could cache the response, even though the server asked it
not to; NSURLSession can be pretty aggressive about its caching.

This change ensure no caching of the API is occurring my using an
ephemeral session when calling the tags API.
2019-06-22 12:35:05 -07:00
Matt Hardcastle
4d28c5fe41 Use version from Interface in macOS HQ Launcher
Prior to this change the macOS HQ Launcher used the version from the
settings files. Pull this information in the settings file could
result in a situation where the setting file was updated, but interface
wasn't. When the launcher ran a second time it would check the settings
file and think Interface was updated even though it wasn't. This change
resolves the issue by asking interface for its version directly.

In the event that Interface doesn't response with a version number HQ
Launcher knows how to interoperate HQ Launcher will fall back to using the
settings file.

Known Issues
---

1) Interface reports different version number formats depending
    on how its built. A stable interface for getting the build version
    from interface should be added.
2019-06-22 12:34:47 -07:00
Matt Hardcastle
3a5aa4194e Pin the macOS HQ Launcher target version to 10.9
This change pins HQ Launcher's target SDK to 10.9, which is the same as
the target SDK for Interface. Without this pinned value the target
version defaults to whatever the OS version is on the machine that
happened to build HQ Launcher.
2019-06-22 11:53:23 -07:00
Matt Hardcastle
73616b81f3 Fail on empty LAUNCHER_HMAC_SECRET
Priot to this change there was code that attempted to verify that
LAUNCHER_HMAC_SECRET was set to something. This code was broke though
and didn't catch the case correctly. This change fixes the check.
2019-06-22 11:53:23 -07:00
dante ruiz
b42306739d remove comments 2019-06-20 14:00:50 -07:00