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
|
// Expand the installer package
|
||||||
system("rm -dfR /tmp/BOINC.pkg");
|
system("rm -dfR /tmp/BOINC.pkg");
|
||||||
system("rm -dfR /tmp/expanded_BOINC.pkg");
|
system("rm -dfR /tmp/expanded_BOINC.pkg");
|
||||||
|
system("rm -f /tmp/BOINC_preferred_languages");
|
||||||
if (compareOSVersionTo(10, 9) < 0) {
|
system("rm -f /tmp/BOINC_restart_flag");
|
||||||
sprintf(temp, "pkgutil --expand \"%s\" /tmp/expanded_BOINC.pkg", pkgPath);
|
|
||||||
err = system(temp);
|
sprintf(temp, "pkgutil --expand \"%s\" /tmp/expanded_BOINC.pkg", pkgPath);
|
||||||
}
|
err = system(temp);
|
||||||
|
|
||||||
if (err == noErr) {
|
if (err == noErr) {
|
||||||
GetPreferredLanguages();
|
GetPreferredLanguages();
|
||||||
|
@ -167,6 +167,8 @@ int main(int argc, char *argv[])
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
system("rm -fR /tmp/expanded_BOINC.pkg");
|
||||||
|
|
||||||
sprintf(temp, "open \"%s\" &", pkgPath);
|
sprintf(temp, "open \"%s\" &", pkgPath);
|
||||||
system(temp);
|
system(temp);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue