Sections
Timeline
Sub-Sections
Last Change
Annotate
Revision Log
Download
Plain Text
Original Format
Metanav
Preferences
About Trac
Links
Slowchop Studios
Gerald Kaszuba
Advertisement

root/python-osx-dist/python-osx-dist.sh

Revision 57, 425 bytes (checked in by gak, 4 months ago)
  • added python-osx-dist script
  • Property svn:executable set to *
Line 
1#!/usr/bin/env bash
2
3APP_NAME=$1
4VERSION=$2
5VOL_NAME="$APP_NAME $VERSION"
6DMG_TEMP="tmp.dmg"
7
8bdist_mpkg
9hdiutil create -size 32m -fs HFS+ -volname "$VOL_NAME" $DMG_TEMP
10hdiutil attach $DMG_TEMP
11
12DEVS=$(hdiutil attach $DMG_TEMP | cut -f 1)
13DEV=$(echo $DEVS | cut -f 1 -d ' ')
14
15mv dist/*mpkg "/Volumes/$VOL_NAME"
16
17hdiutil detach $DEV
18hdiutil convert $DMG_TEMP -format UDZO -o dist/$APP_NAME-$VERSION-macosx.dmg
19
20rm $DMG_TEMP
Note: See TracBrowser for help on using the browser.