mirror of https://github.com/BOINC/boinc.git
Mac installer: revert to using a wrapper application around installer package
svn path=/trunk/boinc/; revision=24725
This commit is contained in:
parent
94919cd091
commit
d536eb2da9
|
@ -95,6 +95,10 @@ int main(int argc, char *argv[])
|
|||
if (p)
|
||||
*p = '\0';
|
||||
|
||||
p = strstr(brand, " Installer.app"); // Strip off trailing " Installer.app"
|
||||
if (p)
|
||||
*p = '\0';
|
||||
|
||||
err = Gestalt(gestaltSystemVersion, &response);
|
||||
if (err != noErr)
|
||||
return err;
|
||||
|
@ -116,6 +120,11 @@ int main(int argc, char *argv[])
|
|||
ExitToShell();
|
||||
}
|
||||
|
||||
// Remove previous installer package receipt so we can run installer again
|
||||
// "rm -rf /Library/Receipts/GridRepublic.pkg"
|
||||
sprintf(s, "rm -rf \"/Library/Receipts/%s.pkg\"", brand);
|
||||
system (s);
|
||||
|
||||
strlcat(pkgPath, ".pkg", sizeof(pkgPath));
|
||||
|
||||
err = Gestalt(gestaltSystemVersion, &response);
|
||||
|
|
Loading…
Reference in New Issue