Skip to content

Commit

Permalink
WineskinApp: Correct winetricks url location
Browse files Browse the repository at this point in the history
  • Loading branch information
Gcenx authored Oct 4, 2024
1 parent d4fd2fa commit 2f28326
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion WineskinApp/Classes/Controller/WineskinAppDelegate.m
Original file line number Diff line number Diff line change
Expand Up @@ -533,7 +533,7 @@ - (void)runACommandLineTestRun
// Check for winetricks, if missing download
if (![fm fileExistsAtPath:[NSString stringWithFormat:@"%@/Contents/Resources/winetricks",[[NSBundle mainBundle] bundlePath]]]) {
//Get the URL where winetricks is located
NSURL *url = [NSURL URLWithString:[NSString stringWithFormat:@"https://raw.githubusercontent.com/The-Wineskin-Project/WineskinServer/main/WineskinWinetricks/Location.txt?%@",[[NSNumber numberWithLong:rand()] stringValue]]];
NSURL *url = [NSURL URLWithString:[NSString stringWithFormat:@"https://raw.githubusercontent.com/The-Wineskin-Project/WineskinServer/main/Winetricks/Location.txt?%@",[[NSNumber numberWithLong:rand()] stringValue]]];
NSString *urlWhereWinetricksIs = [NSString stringWithContentsOfURL:url encoding:NSUTF8StringEncoding timeoutInterval:5];
urlWhereWinetricksIs = [urlWhereWinetricksIs stringByReplacingOccurrencesOfString:@"\n" withString:@""]; //remove \n

Expand Down

0 comments on commit 2f28326

Please sign in to comment.