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
10 changed files
with
142 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -44,3 +44,5 @@ deps | |
ebin | ||
distdir | ||
package/osxbuild | ||
package/packages | ||
|
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
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
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,15 @@ | ||
rcouchx Preview | ||
|
||
In order to run the appliction please drag and drop the "rcouchx" icon | ||
into the "Applications" folder. You can start the rcouchx application | ||
from within the "/Applications" directory. | ||
|
||
Notes: | ||
|
||
1- Please do make sure you have erased the previous nstallation from | ||
"~/Library/Application Support/rcouchx" | ||
|
||
2- The application will not start if you attempt to run the server without | ||
copying to a writeable disk. The dmg file which contains "rcouchx.app" | ||
is a read-only format and the server needs to be deployed on a writable volume. | ||
3- rcouch console is available here: /Applications/rcouch.app/Resources/rcouch/bin/rcouch |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,51 @@ | ||
#! /bin/bash | ||
|
||
DMG_NAME=$1 | ||
SRC_FOLDER=$2 | ||
VOLUME_NAME=$3 | ||
BACKGROUND_FILE=$4 | ||
VOLUME_ICON_FILE=$5 | ||
DMG_TEMP_NAME="rw.${DMG_NAME}" | ||
echo DMG_TEMP_NAME = "${DMG_TEMP_NAME}" | ||
|
||
ACTUAL_SIZE=`du -sm "$SRC_FOLDER" | sed -e 's/ .*//g'` | ||
DISK_IMAGE_SIZE=$(expr $ACTUAL_SIZE + 20) | ||
hdiutil create -srcfolder "$SRC_FOLDER" -volname "${VOLUME_NAME}" -fs HFS+ -fsargs "-c c=64,a=16,e=16" -format UDRW -size ${DISK_IMAGE_SIZE}m "${DMG_TEMP_NAME}" | ||
|
||
# mount it | ||
echo "Mounting disk image..." | ||
MOUNT_DIR="/Volumes/${VOLUME_NAME}" | ||
echo "Mount directory: $MOUNT_DIR" | ||
echo hdiutil attach -readwrite -noverify -noautoopen "${DMG_TEMP_NAME}" | ||
DEV_NAME=$(hdiutil attach -readwrite -noverify -noautoopen "${DMG_TEMP_NAME}" | egrep '^/dev/' | sed 1q | awk '{print $1}') | ||
echo "Device name: $DEV_NAME" | ||
|
||
echo "Copying background file..." | ||
mkdir "$MOUNT_DIR/.background" | ||
cp "$BACKGROUND_FILE" "$MOUNT_DIR/.background/$BACKGROUND_FILE" | ||
|
||
echo "Copying README.txt" | ||
cp README.txt "$MOUNT_DIR/README.txt" | ||
|
||
echo "Running Applescript: /usr/bin/osascript setviewoptions.applescript \"${VOLUME_NAME}\"" | ||
"/usr/bin/osascript" setviewoptions.applescript "${VOLUME_NAME}" | ||
echo "Done running the applescript..." | ||
sleep 10 | ||
|
||
# make sure it's not world writeable | ||
echo "Fixing permissions..." | ||
chmod -Rf go-w "${MOUNT_DIR}" &> /dev/null || true | ||
echo "Done fixing permissions." | ||
|
||
echo tell the volume that it has a special file attribute | ||
|
||
SetFile -a C "$MOUNT_DIR" | ||
|
||
# unmount | ||
echo "Unmounting disk image..." | ||
hdiutil detach "${DEV_NAME}" | ||
|
||
# compress image | ||
echo "Compressing disk image..." | ||
hdiutil convert "${DMG_TEMP_NAME}" -format UDZO -imagekey zlib-level=9 -o "${DMG_NAME}" | ||
rm -f "${DMG_TEMP_NAME}" |
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,25 @@ | ||
on run (volumeName) | ||
tell application "Finder" | ||
tell disk (volumeName as string) | ||
open | ||
set current view of container window to icon view | ||
set toolbar visible of container window to false | ||
set statusbar visible of container window to false | ||
set the bounds of container window to {400, 100, 885, 430} | ||
set theViewOptions to the icon view options of container window | ||
set arrangement of theViewOptions to not arranged | ||
set background picture of theViewOptions to file ".background:dmg-background.png" | ||
set icon size of theViewOptions to 72 | ||
set dsStore to "\"" & "/Volumes/" & volumeName & "/" & ".DS_STORE\"" | ||
make new alias file at container window to POSIX file "/Applications" with properties {name:"Applications"} | ||
set position of item "rcouchx.app" of container window to {100, 200} | ||
set position of item "README.txt" of container window to {250, 200} | ||
set position of item "Applications" of container window to {375, 200} | ||
close | ||
open | ||
update without registering applications | ||
delay 10 | ||
end tell | ||
end tell | ||
end run | ||
|
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