Skip to content

Commit

Permalink
Merge branch 'rentzsch'
Browse files Browse the repository at this point in the history
  • Loading branch information
mbaltaks committed May 27, 2009
2 parents ebf042f + 2d1eb0c commit f329529
Show file tree
Hide file tree
Showing 13 changed files with 98 additions and 33 deletions.
6 changes: 3 additions & 3 deletions ClickToFlash.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "if [ $BUILD_STYLE != \"Release\" ]; then\n echo \"Could not generate package.\"\n\techo \"Active Configuration needs to be set to 'Release'.\"\n\texit 1\nfi\n\n# Sparkle currently can't handle -$VERSION in .pkg names.\nBUILT_PKG=\"$BUILT_PRODUCTS_DIR/ClickToFlash.pkg\"\nVERSIONED_NAME=\"ClickToFlash-$PRODUCT_VERSION\"\nBUILT_ZIP=\"$BUILT_PRODUCTS_DIR/$VERSIONED_NAME.zip\"\n\n# Delete old files if there are any around.\nif [ -f \"$BUILT_PKG\" ]; then\n\trm -rf \"$BUILT_PKG\"\nfi\nif [ -f \"$BUILT_ZIP\" ]; then\n\trm -rf \"$BUILT_ZIP\"\nfi\n\n# Create the .pkg.\ncd \"$PROJECT_DIR/Package\"\n\"$SYSTEM_DEVELOPER_UTILITIES_DIR/PackageMaker.app/Contents/MacOS/PackageMaker\" --doc \"Package Template.pmdoc\" -i com.github.rentzsch.clicktoflash.pkg -n \"$PRODUCT_VERSION\" -o \"$BUILT_PKG\"\n\n# Stuff it into a .zip.\ncd \"$BUILT_PRODUCTS_DIR\"\nzip -r \"$VERSIONED_NAME.zip\" \"ClickToFlash.pkg\"\n\n# Delete the intermediate .pkg.\nrm -rf \"$BUILT_PKG\"";
shellScript = "bash $PROJECT_DIR/Installer/build_installer_pkg.command\n";
};
/* End PBXShellScriptBuildPhase section */

Expand Down Expand Up @@ -539,7 +539,7 @@
GCC_WARN_ABOUT_MISSING_PROTOTYPES = YES;
GCC_WARN_SIGN_COMPARE = YES;
MACOSX_DEPLOYMENT_TARGET = 10.4;
PRODUCT_VERSION = 1.4.2;
PRODUCT_VERSION = 1.5b1;
WARNING_CFLAGS = "-Wall";
};
name = Debug;
Expand All @@ -554,7 +554,7 @@
GCC_WARN_ABOUT_MISSING_PROTOTYPES = YES;
GCC_WARN_SIGN_COMPARE = YES;
MACOSX_DEPLOYMENT_TARGET = 10.4;
PRODUCT_VERSION = 1.4.2;
PRODUCT_VERSION = 1.5b1;
WARNING_CFLAGS = "-Wall";
};
name = Release;
Expand Down
38 changes: 38 additions & 0 deletions Installer/Info.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleIdentifier</key>
<string>com.github.rentzsch.clicktoflash</string>
<key>IFPkgFlagAllowBackRev</key>
<true/>
<key>IFPkgFlagAuthorizationAction</key>
<string>NoAuthorization</string>
<key>IFPkgFlagBackgroundAlignment</key>
<string>bottomright</string>
<key>IFPkgFlagBackgroundScaling</key>
<string>none</string>
<key>IFPkgFlagDefaultLocation</key>
<string>/tmp</string>
<key>IFPkgFlagFollowLinks</key>
<true/>
<key>IFPkgFlagInstallFat</key>
<false/>
<key>IFPkgFlagInstalledSize</key>
<integer>1440</integer>
<key>IFPkgFlagIsRequired</key>
<false/>
<key>IFPkgFlagOverwritePermissions</key>
<false/>
<key>IFPkgFlagRelocatable</key>
<false/>
<key>IFPkgFlagRestartAction</key>
<string>NoRestart</string>
<key>IFPkgFlagRootVolumeOnly</key>
<true/>
<key>IFPkgFlagUpdateInstalledLanguages</key>
<false/>
<key>IFPkgFormatVersion</key>
<real>0.10000000149011612</real>
</dict>
</plist>
57 changes: 57 additions & 0 deletions Installer/build_installer_pkg.command
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
#!/bin/bash
cd "`dirname \"$0\"`"
SCRIPT_WD=`pwd`

