Mac installer: fix a bug which prevented localizing BOINC installer dialogs.

This commit is contained in:
Charlie Fenton 2014-09-29 05:14:15 -07:00
parent 2ea2077b2b
commit f0487e88f4
1 changed files with 7 additions and 5 deletions

View File

@ -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");
system("rm -f /tmp/BOINC_preferred_languages");
system("rm -f /tmp/BOINC_restart_flag");
if (compareOSVersionTo(10, 9) < 0) {
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) {
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);