source: branches/new_jglobus_mac/makeMacDist.sh @ 302

Revision 302, 2.1 KB checked in by bartek, 10 years ago (diff)

possible???? fix

  • Property svn:executable set to *
Line 
1#!/bin/sh -x
2
3function makeDMG() {
4        export backgroundPictureName=background.png
5        export applicationName=QCG-Icon
6        export title=QCG-Icon
7
8        echo '
9                tell application "Finder"
10                    tell disk "'${title}'"
11                        open
12                        do shell script "/Developer/Tools/SetFile -a v " & "'/Volumes/'" & "'${title}'" & "'/${backgroundPictureName}'"
13                        set current view of container window to icon view
14                        set toolbar visible of container window to false
15                        set statusbar visible of container window to false
16                        set the bounds of container window to {400, 100, 1100, 500}
17                        set theViewOptions to the icon view options of container window
18                        set arrangement of theViewOptions to not arranged
19                        set icon size of theViewOptions to 96
20--                      set background picture of theViewOptions to POSIX file ("'/Volumes/'" & "'${title}'" & "'/${backgroundPictureName}'") as alias
21                        set background picture of theViewOptions to file "'${backgroundPictureName}'"
22                        set position of item "'${applicationName}'" of container window to {180, 190}
23                        set position of item "Applications" of container window to {525, 190}
24                        close
25                        open
26                        update without registering applications
27                        delay 5
28                        do shell script "/Developer/Tools/SetFile -a V " & "'/Volumes/'" & "'${title}'" & "'/${backgroundPictureName}'"
29                        eject
30                    end tell
31                end tell
32        ' | osascript
33
34#make new alias file at container window to POSIX file "/Applications" with properties {name:"Applications"}
35}
36
37
38if [ -d /Volumes/QCG-Icon/ ]
39then
40  echo "/Volumes/QCG-Icon/ exists"
41  exit 4
42fi
43
44if ! diff -x .svn  -r libs dist_macosx/QCG-Icon.app/Contents/Resources/Java/lib
45then
46  echo "libs inconsistency"
47  exit 4
48fi
49
50svn up
51ant jar
52cp dist/QCG-Icon.jar dist_macosx/QCG-Icon.app/Contents/Resources/Java/QCG-Icon.jar
53cp -v *.properties dist_macosx/QCG-Icon.app/Contents/Resources/Java/
54
55open dist_macosx/dmg/QCG-Icon.dmg
56sleep 10
57rm -rf /Volumes/QCG-Icon/QCG-Icon.app
58ls -la /Volumes/QCG-Icon/
59cp -rf dist_macosx/QCG-Icon.app /Volumes/QCG-Icon/
60find  /Volumes/QCG-Icon/ -name .svn -exec rm -rf {} \;
61makeDMG
62umount /Volumes/QCG-Icon
63open /Applications/Utilities/Disk\ Utility.app
Note: See TracBrowser for help on using the repository browser.