mirror of
https://github.com/sparkle-project/Sparkle
synced 2026-11-29 05:24:26 +00:00
Remove passing duplicated host path
This commit is contained in:
1 parent
7ea2d0f9cf
commit
6f30ae2093
2 files changed
+9
-10
No files matched your search
Vendored
+8
-9
@@ -33,17 +33,16 @@ int main(int __unused argc, const char __unused *argv[])
|
||||
@autoreleasepool
|
||||
{
|
||||
NSArray *args = [[NSProcessInfo processInfo] arguments];
|
||||
if (args.count != 8) {
|
||||
if (args.count != 7) {
|
||||
return EXIT_FAILURE;
|
||||
}
|
||||
|
||||
NSString *hostPath = args[1];
|
||||
NSString *relaunchPath = args[2];
|
||||
NSString *hostBundlePath = args[3];
|
||||
NSString *updateDirectoryPath = args[4];
|
||||
BOOL shouldRelaunchApp = [args[5] boolValue];
|
||||
BOOL shouldShowUI = [args[6] boolValue];
|
||||
BOOL shouldRelaunchTool = [args[7] boolValue];
|
||||
NSString *relaunchPath = args[1];
|
||||
NSString *hostBundlePath = args[2];
|
||||
NSString *updateDirectoryPath = args[3];
|
||||
BOOL shouldRelaunchApp = [args[4] boolValue];
|
||||
BOOL shouldShowUI = [args[5] boolValue];
|
||||
BOOL shouldRelaunchTool = [args[6] boolValue];
|
||||
|
||||
if (shouldRelaunchTool) {
|
||||
NSURL *mainBundleURL = [[NSBundle mainBundle] bundleURL];
|
||||
@@ -84,7 +83,7 @@ int main(int __unused argc, const char __unused *argv[])
|
||||
}
|
||||
}
|
||||
|
||||
AppInstaller *appInstaller = [[AppInstaller alloc] initWithHostPath:hostPath
|
||||
AppInstaller *appInstaller = [[AppInstaller alloc] initWithHostPath:hostBundlePath
|
||||
relaunchPath:relaunchPath
|
||||
hostProcessIdentifier:activeProcessIdentifier
|
||||
updateFolderPath:updateDirectoryPath
|
||||
|
||||
Vendored
+1
-1
@@ -547,7 +547,7 @@
|
||||
pathToRelaunch = [updaterDelegate pathToRelaunchForUpdater:self.updater];
|
||||
}
|
||||
|
||||
NSArray *launchArguments = @[[self.host bundlePath],
|
||||
NSArray *launchArguments = @[
|
||||
pathToRelaunch,
|
||||
self.host.bundlePath,
|
||||
self.tempDir,
|
||||
|
||||
Reference in new issue
Block a user