Subversion Repositories TruePreview

Compare Revisions

Ignore whitespace Rev 6 → Rev 7

/trunk/Installer/preflight.sh New file
0,0 → 1,39
#!/bin/sh
 
# Copyright (c) 2009, Jim Riggs, Christian Serving, L.L.C.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# * Redistributions in binary form must reproduce the above
# copyright notice, this list of conditions and the following
# disclaimer in the documentation and/or other materials provided
# with the distribution.
# * Neither the name of Christian Serving, L.L.C. nor the names of
# its contributors may be used to endorse or promote products
# derived from this software without specific prior written
# permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
# HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
##
# preflight.sh
# Copyright (c) 2009 Jim Riggs, Christian Serving, L.L.C. All rights reserved.
#
# @(#) $Id: postflight.sh 6 2009-06-27 08:17:43Z jhriggs $
##
 
ln -s "$HOME" "/private/tmp/CurrentUser"
/trunk/Installer/Installer.packproj
184,51 → 184,17
</dict>
<dict>
<key>Children</key>
<array>
<dict>
<key>Children</key>
<array>
<dict>
<key>Children</key>
<array/>
<key>GID</key>
<integer>80</integer>
<key>Path</key>
<string>../build/Release/TruePreview.mailbundle</string>
<key>Path Type</key>
<integer>2</integer>
<key>Privileges</key>
<integer>511</integer>
<key>Type</key>
<integer>3</integer>
<key>UID</key>
<integer>0</integer>
</dict>
</array>
<key>GID</key>
<integer>80</integer>
<key>Path</key>
<string>Bundles</string>
<key>Path Type</key>
<integer>1</integer>
<key>Privileges</key>
<integer>509</integer>
<key>Type</key>
<integer>2</integer>
<key>UID</key>
<integer>0</integer>
</dict>
</array>
<array/>
<key>GID</key>
<integer>80</integer>
<key>Path</key>
<string>Mail</string>
<string>PreferencePanes</string>
<key>Path Type</key>
<integer>1</integer>
<key>Privileges</key>
<integer>509</integer>
<key>Type</key>
<integer>2</integer>
<integer>1</integer>
<key>UID</key>
<integer>0</integer>
</dict>
238,7 → 204,7
<key>GID</key>
<integer>80</integer>
<key>Path</key>
<string>PreferencePanes</string>
<string>Preferences</string>
<key>Path Type</key>
<integer>1</integer>
<key>Privileges</key>
254,7 → 220,7
<key>GID</key>
<integer>80</integer>
<key>Path</key>
<string>Preferences</string>
<string>Printers</string>
<key>Path Type</key>
<integer>1</integer>
<key>Privileges</key>
270,7 → 236,7
<key>GID</key>
<integer>80</integer>
<key>Path</key>
<string>Printers</string>
<string>QuickTime</string>
<key>Path Type</key>
<integer>1</integer>
<key>Privileges</key>
286,7 → 252,7
<key>GID</key>
<integer>80</integer>
<key>Path</key>
<string>QuickTime</string>
<string>Scripts</string>
<key>Path Type</key>
<integer>1</integer>
<key>Privileges</key>
296,19 → 262,121
<key>UID</key>
<integer>0</integer>
</dict>
</array>
<key>GID</key>
<integer>80</integer>
<key>Path</key>
<string>Library</string>
<key>Path Type</key>
<integer>1</integer>
<key>Privileges</key>
<integer>1021</integer>
<key>Type</key>
<integer>1</integer>
<key>UID</key>
<integer>0</integer>
</dict>
<dict>
<key>Children</key>
<array>
<dict>
<key>Children</key>
<array/>
<array>
<dict>
<key>Children</key>
<array>
<dict>
<key>Children</key>
<array>
<dict>
<key>Children</key>
<array>
<dict>
<key>Children</key>
<array>
<dict>
<key>Children</key>
<array/>
<key>GID</key>
<integer>80</integer>
<key>Path</key>
<string>../build/Release/TruePreview.mailbundle</string>
<key>Path Type</key>
<integer>2</integer>
<key>Privileges</key>
<integer>511</integer>
<key>Type</key>
<integer>3</integer>
<key>UID</key>
<integer>0</integer>
</dict>
</array>
<key>GID</key>
<integer>80</integer>
<key>Path</key>
<string>Bundles</string>
<key>Path Type</key>
<integer>1</integer>
<key>Privileges</key>
<integer>509</integer>
<key>Type</key>
<integer>2</integer>
<key>UID</key>
<integer>0</integer>
</dict>
</array>
<key>GID</key>
<integer>80</integer>
<key>Path</key>
<string>Mail</string>
<key>Path Type</key>
<integer>1</integer>
<key>Privileges</key>
<integer>509</integer>
<key>Type</key>
<integer>2</integer>
<key>UID</key>
<integer>0</integer>
</dict>
</array>
<key>GID</key>
<integer>80</integer>
<key>Path</key>
<string>Library</string>
<key>Path Type</key>
<integer>1</integer>
<key>Privileges</key>
<integer>509</integer>
<key>Type</key>
<integer>2</integer>
<key>UID</key>
<integer>0</integer>
</dict>
</array>
<key>GID</key>
<integer>80</integer>
<key>Path</key>
<string>CurrentUser</string>
<key>Path Type</key>
<integer>1</integer>
<key>Privileges</key>
<integer>509</integer>
<key>Type</key>
<integer>2</integer>
<key>UID</key>
<integer>0</integer>
</dict>
</array>
<key>GID</key>
<integer>80</integer>
<key>Path</key>
<string>Scripts</string>
<string>tmp</string>
<key>Path Type</key>
<integer>1</integer>
<key>Privileges</key>
<integer>509</integer>
<key>Type</key>
<integer>1</integer>
<integer>2</integer>
<key>UID</key>
<integer>0</integer>
</dict>
316,13 → 384,13
<key>GID</key>
<integer>80</integer>
<key>Path</key>
<string>Library</string>
<string>private</string>
<key>Path Type</key>
<integer>1</integer>
<key>Privileges</key>
<integer>1021</integer>
<integer>509</integer>
<key>Type</key>
<integer>1</integer>
<integer>2</integer>
<key>UID</key>
<integer>0</integer>
</dict>
391,7 → 459,7
<integer>0</integer>
</dict>
<key>IFPkgFlagDefaultLocation</key>
<string>/Library/Mail/Bundles</string>
<string>/private/tmp/CurrentUser/Library/Mail/Bundles</string>
<key>Imported Package</key>
<false/>
<key>Package Path</key>
482,9 → 550,11
<key>IFInstallationScriptsPreflight</key>
<dict>
<key>Path</key>
<string></string>
<string>preflight.sh</string>
<key>Path Type</key>
<integer>2</integer>
<key>Status</key>
<false/>
<true/>
</dict>
<key>IFInstallationScriptsPreinstall</key>
<dict>
540,9 → 610,9
<key>IFPkgFlagAllowBackRev</key>
<false/>
<key>IFPkgFlagAuthorizationAction</key>
<integer>1</integer>
<integer>0</integer>
<key>IFPkgFlagFollowLinks</key>
<false/>
<true/>
<key>IFPkgFlagIsRequired</key>
<false/>
<key>IFPkgFlagOverwritePermissions</key>
552,7 → 622,7
<key>IFPkgFlagRestartAction</key>
<integer>0</integer>
<key>IFPkgFlagRootVolumeOnly</key>
<false/>
<true/>
<key>IFPkgFlagUpdateInstalledLanguages</key>
<false/>
</dict>
/trunk/Installer/postflight.sh
38,3 → 38,5
 
defaults write com.apple.mail EnableBundles -bool YES
defaults write com.apple.mail BundleCompatibilityVersion -int 3
 
rm -f "/private/tmp/CurrentUser"