mirror of https://github.com/BOINC/boinc.git
Mac installer: fix a bug which prevented localizing BOINC installer dialogs.
This commit is contained in:
parent
2ea2077b2b
commit
f0487e88f4
|
@ -109,11 +109,11 @@ int main(int argc, char *argv[])
|
|||
// Expand the installer package
|
||||
system("rm -dfR /tmp/BOINC.pkg");
|
||||
system("rm -dfR /tmp/expanded_BOINC.pkg");
|
||||
|
||||
if (compareOSVersionTo(10, 9) < 0) {
|
||||
sprintf(temp, "pkgutil --expand \"%s\" /tmp/expanded_BOINC.pkg", pkgPath);
|
||||
err = system(temp);
|
||||
}
|
||||
system("rm -f /tmp/BOINC_preferred_languages");
|
||||
system("rm -f /tmp/BOINC_restart_flag");
|
||||
|
||||
sprintf(temp, "pkgutil --expand \"%s\" /tmp/expanded_BOINC.pkg", pkgPath);
|
||||
err = system(temp);
|
||||
|
||||
if (err == noErr) {
|
||||
GetPreferredLanguages();
|
||||
|
@ -167,6 +167,8 @@ int main(int argc, char *argv[])
|
|||
}
|
||||
}
|
||||
|
||||
system("rm -fR /tmp/expanded_BOINC.pkg");
|
||||
|
||||
sprintf(temp, "open \"%s\" &", pkgPath);
|
||||
system(temp);
|
||||
|
||||
|
|
Loading…
Reference in New Issue