-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
98 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 not shown.
0
Package/postflight.txt → Installer/scripts/postflight
100644 → 100755
File renamed without changes.
0
Package/preflight.txt → Installer/scripts/preflight
100644 → 100755
File renamed without changes.
Binary file not shown.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.