if [ -z "$PROJECT_DIR" ]; then
# Script invoked outside of Xcode, figure out environmental vars for ourself.
PROJECT_DIR='..'
BUILT_PRODUCTS_DIR="$PROJECT_DIR/build/Release"
BUILD_STYLE='Release'
BUILT_PLUGIN="$BUILT_PRODUCTS_DIR/ClickToFlash.webplugin"
PRODUCT_VERSION=`/usr/libexec/PlistBuddy -c "Print :CFBundleVersion" "$BUILT_PLUGIN/Contents/Info.plist"`
SYSTEM_DEVELOPER_UTILITIES_DIR='/Developer/Applications/Utilities'
fi

if [ $BUILD_STYLE != "Release" ]; then
echo "Could not generate package."
echo "Active Configuration needs to be set to 'Release'."
exit 1
fi

MY_INSTALLER_ROOT="$BUILT_PRODUCTS_DIR/ClickToFlash.dst"
BUILT_PLUGIN="$BUILT_PRODUCTS_DIR/ClickToFlash.webplugin"
BUILT_PKG="$BUILT_PRODUCTS_DIR/ClickToFlash.pkg" # Sparkle currently can't handle -$VERSION in .pkg names.
VERSIONED_NAME="ClickToFlash-$PRODUCT_VERSION"
BUILT_ZIP="$BUILT_PRODUCTS_DIR/$VERSIONED_NAME.zip"

# Delete old files if they're around.
if [ -d "$MY_INSTALLER_ROOT" ]; then
rm -rf "$MY_INSTALLER_ROOT"
fi
if [ -d "$BUILT_PKG" ]; then
rm -rf "$BUILT_PKG"
fi
if [ -f "$BUILT_ZIP" ]; then
rm -rf "$BUILT_ZIP"
fi

# Create the .pkg.
mkdir "$MY_INSTALLER_ROOT"
cp -R "$BUILT_PLUGIN" "$MY_INSTALLER_ROOT"

"$SYSTEM_DEVELOPER_UTILITIES_DIR/PackageMaker.app/Contents/MacOS/PackageMaker" \
--root "$BUILT_PRODUCTS_DIR/ClickToFlash.dst" \
--info Info.plist \
--resources resources \
--scripts scripts \
--target 10.4 \
--version "$PRODUCT_VERSION" \
--verbose \
--out "$BUILT_PKG"

# Stuff it into a .zip.
cd "$BUILT_PRODUCTS_DIR"
zip -r "$VERSIONED_NAME.zip" "ClickToFlash.pkg"
cd $SCRIPT_WD

rm -rf "$MY_INSTALLER_ROOT"
File renamed without changes.
Binary file added Installer/resources/en.lproj/background.tiff
Binary file not shown.
File renamed without changes.
File renamed without changes.
Binary file removed Package/Background.png
Binary file not shown.
Binary file removed Package/Conclusion Panel.rtfd/Success.png
Binary file not shown.
23 changes: 0 additions & 23 deletions Package/Conclusion Panel.rtfd/TXT.rtf

This file was deleted.

1 change: 0 additions & 1 deletion Package/Package Template.pmdoc/01clicktoflash-contents.xml

This file was deleted.

1 change: 0 additions & 1 deletion Package/Package Template.pmdoc/01clicktoflash.xml

This file was deleted.

5 changes: 0 additions & 5 deletions Package/Package Template.pmdoc/index.xml

This file was deleted.

0 comments on commit f329529

Please sign in to comment.