Skip to content

Commit

Permalink
Mac installer: update build scripts for naming consistency with other…
Browse files Browse the repository at this point in the history
… platforms

svn path=/trunk/boinc/; revision=24797
  • Loading branch information
Charlie Fenton committed Dec 14, 2011
1 parent c396972 commit 7a9aa01
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 10 deletions.
7 changes: 7 additions & 0 deletions checkin_notes
Original file line number Diff line number Diff line change
Expand Up @@ -9044,3 +9044,10 @@ Charlie 14 Dec 2011
ptp_icon_play.png
clientscr/res/
ProgThruProc_ss_logo.png

Charlie 14 Dec 2011
- Mac installer: update build scripts for naming consistency with other platforms.

mac_installer/
make_CharityEngine.sh
make_ProgThruProc.sh
11 changes: 6 additions & 5 deletions mac_installer/make_CharityEngine.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

##
# Script to convert Macintosh BOINC installer to Charity Engine Desktop installer
# updated 12/7/11 by Charlie Fenton for BOINC 6.8.33 / 6.12.44 / 7.0.3 and later
# updated 12/14/11 by Charlie Fenton for BOINC 6.8.34 / 6.12.44 / 7.0.3 and later
##

## Usage:
Expand Down Expand Up @@ -75,6 +75,7 @@ BRAND_NAME="Charity Engine"
MANAGER_NAME="Charity Engine Desktop"
LC_BRAND_NAME="Charity Engine"
SOURCE_PKG_PATH="BOINC Installer.app/Contents/Resources/BOINC.pkg/Contents"
ZIP_BRAND_NAME="ce"

if [ $# -lt 3 ]; then
echo "Usage:"
Expand Down Expand Up @@ -357,15 +358,15 @@ sudo rm -dfR "${SCRIPTS_PATH}"
# Compress the products
cd ${NEW_DIR_PATH}
## Use ditto instead of zip utility to preserve resource forks and Finder attributes (custom icon, hide extension)
ditto -ck --sequesterRsrc --keepParent "${LC_BRAND_NAME}_$1.$2.$3_macOSX_universal" "${LC_BRAND_NAME}_$1.$2.$3_macOSX_universal.zip"
ditto -ck --sequesterRsrc --keepParent "${LC_BRAND_NAME}_$1.$2.$3_macOSX_universal" "${ZIP_BRAND_NAME}_$1.$2.$3_macOSX_universal.zip"
##### We've decided not to create branded command-line executables; they are identical to standard ones
#### ditto -ck --sequesterRsrc --keepParent "${LC_BRAND_NAME}_$1.$2.$3_universal-apple-darwin" "${LC_BRAND_NAME}_$1.$2.$3_universal-apple-darwin.zip"
#### ditto -ck --sequesterRsrc --keepParent "${LC_BRAND_NAME}_$1.$2.$3_universal-apple-darwin" "${ZIP_BRAND_NAME}_$1.$2.$3_universal-apple-darwin.zip"
##### We've decided not to create branded symbol table file; it is identical to standard one
#### ditto -ck --sequesterRsrc --keepParent "${LC_BRAND_NAME}_$1.$2.$3_macOSX_SymbolTables" "${LC_BRAND_NAME}_$1.$2.$3_macOSX_SymbolTables.zip"
#### ditto -ck --sequesterRsrc --keepParent "${LC_BRAND_NAME}_$1.$2.$3_macOSX_SymbolTables" "${ZIP_BRAND_NAME}_$1.$2.$3_macOSX_SymbolTables.zip"

# Force Finder to recognize changed icons by deleting the uncompressed products and expanding the zip file
sudo rm -dfR "${LC_BRAND_NAME}_$1.$2.$3_macOSX_universal"
open "${LC_BRAND_NAME}_$1.$2.$3_macOSX_universal.zip"
open "${ZIP_BRAND_NAME}_$1.$2.$3_macOSX_universal.zip"

popd
exit 0
12 changes: 7 additions & 5 deletions mac_installer/make_ProgThruProc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

##
# Script to convert Macintosh BOINC installer to Progress Thru Processors Desktop installer
# updated 12/7/11 by Charlie Fenton for BOINC 6.8.33 / 6.12.44 / 7.0.3 and later
# updated 12/14/11 by Charlie Fenton for BOINC 6.8.34 / 6.12.44 / 7.0.3 and later
##

## Usage:
Expand Down Expand Up @@ -74,6 +74,8 @@ BRAND_NAME="Progress Thru Processors"
MANAGER_NAME="Progress Thru Processors Desktop"
LC_BRAND_NAME="Progress Thru Processors"
SOURCE_PKG_PATH="BOINC Installer.app/Contents/Resources/BOINC.pkg/Contents"
ZIP_BRAND_NAME="ptp"


if [ $# -lt 3 ]; then
echo "Usage:"
Expand Down Expand Up @@ -359,15 +361,15 @@ sudo rm -dfR "${SCRIPTS_PATH}"
# Compress the products
cd ${NEW_DIR_PATH}
## Use ditto instead of zip utility to preserve resource forks and Finder attributes (custom icon, hide extension)
ditto -ck --sequesterRsrc --keepParent "${LC_BRAND_NAME}_$1.$2.$3_macOSX_universal" "${LC_BRAND_NAME}_$1.$2.$3_macOSX_universal.zip"
ditto -ck --sequesterRsrc --keepParent "${LC_BRAND_NAME}_$1.$2.$3_macOSX_universal" "${ZIP_BRAND_NAME}_$1.$2.$3_macOSX_universal.zip"
##### We've decided not to create branded command-line executables; they are identical to standard ones
#### ditto -ck --sequesterRsrc --keepParent "${LC_BRAND_NAME}_$1.$2.$3_universal-apple-darwin" "${LC_BRAND_NAME}_$1.$2.$3_universal-apple-darwin.zip"
#### ditto -ck --sequesterRsrc --keepParent "${LC_BRAND_NAME}_$1.$2.$3_universal-apple-darwin" "${ZIP_BRAND_NAME}_$1.$2.$3_universal-apple-darwin.zip"
##### We've decided not to create branded symbol table file; it is identical to standard one
#### ditto -ck --sequesterRsrc --keepParent "${LC_BRAND_NAME}_$1.$2.$3_macOSX_SymbolTables" "${LC_BRAND_NAME}_$1.$2.$3_macOSX_SymbolTables.zip"
#### ditto -ck --sequesterRsrc --keepParent "${LC_BRAND_NAME}_$1.$2.$3_macOSX_SymbolTables" "${ZIP_BRAND_NAME}_$1.$2.$3_macOSX_SymbolTables.zip"

# Force Finder to recognize changed icons by deleting the uncompressed products and expanding the zip file
sudo rm -dfR "${LC_BRAND_NAME}_$1.$2.$3_macOSX_universal"
open "${LC_BRAND_NAME}_$1.$2.$3_macOSX_universal.zip"
open "${ZIP_BRAND_NAME}_$1.$2.$3_macOSX_universal.zip"

popd
exit 0

0 comments on commit 7a9aa01

Please sign in to comment.