diff --git a/ClickToFlash.xcodeproj/project.pbxproj b/ClickToFlash.xcodeproj/project.pbxproj
index 1dd00f9a..640ba6c7 100755
--- a/ClickToFlash.xcodeproj/project.pbxproj
+++ b/ClickToFlash.xcodeproj/project.pbxproj
@@ -492,7 +492,7 @@
GCC_TREAT_WARNINGS_AS_ERRORS = YES;
GCC_WARN_ABOUT_MISSING_PROTOTYPES = YES;
GCC_WARN_SIGN_COMPARE = YES;
- PRODUCT_VERSION = 1.5b5;
+ PRODUCT_VERSION = 1.5fc2;
WARNING_CFLAGS = "-Wall";
};
name = Debug;
@@ -505,7 +505,7 @@
GCC_TREAT_WARNINGS_AS_ERRORS = YES;
GCC_WARN_ABOUT_MISSING_PROTOTYPES = YES;
GCC_WARN_SIGN_COMPARE = YES;
- PRODUCT_VERSION = 1.5b5;
+ PRODUCT_VERSION = 1.5fc2;
WARNING_CFLAGS = "-Wall";
};
name = Release;
diff --git a/Installer/Distribution Template.pmdoc/01clicktoflash-contents.xml b/Installer/Distribution Template.pmdoc/01clicktoflash-contents.xml
deleted file mode 100644
index 7e235ae5..00000000
--- a/Installer/Distribution Template.pmdoc/01clicktoflash-contents.xml
+++ /dev/null
@@ -1 +0,0 @@
-modemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemode
\ No newline at end of file
diff --git a/Installer/Distribution Template.pmdoc/01clicktoflash.xml b/Installer/Distribution Template.pmdoc/01clicktoflash.xml
deleted file mode 100644
index c00b3ff2..00000000
--- a/Installer/Distribution Template.pmdoc/01clicktoflash.xml
+++ /dev/null
@@ -1 +0,0 @@
-com.github.rentzsch.clicktoflash.admin.pkg1../build/Release/ClickToFlash.webplugin/tmpoverwriteDirectoryPermissionsallowRevertinstallToscripts.scriptsDirectoryPath.isRelativeTypeinstallTo.isAbsoluteTypeinstallTo.isRelativeTypeinstallFrom.isAbsoluteTypeextraFilesversionincludeRootidentifierparentscripts.postinstall.pathrequireAuthorizationpostInstallscripts.preflight.pathscripts.preinstall.pathscripts.postflight.pathrelocatableinstallFrom.isRelativeTypescripts.scriptsDirectoryPath.pathinstallTo.pathscripts.preinstall.isRelativeTypeinstallFrom.path../Installer/scripts/preflight../Installer/scripts/postflight01clicktoflash-contents.xml/CVS$/\.svn$/\.cvsignore$/\.cvspass$/\.DS_Store$
\ No newline at end of file
diff --git a/Installer/Distribution Template.pmdoc/02clicktoflash-contents.xml b/Installer/Distribution Template.pmdoc/02clicktoflash-contents.xml
deleted file mode 100644
index 7e235ae5..00000000
--- a/Installer/Distribution Template.pmdoc/02clicktoflash-contents.xml
+++ /dev/null
@@ -1 +0,0 @@
-modemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemodemode
\ No newline at end of file
diff --git a/Installer/Distribution Template.pmdoc/02clicktoflash.xml b/Installer/Distribution Template.pmdoc/02clicktoflash.xml
deleted file mode 100644
index f87d7014..00000000
--- a/Installer/Distribution Template.pmdoc/02clicktoflash.xml
+++ /dev/null
@@ -1 +0,0 @@
-com.github.rentzsch.clicktoflash.nonadmin.pkg1../build/Release/ClickToFlash.webplugin/tmpparentscripts.postinstall.pathrequireAuthorizationinstallToscripts.preflight.pathscripts.postflight.pathscripts.preinstall.pathincludeRootinstallTo.pathidentifierinstallFrom.path../Installer/scripts/preflight../Installer/scripts/postflight02clicktoflash-contents.xml/CVS$/\.svn$/\.cvsignore$/\.cvspass$/\.DS_Store$
\ No newline at end of file
diff --git a/Installer/Distribution Template.pmdoc/index.xml b/Installer/Distribution Template.pmdoc/index.xml
deleted file mode 100644
index 0410cf70..00000000
--- a/Installer/Distribution Template.pmdoc/index.xml
+++ /dev/null
@@ -1,5 +0,0 @@
-ClickToFlash/Users/simmy/clicktoflash+simX/Package/Package Template.mpkgcom.github.rentzsch.clicktoflash.pkgClickToFlash PackageMaker template.
-
-Make sure that you have the latest version of XCode when making changes as PackageMaker is generally a bit buggy. Use at least version 3.0.3.
-
-This package is currently configured to always install in $HOME. I didn't find a good way to let the user choose a system wide installation yet as we would always have to require admin rights.admin_privs_needed.commandno_admin_privs_needed.command../Installer/resources/en.lproj/Background.tiff../Installer/resources/en.lproj/ReadMe.rtfClickToFlash requires MacOS X 10.5 LeopardClickToFlash cannot be used with the version of Mac OS X installed on your computer.This software can only be installed on the root volume.- 01clicktoflash.xml
- 02clicktoflash.xml
properties.userDomainproperties.anywhereDomainproperties.systemDomainproperties.customizeOptionpreinstallActions.actionsextraFilesproperties.titledescriptionpostinstallActions.actions
\ No newline at end of file
diff --git a/Installer/Info-admin.plist b/Installer/Info-admin.plist
deleted file mode 100644
index 8b34a21b..00000000
--- a/Installer/Info-admin.plist
+++ /dev/null
@@ -1,40 +0,0 @@
-
-
-
-
- CFBundleIdentifier
- com.github.rentzsch.clicktoflash.admin.pkg
- CFBundleShortVersionString
- 1
- IFMajorVersion
- 1
- IFMinorVersion
- 0
- IFPkgFlagAllowBackRev
-
- IFPkgFlagAuthorizationAction
- RootAuthorization
- IFPkgFlagDefaultLocation
- /tmp
- IFPkgFlagFollowLinks
-
- IFPkgFlagInstallFat
-
- IFPkgFlagInstalledSize
- 1736
- IFPkgFlagIsRequired
-
- IFPkgFlagOverwritePermissions
-
- IFPkgFlagRelocatable
-
- IFPkgFlagRestartAction
- None
- IFPkgFlagRootVolumeOnly
-
- IFPkgFlagUpdateInstalledLanguages
-
- IFPkgFormatVersion
- 0.1000000014901161
-
-
diff --git a/Installer/Info-nonadmin.plist b/Installer/Info.plist
similarity index 86%
rename from Installer/Info-nonadmin.plist
rename to Installer/Info.plist
index 4c537db6..a51457f1 100644
--- a/Installer/Info-nonadmin.plist
+++ b/Installer/Info.plist
@@ -1,5 +1,5 @@
-
+
CFBundleIdentifier
@@ -33,6 +33,6 @@
IFPkgFlagUpdateInstalledLanguages
IFPkgFormatVersion
- 0.1000000014901161
+ 0.10000000149011612
diff --git a/Installer/build_installer_pkg.command b/Installer/build_installer_pkg.command
index 92a025ee..18eb160c 100755
--- a/Installer/build_installer_pkg.command
+++ b/Installer/build_installer_pkg.command
@@ -20,7 +20,7 @@ fi
MY_INSTALLER_ROOT="$BUILT_PRODUCTS_DIR/ClickToFlash.dst"
BUILT_PLUGIN="$BUILT_PRODUCTS_DIR/ClickToFlash.webplugin"
-BUILT_PKG="$BUILT_PRODUCTS_DIR/ClickToFlash.mpkg"
+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"
@@ -41,59 +41,17 @@ cp -R "$BUILT_PLUGIN" "$MY_INSTALLER_ROOT"
"$SYSTEM_DEVELOPER_UTILITIES_DIR/PackageMaker.app/Contents/MacOS/PackageMaker" \
--root "$BUILT_PRODUCTS_DIR/ClickToFlash.dst" \
- --info Info-nonadmin.plist \
+ --info Info.plist \
+ --resources resources \
--scripts scripts \
--target 10.4 \
--version "$PRODUCT_VERSION" \
--verbose \
- --out "$BUILT_PRODUCTS_DIR/ClickToFlash-nonadmin.pkg"
-
-"$SYSTEM_DEVELOPER_UTILITIES_DIR/PackageMaker.app/Contents/MacOS/PackageMaker" \
- --root "$BUILT_PRODUCTS_DIR/ClickToFlash.dst" \
- --info Info-admin.plist \
- --scripts scripts \
- --target 10.4 \
- --version "$PRODUCT_VERSION" \
- --verbose \
- --out "$BUILT_PRODUCTS_DIR/ClickToFlash-admin.pkg"
-
-
-
-# go into one of the packages and strip out the contents and symbolic link them to the other
-# package so that we keep the file size down, since the only difference is requiring admin auth
-
-cd "$BUILT_PRODUCTS_DIR/ClickToFlash-admin.pkg/Contents"
-rm Archive.bom
-rm Archive.pax.gz
-ln -s ../../ClickToFlash-nonadmin.pkg/Contents/Archive.bom ./
-ln -s ../../ClickToFlash-nonadmin.pkg/Contents/Archive.pax.gz ./
-cd $SCRIPT_WD
-
-
-
-# make the friggin' distribution ourselves since friggin' PackageMaker friggin' doesn't friggin' support this
-mkdir "$BUILT_PRODUCTS_DIR/ClickToFlash.mpkg"
-mkdir "$BUILT_PRODUCTS_DIR/ClickToFlash.mpkg/Contents"
-mkdir "$BUILT_PRODUCTS_DIR/ClickToFlash.mpkg/Contents/Packages/"
-mkdir "$BUILT_PRODUCTS_DIR/ClickToFlash.mpkg/Contents/Resources/"
-cp -R distribution-mpkg/resources/en.lproj "$BUILT_PRODUCTS_DIR/ClickToFlash.mpkg/Contents/Resources/en.lproj"
-cp distribution-mpkg/resources/admin_privs_needed.command "$BUILT_PRODUCTS_DIR/ClickToFlash.mpkg/Contents/Resources/admin_privs_needed.command"
-cp distribution-mpkg/resources/no_admin_privs_needed.command "$BUILT_PRODUCTS_DIR/ClickToFlash.mpkg/Contents/Resources/no_admin_privs_needed.command"
-cp distribution-mpkg/distribution.dist "$BUILT_PRODUCTS_DIR/ClickToFlash.mpkg/Contents/distribution.dist"
-
-cp -R "$BUILT_PRODUCTS_DIR/ClickToFlash-nonadmin.pkg" "$BUILT_PRODUCTS_DIR/ClickToFlash.mpkg/Contents/Packages/ClickToFlash-nonadmin.pkg"
-cp -R "$BUILT_PRODUCTS_DIR/ClickToFlash-admin.pkg" "$BUILT_PRODUCTS_DIR/ClickToFlash.mpkg/Contents/Packages/ClickToFlash-admin.pkg"
-
-
-# clean up the non-mpkg pkgs
-
-rm -rf "$BUILT_PRODUCTS_DIR/ClickToFlash-admin.pkg"
-rm -rf "$BUILT_PRODUCTS_DIR/ClickToFlash-nonadmin.pkg"
-
+ --out "$BUILT_PKG"
# Stuff it into a .zip.
cd "$BUILT_PRODUCTS_DIR"
-zip -r -y "$VERSIONED_NAME.zip" "ClickToFlash.mpkg"
+zip -r "$VERSIONED_NAME.zip" "ClickToFlash.pkg"
cd $SCRIPT_WD
rm -rf "$MY_INSTALLER_ROOT"
diff --git a/Installer/distribution-mpkg/distribution.dist b/Installer/distribution-mpkg/distribution.dist
deleted file mode 100644
index edf19b01..00000000
--- a/Installer/distribution-mpkg/distribution.dist
+++ /dev/null
@@ -1,84 +0,0 @@
-
-
- ClickToFlash
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- file:./Contents/Packages/clicktoflash-admin.pkg
- file:./Contents/Packages/clicktoflash-nonadmin.pkg
-
\ No newline at end of file
diff --git a/Installer/distribution-mpkg/resources/admin_privs_needed.command b/Installer/distribution-mpkg/resources/admin_privs_needed.command
deleted file mode 100755
index 33c8d691..00000000
--- a/Installer/distribution-mpkg/resources/admin_privs_needed.command
+++ /dev/null
@@ -1,37 +0,0 @@
-#!/bin/bash
-cd "`dirname \"$0\"`"
-SCRIPT_WD=`pwd`
-DIR=/Library/Receipts/clicktoflash-nonadmin.pkg/
-SOME_GROUPS=`id -G $USER`
-
-
-# 1 is a successful result, and requires installation with an admin password; if the result is 0, this package is unavailable
-
-rm -rf /tmp/ClickToFlash.webplugin
-
-if [ -d /tmp/ClickToFlash.webplugin ]; then
- echo "we don't have privs to delete the existing temporary file, so we need admin privs to do so."
- exit 1
-fi
-
-case `uname -r` in
- [89].*)
- true
- ;;
- *)
- echo "Running on Snow Leopard or newer, no need to care."
- exit 0
-esac
-
-if [ -d $DIR ]; then
- echo "There is a receipt, no admin privs required for installer pkg."
- exit 0
-fi
-
-if echo "$SOME_GROUPS" | egrep "^80$|^80 | 80$| 80 " > /dev/null; then
- echo "User has admin privs, no admin privs required for installer pkg."
- exit 0
-fi
-
-echo "No receipt, no admin privs, installer must ask for admin password."
-exit 1
\ No newline at end of file
diff --git a/Installer/distribution-mpkg/resources/no_admin_privs_needed.command b/Installer/distribution-mpkg/resources/no_admin_privs_needed.command
deleted file mode 100755
index b2129223..00000000
--- a/Installer/distribution-mpkg/resources/no_admin_privs_needed.command
+++ /dev/null
@@ -1,37 +0,0 @@
-#!/bin/bash
-cd "`dirname \"$0\"`"
-SCRIPT_WD=`pwd`
-DIR=/Library/Receipts/clicktoflash-nonadmin.pkg/
-SOME_GROUPS=`id -G $USER`
-
-
-# 1 is a successful result, and allows installation without an admin password; if the result is 0, this package is unavailable
-
-rm -rf /tmp/ClickToFlash.webplugin
-
-if [ -d /tmp/ClickToFlash.webplugin ]; then
- echo "we don't have privs to delete the existing temporary file, so we will need admin privs to do so."
- exit 0
-fi
-
-case `uname -r` in
- [89].*)
- true
- ;;
- *)
- echo "Running on Snow Leopard or newer, no need to care."
- exit 1
-esac
-
-if [ -d $DIR ]; then
- echo "There is a receipt, no admin privs required for installer pkg."
- exit 1
-fi
-
-if echo "$SOME_GROUPS" | egrep "^80$|^80 | 80$| 80 " > /dev/null; then
- echo "User has admin privs, no admin privs required for installer pkg."
- exit 1
-fi
-
-echo "No receipt, no admin privs, installer must ask for admin password."
-exit 0
\ No newline at end of file
diff --git a/Installer/distribution-mpkg/resources/en.lproj/ReadMe.rtf b/Installer/resources/en.lproj/ReadMe.rtf
similarity index 100%
rename from Installer/distribution-mpkg/resources/en.lproj/ReadMe.rtf
rename to Installer/resources/en.lproj/ReadMe.rtf
diff --git a/Installer/distribution-mpkg/resources/en.lproj/background.tiff b/Installer/resources/en.lproj/background.tiff
similarity index 100%
rename from Installer/distribution-mpkg/resources/en.lproj/background.tiff
rename to Installer/resources/en.lproj/background.tiff
diff --git a/Installer/scripts/postflight b/Installer/scripts/postflight
index 78a29422..4c106538 100755
--- a/Installer/scripts/postflight
+++ b/Installer/scripts/postflight
@@ -3,13 +3,6 @@
rm -rf "$HOME/Library/Internet Plug-Ins/ClickToFlash.plugin"
rm -rf "$HOME/Library/Internet Plug-Ins/ClickToFlash.webplugin"
mv /tmp/ClickToFlash.webplugin "$HOME/Library/Internet Plug-Ins/"
-chown -R $USER "$HOME/Library/Internet Plug-Ins/ClickToFlash.webplugin"
-find "$HOME/Library/Internet Plug-Ins/ClickToFlash.webplugin" -type d -exec chmod 755 \{} \;
-find "$HOME/Library/Internet Plug-Ins/ClickToFlash.webplugin" -type f -exec chmod 644 \{} \;
-chmod 775 "$HOME/Library/Internet Plug-Ins/ClickToFlash.webplugin/Contents/MacOS/ClickToFlash"
-chmod 775 "$HOME/Library/Internet Plug-Ins/ClickToFlash.webplugin/Contents/Frameworks/Sparkle.framework/Versions/A/Sparkle"
-chmod 775 "$HOME/Library/Internet Plug-Ins/ClickToFlash.webplugin/Contents/Frameworks/Sparkle.framework/Versions/A/Resources/relaunch"
-chmod 775 "$HOME/Library/Internet Plug-Ins/ClickToFlash.webplugin"
pkgutil --forget com.github.rentzsch.clicktoflash.pkg
-exit 0
+exit 0
\ No newline at end of file
diff --git a/Plugin/CTFWhitelistWindowController.h b/Plugin/CTFWhitelistWindowController.h
index 4f5cdbe8..cc1c4cc7 100755
--- a/Plugin/CTFWhitelistWindowController.h
+++ b/Plugin/CTFWhitelistWindowController.h
@@ -12,6 +12,7 @@ extern NSString* kCTFCheckForUpdates;
}
- (IBAction)checkForUpdates:(id)sender;
+- (IBAction)automaticallyCheckForUpdatesDidChange:(id)sender;
- (IBAction)uninstallClickToFlash:(id)sender;
- (IBAction)cancelUninstall:(id)sender;
diff --git a/Plugin/CTFWhitelistWindowController.m b/Plugin/CTFWhitelistWindowController.m
index f56ff678..dc276465 100755
--- a/Plugin/CTFWhitelistWindowController.m
+++ b/Plugin/CTFWhitelistWindowController.m
@@ -29,6 +29,11 @@ - (IBAction)checkForUpdates:(id)sender;
[[SparkleManager sharedManager] checkForUpdates];
}
+- (IBAction)automaticallyCheckForUpdatesDidChange:(id)sender;
+{
+ [[SparkleManager sharedManager] setAutomaticallyChecksForUpdates:[sender state]];
+}
+
- (NSString *)versionString
{
NSBundle *CTFBundle = [NSBundle bundleWithIdentifier:@"com.github.rentzsch.clicktoflash"];
diff --git a/Plugin/English.lproj/WhitelistPanel.xib b/Plugin/English.lproj/WhitelistPanel.xib
index c06e4289..7fd83732 100755
--- a/Plugin/English.lproj/WhitelistPanel.xib
+++ b/Plugin/English.lproj/WhitelistPanel.xib
@@ -1,19 +1,14 @@
-
+
1040
- 10A394
- 732
- 1027.1
- 430.00
-
+ 9L30
+ 677
+ 949.54
+ 353.00
diff --git a/Plugin/SparkleManager.h b/Plugin/SparkleManager.h
index 4820f22a..91893259 100644
--- a/Plugin/SparkleManager.h
+++ b/Plugin/SparkleManager.h
@@ -39,6 +39,7 @@
- (void)startAutomaticallyCheckingForUpdates;
- (void)checkForUpdates;
+- (void)setAutomaticallyChecksForUpdates:(BOOL)checksForUpdates;
- (NSString *)pathToRelaunch;
- (void)setPathToRelaunch:(NSString *)newValue;
diff --git a/Plugin/SparkleManager.m b/Plugin/SparkleManager.m
index 85d2e4ae..09289646 100644
--- a/Plugin/SparkleManager.m
+++ b/Plugin/SparkleManager.m
@@ -110,10 +110,12 @@ - (void)startAutomaticallyCheckingForUpdates {
}
SUUpdater *updater = [self _updater];
- if ([[CTFUserDefaultsController standardUserDefaults] boolForKey:sAutomaticallyCheckForUpdates]) {
- if (_canUpdate) {
+ if (_canUpdate) {
+ if ([[CTFUserDefaultsController standardUserDefaults] boolForKey:sAutomaticallyCheckForUpdates]) {
[updater checkForUpdatesInBackground];
[updater setAutomaticallyChecksForUpdates:YES];
+ } else {
+ [updater setAutomaticallyChecksForUpdates:NO];
}
}
}
@@ -122,6 +124,11 @@ - (void)checkForUpdates {
[[self _updater] checkForUpdates:nil];
}
+- (void)setAutomaticallyChecksForUpdates:(BOOL)checksForUpdates
+{
+ [[self _updater] setAutomaticallyChecksForUpdates:checksForUpdates];
+}
+
- (NSString*)pathToRelaunchForUpdater:(SUUpdater*)updater {
return _pathToRelaunch;
}
diff --git a/README.markdown b/README.markdown
index 2effa2b6..7f5304c9 100644
--- a/README.markdown
+++ b/README.markdown
@@ -2,6 +2,26 @@ This page only hosts the source code for ClickToFlash. To download ClickToFlash
##Version History
+* **1.5fc2** [download](http://s3.amazonaws.com/clicktoflash/ClickToFlash-1.5fc2.zip)
+
+ * [FIX] Abandon 1.5fc1's Yet Another Installer Rework -- it causes Installer deadlocks that we can't figure out. [bug 214](http://rentzsch.lighthouseapp.com/projects/24342/tickets/214) (rentzsch)
+
+* **1.5fc1** [download](http://s3.amazonaws.com/clicktoflash/ClickToFlash-1.5fc1.zip)
+
+ * [NEW] Use HTML5 `