Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

internet-enable #21

Merged
merged 1 commit into from

3 participants

@kodabb

Internet-enable is that neat feature that allows to mount the dmg, copy the contents and trash the dmg right after downloading. Currently it works only on Safari.

create-dmg
@@ -96,6 +98,9 @@ while test "${1:0:1}" = "-"; do
--eula)
EULA_RSRC=$2
shift; shift;;
+ --no-internet-enable)
+ NOINERNET=1

typo NOINERNET -> NOINTERNET

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
create-dmg
@@ -206,5 +211,11 @@ if [ ! -z "${EULA_RSRC}" -a "${EULA_RSRC}" != "-null-" ]; then
"${AUX_PATH}/dmg-license.py" "${DMG_DIR}/${DMG_NAME}" "${EULA_RSRC}"
fi
+if [ ! -z "${NOINERNET}" -a "${NOINERNET}" == 1 ]; then

same typo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
@kodabb

Sorry for the typo, just pushed a fix.

@kodabb

ping on this pull request

@andreyvit andreyvit merged commit 1b924e5 into from
@andreyvit
Owner

Thanks for pinging; merged!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jul 13, 2013
  1. @kodabb
This page is out of date. Refresh to see the latest.
Showing with 11 additions and 0 deletions.
  1. +11 −0 create-dmg
View
11 create-dmg
@@ -40,6 +40,8 @@ function usage() {
echo " make a drop link to Applications, at location x,y"
echo " --eula eula_file"
echo " attach a license file to the dmg"
+ echo " --no-internet-enable"
+ echo " disable automatic mount&copy"
echo " --version show tool version number"
echo " -h, --help display this help"
exit 0
@@ -96,6 +98,9 @@ while test "${1:0:1}" = "-"; do
--eula)
EULA_RSRC=$2
shift; shift;;
+ --no-internet-enable)
+ NOINTERNET=1
+ shift;;
-*)
echo "Unknown option $1. Run with --help for help."
exit 1;;
@@ -206,5 +211,11 @@ if [ ! -z "${EULA_RSRC}" -a "${EULA_RSRC}" != "-null-" ]; then
"${AUX_PATH}/dmg-license.py" "${DMG_DIR}/${DMG_NAME}" "${EULA_RSRC}"
fi
+if [ ! -z "${NOINTERNET}" -a "${NOINTERNET}" == 1 ]; then
+ echo "not setting 'internet-enable' on the dmg"
+else
+ hdiutil internet-enable -yes "${DMG_DIR}/${DMG_NAME}"
+fi
+
echo "Disk image done"
exit 0
Something went wrong with that request. Please try again.