mirror of
https://github.com/overte-org/overte.git
synced 2025-08-10 05:52:31 +02:00
Add env variable to adjust builds URL in mac launcher
This commit is contained in:
parent
1e65908e43
commit
322ba3ad55
1 changed files with 9 additions and 1 deletions
|
@ -5,8 +5,16 @@
|
||||||
@implementation LatestBuildRequest
|
@implementation LatestBuildRequest
|
||||||
|
|
||||||
- (void) requestLatestBuildInfo {
|
- (void) requestLatestBuildInfo {
|
||||||
|
NSString* buildsURL = [[[NSProcessInfo processInfo] environment] objectForKey:@"HQ_LAUNCHER_BUILDS_URL"];
|
||||||
|
|
||||||
|
if ([buildsURL length] == 0) {
|
||||||
|
buildsURL = @"https://thunder.highfidelity.com/builds/api/tags/latest?format=json";
|
||||||
|
}
|
||||||
|
|
||||||
|
NSLog(@"Making request for builds to: %@", buildsURL);
|
||||||
|
|
||||||
NSMutableURLRequest* request = [NSMutableURLRequest new];
|
NSMutableURLRequest* request = [NSMutableURLRequest new];
|
||||||
[request setURL:[NSURL URLWithString:@"https://thunder.highfidelity.com/builds/api/tags/latest?format=json"]];
|
[request setURL:[NSURL URLWithString:buildsURL]];
|
||||||
[request setHTTPMethod:@"GET"];
|
[request setHTTPMethod:@"GET"];
|
||||||
[request setValue:@"application/json" forHTTPHeaderField:@"Content-Type"];
|
[request setValue:@"application/json" forHTTPHeaderField:@"Content-Type"];
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue