mirror of
https://github.com/AleziaKurdis/overte.git
synced 2025-04-07 13:12:39 +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
|
||||
|
||||
- (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];
|
||||
[request setURL:[NSURL URLWithString:@"https://thunder.highfidelity.com/builds/api/tags/latest?format=json"]];
|
||||
[request setURL:[NSURL URLWithString:buildsURL]];
|
||||
[request setHTTPMethod:@"GET"];
|
||||
[request setValue:@"application/json" forHTTPHeaderField:@"Content-Type"];
|
||||
|
||||
|
|
Loading…
Reference in a new issue