mirror of https://github.com/BOINC/boinc.git
*** empty log message ***
svn path=/trunk/boinc/; revision=7722
This commit is contained in:
parent
a0bd24b348
commit
91514d443f
|
@ -11320,3 +11320,13 @@ David 1 Sept 2005
|
||||||
client_state.C,h
|
client_state.C,h
|
||||||
cs_statefile.C
|
cs_statefile.C
|
||||||
gui_rpc_server_ops.C
|
gui_rpc_server_ops.C
|
||||||
|
|
||||||
|
Charlie 1 Sept 2005
|
||||||
|
- Mac: create a UNIX shell script to automate creation of installers.
|
||||||
|
|
||||||
|
clientgui/
|
||||||
|
mac/
|
||||||
|
SetVersion.C
|
||||||
|
mac_installer/
|
||||||
|
release_boinc.sh (new)
|
||||||
|
|
||||||
|
|
|
@ -22,6 +22,7 @@
|
||||||
int IsFileCurrent(char* filePath);
|
int IsFileCurrent(char* filePath);
|
||||||
int FixInfoPlistFile(char* myPath);
|
int FixInfoPlistFile(char* myPath);
|
||||||
int FixInfoPlist_Strings(void);
|
int FixInfoPlist_Strings(void);
|
||||||
|
int MakeInstallerInfoPlistFile(void);
|
||||||
|
|
||||||
int main(int argc, char** argv) {
|
int main(int argc, char** argv) {
|
||||||
int retval = 0, err;
|
int retval = 0, err;
|
||||||
|
@ -37,14 +38,15 @@ int main(int argc, char** argv) {
|
||||||
|
|
||||||
err = FixInfoPlist_Strings();
|
err = FixInfoPlist_Strings();
|
||||||
if (err) retval = err;
|
if (err) retval = err;
|
||||||
FixInfoPlistFile("./Info.plist");
|
err = FixInfoPlistFile("./Info.plist");
|
||||||
if (err) retval = err;
|
if (err) retval = err;
|
||||||
FixInfoPlistFile("./Installer-Info.plist");
|
err = FixInfoPlistFile("./Installer-Info.plist");
|
||||||
if (err) retval = err;
|
if (err) retval = err;
|
||||||
FixInfoPlistFile("./ScreenSaver-Info.plist");
|
err = FixInfoPlistFile("./ScreenSaver-Info.plist");
|
||||||
if (err) retval = err;
|
if (err) retval = err;
|
||||||
FixInfoPlistFile("./SystemMenu-Info.plist");
|
err = FixInfoPlistFile("./SystemMenu-Info.plist");
|
||||||
if (err) retval = err;
|
if (err) retval = err;
|
||||||
|
err = MakeInstallerInfoPlistFile();
|
||||||
return retval;
|
return retval;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -170,3 +172,50 @@ bail:
|
||||||
printf("Error updating version number in file %s\n", myPath);
|
printf("Error updating version number in file %s\n", myPath);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
int MakeInstallerInfoPlistFile() {
|
||||||
|
int retval = 0;
|
||||||
|
FILE *f;
|
||||||
|
char *myPath = "./Pkg-Info.plist";
|
||||||
|
|
||||||
|
if (IsFileCurrent(myPath))
|
||||||
|
return 0;
|
||||||
|
|
||||||
|
f = fopen(myPath, "w");
|
||||||
|
if (f)
|
||||||
|
{
|
||||||
|
fprintf(f, "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n");
|
||||||
|
fprintf(f, "<!DOCTYPE plist PUBLIC \"-//Apple Computer//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\">\n");
|
||||||
|
fprintf(f, "<plist version=\"1.0\">\n<dict>\n");
|
||||||
|
fprintf(f, "\t<key>CFBundleGetInfoString</key>\n");
|
||||||
|
fprintf(f, "\t<string>BOINC Manager %s</string>\n", BOINC_VERSION_STRING);
|
||||||
|
fprintf(f, "\t<key>CFBundleIdentifier</key>\n\t<string>edu.berkeley.boinc</string>\n");
|
||||||
|
fprintf(f, "\t<key>CFBundleShortVersionString</key>\n");
|
||||||
|
fprintf(f, "\t<string>%s</string>\n", BOINC_VERSION_STRING);
|
||||||
|
fprintf(f, "\t<key>IFPkgFlagAllowBackRev</key>\n\t<integer>1</integer>\n");
|
||||||
|
fprintf(f, "\t<key>IFPkgFlagAuthorizationAction</key>\n\t<string>AdminAuthorization</string>\n");
|
||||||
|
fprintf(f, "\t<key>IFPkgFlagDefaultLocation</key>\n\t<string>/</string>\n");
|
||||||
|
fprintf(f, "\t<key>IFPkgFlagFollowLinks</key>\n\t<integer>0</integer>\n");
|
||||||
|
fprintf(f, "\t<key>IFPkgFlagInstallFat</key>\n\t<integer>0</integer>\n");
|
||||||
|
fprintf(f, "\t<key>IFPkgFlagInstalledSize</key>\n\t<integer>6680</integer>\n");
|
||||||
|
fprintf(f, "\t<key>IFPkgFlagIsRequired</key>\n\t<integer>0</integer>\n");
|
||||||
|
fprintf(f, "\t<key>IFPkgFlagOverwritePermissions</key>\n\t<integer>0</integer>\n");
|
||||||
|
fprintf(f, "\t<key>IFPkgFlagRelocatable</key>\n\t<integer>0</integer>\n");
|
||||||
|
fprintf(f, "\t<key>IFPkgFlagRestartAction</key>\n\t<string>NoRestart</string>\n");
|
||||||
|
fprintf(f, "\t<key>IFPkgFlagRootVolumeOnly</key>\n\t<integer>1</integer>\n");
|
||||||
|
fprintf(f, "\t<key>IFPkgFlagUpdateInstalledLanguages</key>\n\t<integer>0</integer>\n");
|
||||||
|
fprintf(f, "\t<key>IFPkgFormatVersion</key>\n\t<real>0.10000000149011612</real>\n");
|
||||||
|
fprintf(f, "</dict>\n</plist>\n");
|
||||||
|
|
||||||
|
retval = fclose(f);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
puts("Error creating file Pkg-Info.plist\n");
|
||||||
|
retval = -1;
|
||||||
|
}
|
||||||
|
|
||||||
|
return retval;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/* Localized versions of Info.plist keys */
|
/* Localized versions of Info.plist keys */
|
||||||
|
|
||||||
CFBundleName = "BOINC";
|
CFBundleName = "BOINC";
|
||||||
CFBundleShortVersionString = "BOINC version 4.72";
|
CFBundleShortVersionString = "BOINC version 5.3.1";
|
||||||
CFBundleGetInfoString = "BOINC version 4.72, Copyright 2005 University of California.";
|
CFBundleGetInfoString = "BOINC version 5.3.1, Copyright 2005 University of California.";
|
||||||
|
|
|
@ -17,6 +17,6 @@
|
||||||
<key>CFBundleSignature</key>
|
<key>CFBundleSignature</key>
|
||||||
<string>BNC!</string>
|
<string>BNC!</string>
|
||||||
<key>CFBundleVersion</key>
|
<key>CFBundleVersion</key>
|
||||||
<string>4.72</string>
|
<string>5.3.1</string>
|
||||||
</dict>
|
</dict>
|
||||||
</plist>
|
</plist>
|
||||||
|
|
|
@ -15,6 +15,6 @@
|
||||||
<key>CFBundleSignature</key>
|
<key>CFBundleSignature</key>
|
||||||
<string>????</string>
|
<string>????</string>
|
||||||
<key>CFBundleVersion</key>
|
<key>CFBundleVersion</key>
|
||||||
<string>4.72</string>
|
<string>5.3.1</string>
|
||||||
</dict>
|
</dict>
|
||||||
</plist>
|
</plist>
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
<key>CFBundleSignature</key>
|
<key>CFBundleSignature</key>
|
||||||
<string>????</string>
|
<string>????</string>
|
||||||
<key>CFBundleVersion</key>
|
<key>CFBundleVersion</key>
|
||||||
<string>4.72</string>
|
<string>5.3.1</string>
|
||||||
<key>NSPrincipalClass</key>
|
<key>NSPrincipalClass</key>
|
||||||
<string>BOINC_Saver_ModuleView</string>
|
<string>BOINC_Saver_ModuleView</string>
|
||||||
</dict>
|
</dict>
|
||||||
|
|
|
@ -15,6 +15,6 @@
|
||||||
<key>CFBundleSignature</key>
|
<key>CFBundleSignature</key>
|
||||||
<string>????</string>
|
<string>????</string>
|
||||||
<key>CFBundleVersion</key>
|
<key>CFBundleVersion</key>
|
||||||
<string>4.72</string>
|
<string>5.3.1</string>
|
||||||
</dict>
|
</dict>
|
||||||
</plist>
|
</plist>
|
||||||
|
|
|
@ -0,0 +1,79 @@
|
||||||
|
#!/bin/csh
|
||||||
|
|
||||||
|
##
|
||||||
|
# Release Script for Macintosh BOINC Manager 9/1/05 by Charlie Fenton
|
||||||
|
##
|
||||||
|
|
||||||
|
## Usage:
|
||||||
|
## cd to the root directory of the boinc tree, for example:
|
||||||
|
## cd [path]/boinc
|
||||||
|
##
|
||||||
|
## Invoke this script with the three parts of version number as arguments.
|
||||||
|
## For example, if the version is 3.2.1:
|
||||||
|
## source [path_to_this_script] 3 2 1
|
||||||
|
##
|
||||||
|
## This will create a director "BOINC_Installer" in the parent directory of
|
||||||
|
## the current directory
|
||||||
|
|
||||||
|
|
||||||
|
rm -dfR ../BOINC_Installer/Installer\ Resources/
|
||||||
|
rm -dfR ../BOINC_Installer/Pkg_Root
|
||||||
|
|
||||||
|
mkdir -p ../BOINC_Installer/Installer\ Resources/
|
||||||
|
|
||||||
|
cp -fp mac_Installer/License.rtf ../BOINC_Installer/Installer\ Resources/
|
||||||
|
cp -fp mac_installer/ReadMe.rtf ../BOINC_Installer/Installer\ Resources/
|
||||||
|
cp -fp mac_installer/postinstall ../BOINC_Installer/Installer\ Resources/
|
||||||
|
cp -fp mac_installer/postupgrade ../BOINC_Installer/Installer\ Resources/
|
||||||
|
|
||||||
|
cp -fpR mac_build/build/Postinstall.app ../BOINC_Installer/Installer\ Resources/
|
||||||
|
|
||||||
|
mkdir -p ../BOINC_Installer/Pkg_Root
|
||||||
|
mkdir -p ../BOINC_Installer/Pkg_Root/Applications
|
||||||
|
mkdir -p ../BOINC_Installer/Pkg_Root/Library
|
||||||
|
mkdir -p ../BOINC_Installer/Pkg_Root/Library/Screen\ Savers
|
||||||
|
mkdir -p ../BOINC_Installer/Pkg_Root/Library/Application\ Support
|
||||||
|
mkdir -p ../BOINC_Installer/Pkg_Root/Library/Application\ Support/BOINC\ Data
|
||||||
|
mkdir -p ../BOINC_Installer/Pkg_Root/Library/Application\ Support/BOINC\ Data/locale
|
||||||
|
|
||||||
|
cp -fpR mac_build/build/BOINCManager.app ../BOINC_Installer/Pkg_Root/Applications/
|
||||||
|
|
||||||
|
cp -fpR mac_build/build/BOINCSaver.saver ../BOINC_Installer/Pkg_Root/Library/Screen\ Savers/
|
||||||
|
|
||||||
|
cp -fpR locale/client/ ../BOINC_Installer/Pkg_Root/Library/Application\ Support/BOINC\ Data/locale
|
||||||
|
rm -dfR ../BOINC_Installer/Pkg_Root/Library/Application\ Support/BOINC\ Data/locale/CVS
|
||||||
|
|
||||||
|
sudo chown -R root:admin ../BOINC_Installer/Pkg_Root/*
|
||||||
|
sudo chmod -R 775 ../BOINC_Installer/Pkg_Root/*
|
||||||
|
|
||||||
|
sudo chown -R 501:wheel ../BOINC_Installer/Pkg_Root/Applications/*
|
||||||
|
sudo chmod -R 755 ../BOINC_Installer/Pkg_Root/Applications/*
|
||||||
|
|
||||||
|
sudo chown -R 501:wheel ../BOINC_Installer/Pkg_Root/Library/Application\ Support/*
|
||||||
|
sudo chmod -R 755 ../BOINC_Installer/Pkg_Root/Library/Application\ Support/*
|
||||||
|
|
||||||
|
sudo chown -R 501:wheel ../BOINC_Installer/Pkg_Root/Library/Screen\ Savers/*
|
||||||
|
sudo chmod -R 755 ../BOINC_Installer/Pkg_Root/Library/Screen\ Savers/*
|
||||||
|
|
||||||
|
mkdir -p ../BOINC_Installer/New_Release_$1_$2_$3/
|
||||||
|
mkdir -p ../BOINC_Installer/New_Release_$1_$2_$3/boinc_$1.$2.$3_macOSX
|
||||||
|
mkdir -p ../BOINC_Installer/New_Release_$1_$2_$3/boinc_$1.$2.$3_powerpc-apple-darwin
|
||||||
|
mkdir -p ../BOINC_Installer/New_Release_$1_$2_$3/SymbolTables
|
||||||
|
|
||||||
|
cp -fp mac_installer/ReadMe.rtf ../BOINC_Installer/New_Release_$1_$2_$3/boinc_$1.$2.$3_macOSX
|
||||||
|
sudo chown -R 501:wheel ../BOINC_Installer/New_Release_$1_$2_$3/boinc_$1.$2.$3_macOSX/ReadMe.rtf
|
||||||
|
sudo chmod -R 755 ../BOINC_Installer/New_Release_$1_$2_$3/boinc_$1.$2.$3_macOSX/ReadMe.rtf
|
||||||
|
|
||||||
|
cp -fpR mac_build/build/boinc ../BOINC_Installer/New_Release_$1_$2_$3/boinc_$1.$2.$3_powerpc-apple-darwin/
|
||||||
|
cp -fpR mac_build/build/boinc_cmd ../BOINC_Installer/New_Release_$1_$2_$3/boinc_$1.$2.$3_powerpc-apple-darwin/
|
||||||
|
sudo chown -R root:admin ../BOINC_Installer/New_Release_$1_$2_$3/boinc_$1.$2.$3_powerpc-apple-darwin/*
|
||||||
|
sudo chmod -R 755 ../BOINC_Installer/New_Release_$1_$2_$3/boinc_$1.$2.$3_powerpc-apple-darwin/*
|
||||||
|
|
||||||
|
cp -fpR mac_build/build/SymbolTables ../BOINC_Installer/New_Release_$1_$2_$3/SymbolTables/
|
||||||
|
|
||||||
|
/Developer/Tools/packagemaker -build -p ../BOINC_Installer/New_Release_$1_$2_$3/boinc_$1.$2.$3_macOSX/BOINC.pkg -f ../BOINC_Installer/Pkg_Root -r ../BOINC_Installer/Installer\ Resources/ -i mac_build/build/Pkg-Info.plist -ds
|
||||||
|
|
||||||
|
cd ../BOINC_Installer/New_Release_$1_$2_$3
|
||||||
|
zip -rq boinc_$1.$2.$3_macOSX.zip boinc_$1.$2.$3_macOSX
|
||||||
|
zip -rq boinc_$1.$2.$3_powerpc-apple-darwin.zip boinc_$1.$2.$3_powerpc-apple-darwin
|
||||||
|
|
Loading…
Reference in New Issue