[racket-dev] Racket DMG improvements
I've been told that some DMG installers of OSX add a symlink to /Applications so it's easy to drag the application in there. IIUC, these things should be added: * A symlink to "/Applications" so if I drag the above into it it will get copied into the system's application folder * Some OSX magic that makes sure that the Racket folder and the symlink are in known positions, and the window gets opened at a known size, * Some more magic places an image in the background, something that looks like: [] To install Racket drag [ ] [ Racket ] < the Racket folder into [ Apps] [] your Applications folder > [ symlink ] If there's anyone who can write the shell code that starts with a folder that has just the Racket directory, and gets to the above, I'll add it to the installer generation script. (I'm assuming that a script is needed, for resource forks or whatever? Please bear in mind that I don't use OSX, which is why I need a script rather than instruction on how to drag things and where to click...) -- ((lambda (x) (x x)) (lambda (x) (x x))) Eli Barzilay: http://barzilay.org/ Maze is Life! _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/dev
Re: [racket-dev] Racket DMG improvements
I believe that making dmg files is quite difficult without OS X. The way to go is (confirmed here: [1]) is to create a template with the background and icons in place and then replace the contents of the disk image without touching the saved metadata. Uncompressed HFS+ images may be mounted on Linux but I am not sure if there is a way to do it without being root. I believe there is a problem with compressing .dmg images without OS X. But these guys [2] seem to have some solution based on [3]. [1]: http://stackoverflow.com/questions/96882/how-do-i-create-a-nice-looking-dmg-for-mac-os-x-using-command-line-tools [2]: http://svn.dmdirc.com/trunk/installer/osx/makeInstallerOSX.sh [3]: https://github.com/planetbeing/libdmg-hfsplus -- regards, Jakub Piotr Cłapa _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/dev
Re: [racket-dev] Racket DMG improvements
On Sun, Jul 17, 2011 at 7:25 AM, Jakub Piotr Cłapa wrote: > [1]: > http://stackoverflow.com/questions/96882/how-do-i-create-a-nice-looking-dmg-for-mac-os-x-using-command-line-tools Mecki's answer here sounds just perfect for us, since we only really need one (or three, I suppose). Robby _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/dev
Re: [racket-dev] Racket DMG improvements
Jakub Piotr Cłapa wrote at 07/17/2011 08:25 AM: Uncompressed HFS+ images may be mounted on Linux but I am not sure if there is a way to do it without being root. If you want to access a filesystem image file *as a Linux filesystem*, I think you probably have to mount it with a "loop" device, which requires either root/sudo privs, or perhaps a fixed path that can be put into "/etc/fstab" with privs granted for normal users to mount it. (There is another option, using FUSE, but I think "loop" will be easier.) I would guess that any building of HFS+ images would be done on OS X, though. -- http://www.neilvandyke.org/ _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/dev
Re: [racket-dev] Racket DMG improvements
FWIW, I believe we build these things on a mac, so figuring out how to do that under linux is not necessary (for us). Robby On Sun, Jul 17, 2011 at 8:02 AM, Neil Van Dyke wrote: > Jakub Piotr Cłapa wrote at 07/17/2011 08:25 AM: >> >> Uncompressed HFS+ images may be mounted on Linux but I am not sure if >> there is a way to do it without being root. > > If you want to access a filesystem image file *as a Linux filesystem*, I > think you probably have to mount it with a "loop" device, which requires > either root/sudo privs, or perhaps a fixed path that can be put into > "/etc/fstab" with privs granted for normal users to mount it. (There is > another option, using FUSE, but I think "loop" will be easier.) > > I would guess that any building of HFS+ images would be done on OS X, > though. > > -- > http://www.neilvandyke.org/ > _ > For list-related administrative tasks: > http://lists.racket-lang.org/listinfo/dev _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/dev
Re: [racket-dev] Racket DMG improvements
Two days ago, Robby Findler wrote: > On Sun, Jul 17, 2011 at 7:25 AM, Jakub Piotr Cłapa wrote: > > [1]: > > http://stackoverflow.com/questions/96882/how-do-i-create-a-nice-looking-dmg-for-mac-os-x-using-command-line-tools > > Mecki's answer here sounds just perfect for us, since we only really > need one (or three, I suppose). IIUC, there are problems with the size -- IIUC, it won't grow which means that it'll be bigger than needed, which also means that we need a template DMG for each distribution kind which is 9 DMGs at the moment ({PPC,Intel,x86_64} and three for each -- textual, normal, full), and these DMGs need to live somewhere out of the repository. The AppleScript thing looks more robust, but I'm not sure if it can work when I'l not logged into the machine properly. It's sshing to the packaging machine, which means that I don't have the Finder thing running. Anyone knows if this is a problem? Two days ago, Robby Findler wrote: > FWIW, I believe we build these things on a mac, so figuring out how to > do that under linux is not necessary (for us). Yes. I wouldn't rely on some emulation driver with these things... -- ((lambda (x) (x x)) (lambda (x) (x x))) Eli Barzilay: http://barzilay.org/ Maze is Life! _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/dev
Re: [racket-dev] Racket DMG improvements
I think that the dmg's size is proportional to the amount of data in it not the size it claims to have as a disk so we can probably just use 3 (or even maybe one). Robby On Tuesday, July 19, 2011, Eli Barzilay wrote: > Two days ago, Robby Findler wrote: >> On Sun, Jul 17, 2011 at 7:25 AM, Jakub Piotr Cłapa >> wrote: >> > [1]: >> > http://stackoverflow.com/questions/96882/how-do-i-create-a-nice-looking-dmg-for-mac-os-x-using-command-line-tools >> >> Mecki's answer here sounds just perfect for us, since we only really >> need one (or three, I suppose). > > IIUC, there are problems with the size -- IIUC, it won't grow which > means that it'll be bigger than needed, which also means that we need > a template DMG for each distribution kind which is 9 DMGs at the > moment ({PPC,Intel,x86_64} and three for each -- textual, normal, > full), and these DMGs need to live somewhere out of the repository. > > The AppleScript thing looks more robust, but I'm not sure if it can > work when I'l not logged into the machine properly. It's sshing to > the packaging machine, which means that I don't have the Finder thing > running. Anyone knows if this is a problem? > > > Two days ago, Robby Findler wrote: >> FWIW, I believe we build these things on a mac, so figuring out how to >> do that under linux is not necessary (for us). > > Yes. I wouldn't rely on some emulation driver with these things... > > -- > ((lambda (x) (x x)) (lambda (x) (x x))) Eli Barzilay: > http://barzilay.org/ Maze is Life! > _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/dev
Re: [racket-dev] Racket DMG improvements
Sorry guys, I *will* test this(below) tonight. - It doesn't do the fancy background image (a hidden .folder with a .png), reposition and resize icons. - It will suffice to know if Finder responds to applescript 'tell application "Finder"' commands. [It does create a alias, which is mostly the same an a softlink.] If anyone has a nice background image, that will save me making one. (and a custom folder with the logo if you can do it?) #!/bin/sh # used example http://hayne.net/MacDev/Bash/make_alias # thanks to authors # Cameron Hayne (mac...@hayne.net), December 2003 # Paul Russell (pruss...@sonic.net), May 2006 /usr/bin/osascript > /dev/null < wrote: > I think that the dmg's size is proportional to the amount of data in > it not the size it claims to have as a disk so we can probably just > use 3 (or even maybe one). > > Robby > > On Tuesday, July 19, 2011, Eli Barzilay wrote: >> Two days ago, Robby Findler wrote: >>> On Sun, Jul 17, 2011 at 7:25 AM, Jakub Piotr Cłapa >>> wrote: >>> > [1]: >>> > http://stackoverflow.com/questions/96882/how-do-i-create-a-nice-looking-dmg-for-mac-os-x-using-command-line-tools >>> >>> Mecki's answer here sounds just perfect for us, since we only really >>> need one (or three, I suppose). >> >> IIUC, there are problems with the size -- IIUC, it won't grow which >> means that it'll be bigger than needed, which also means that we need >> a template DMG for each distribution kind which is 9 DMGs at the >> moment ({PPC,Intel,x86_64} and three for each -- textual, normal, >> full), and these DMGs need to live somewhere out of the repository. >> >> The AppleScript thing looks more robust, but I'm not sure if it can >> work when I'l not logged into the machine properly. It's sshing to >> the packaging machine, which means that I don't have the Finder thing >> running. Anyone knows if this is a problem? >> >> >> Two days ago, Robby Findler wrote: >>> FWIW, I believe we build these things on a mac, so figuring out how to >>> do that under linux is not necessary (for us). >> >> Yes. I wouldn't rely on some emulation driver with these things... >> >> -- >> ((lambda (x) (x x)) (lambda (x) (x x))) Eli Barzilay: >> http://barzilay.org/ Maze is Life! >> > > _ > For list-related administrative tasks: > http://lists.racket-lang.org/listinfo/dev -- -- Stephen De Gabrielle stephen.degabrie...@acm.org Telephone +44 (0)20 85670911 Mobile +44 (0)79 85189045 http://www.degabrielle.name/stephen _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/dev
Re: [racket-dev] Racket DMG improvements
I can make the "rising lambda" image which I think would be a good background for this; what size would you like? (Or should I send a script that takes the size as a parameter and produces a png?) Robby On Thu, Jul 21, 2011 at 10:51 AM, Stephen De Gabrielle wrote: > Sorry guys, > > I *will* test this(below) tonight. > - It doesn't do the fancy background image (a hidden .folder with a > .png), reposition and resize icons. > - It will suffice to know if Finder responds to applescript 'tell > application "Finder"' commands. > [It does create a alias, which is mostly the same an a softlink.] > > If anyone has a nice background image, that will save me making one. > (and a custom folder with the logo if you can do it?) > > #!/bin/sh > # used example http://hayne.net/MacDev/Bash/make_alias > # thanks to authors > # Cameron Hayne (mac...@hayne.net), December 2003 > # Paul Russell (pruss...@sonic.net), May 2006 > > /usr/bin/osascript > /dev/null < tell application "Finder" > set Src to POSIX file "/Applications" as text > set Dest to POSIX file > "/Users/spdegabrielle/Documents/Development/make alias test" as text > make new alias file to Src at folder Dest > end tell > EOT > > mv Applications "Drag into your Applications folder(here)" > > - > > On Tue, Jul 19, 2011 at 11:33 PM, Robby Findler > wrote: >> I think that the dmg's size is proportional to the amount of data in >> it not the size it claims to have as a disk so we can probably just >> use 3 (or even maybe one). >> >> Robby >> >> On Tuesday, July 19, 2011, Eli Barzilay wrote: >>> Two days ago, Robby Findler wrote: On Sun, Jul 17, 2011 at 7:25 AM, Jakub Piotr Cłapa wrote: > [1]: > http://stackoverflow.com/questions/96882/how-do-i-create-a-nice-looking-dmg-for-mac-os-x-using-command-line-tools Mecki's answer here sounds just perfect for us, since we only really need one (or three, I suppose). >>> >>> IIUC, there are problems with the size -- IIUC, it won't grow which >>> means that it'll be bigger than needed, which also means that we need >>> a template DMG for each distribution kind which is 9 DMGs at the >>> moment ({PPC,Intel,x86_64} and three for each -- textual, normal, >>> full), and these DMGs need to live somewhere out of the repository. >>> >>> The AppleScript thing looks more robust, but I'm not sure if it can >>> work when I'l not logged into the machine properly. It's sshing to >>> the packaging machine, which means that I don't have the Finder thing >>> running. Anyone knows if this is a problem? >>> >>> >>> Two days ago, Robby Findler wrote: FWIW, I believe we build these things on a mac, so figuring out how to do that under linux is not necessary (for us). >>> >>> Yes. I wouldn't rely on some emulation driver with these things... >>> >>> -- >>> ((lambda (x) (x x)) (lambda (x) (x x))) Eli Barzilay: >>> http://barzilay.org/ Maze is Life! >>> >> >> _ >> For list-related administrative tasks: >> http://lists.racket-lang.org/listinfo/dev > > > > -- > > -- > Stephen De Gabrielle > stephen.degabrie...@acm.org > Telephone +44 (0)20 85670911 > Mobile +44 (0)79 85189045 > http://www.degabrielle.name/stephen > _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/dev
Re: [racket-dev] Racket DMG improvements
The script please, that way if I get the first draft wrong, I won't be asking you for a new one. Ta Stephen On Thursday, July 21, 2011, Robby Findler wrote: > I can make the "rising lambda" image which I think would be a good > background for this; what size would you like? (Or should I send a > script that takes the size as a parameter and produces a png?) > > Robby > > On Thu, Jul 21, 2011 at 10:51 AM, Stephen De Gabrielle > wrote: >> Sorry guys, >> >> I *will* test this(below) tonight. >> - It doesn't do the fancy background image (a hidden .folder with a >> .png), reposition and resize icons. >> - It will suffice to know if Finder responds to applescript 'tell >> application "Finder"' commands. >> [It does create a alias, which is mostly the same an a softlink.] >> >> If anyone has a nice background image, that will save me making one. >> (and a custom folder with the logo if you can do it?) >> >> #!/bin/sh >> # used example http://hayne.net/MacDev/Bash/make_alias >> # thanks to authors >> # Cameron Hayne (mac...@hayne.net), December 2003 >> # Paul Russell (pruss...@sonic.net), May 2006 >> >> /usr/bin/osascript > /dev/null <> tell application "Finder" >> set Src to POSIX file "/Applications" as text >> set Dest to POSIX file >> "/Users/spdegabrielle/Documents/Development/make alias test" as text >> make new alias file to Src at folder Dest >> end tell >> EOT >> >> mv Applications "Drag into your Applications folder(here)" >> >> - >> >> On Tue, Jul 19, 2011 at 11:33 PM, Robby Findler >> wrote: >>> I think that the dmg's size is proportional to the amount of data in >>> it not the size it claims to have as a disk so we can probably just >>> use 3 (or even maybe one). >>> >>> Robby >>> >>> On Tuesday, July 19, 2011, Eli Barzilay wrote: Two days ago, Robby Findler wrote: > On Sun, Jul 17, 2011 at 7:25 AM, Jakub Piotr Cłapa > wrote: > > [1]: > > http://stackoverflow.com/questions/96882/how-do-i-create-a-nice-looking-dmg-for-mac-os-x-using-command-line-tools > > Mecki's answer here sounds just perfect for us, since we only really > need one (or three, I suppose). IIUC, there are problems with the size -- IIUC, it won't grow which means that it'll be bigger than needed, which also means that we need a template DMG for each distribution kind which is 9 DMGs at the moment ({PPC,Intel,x86_64} and three for each -- textual, normal, full), and these DMGs need to live somewhere out of the repository. The AppleScript thing looks more robust, but I'm not sure if it can work when I'l not logged into the machine properly. It's sshing to the packaging machine, which means that I don't have the Finder thing running. Anyone knows if this is a problem? Two days ago, Robby Findler wrote: > FWIW, I believe we build these things on a mac, so figuring out how to > do that under linux is not necessary (for us). Yes. I wouldn't rely on some emulation driver with these things... -- ((lambda (x) (x x)) (lambda (x) (x x))) Eli Barzilay: http://barzilay.org/ Maze is Life! >>> >>> _ >>> For list-related administrative tasks: >>> http://lists.racket-lang.org/listinfo/dev >> >> > -- -- Stephen De Gabrielle stephen.degabrie...@acm.org Telephone +44 (0)20 85670911 Mobile+44 (0)79 85189045 http://www.degabrielle.name/stephen _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/dev
Re: [racket-dev] Racket DMG improvements
On Thu, Jul 21, 2011 at 11:21 AM, Stephen De Gabrielle wrote: > The script please, that way if I get the first draft wrong, I won't be > asking you for a new one. Sure. Attached. Robby rising-plt.rkt Description: Binary data _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/dev
Re: [racket-dev] Racket DMG improvements
Two hours ago, Stephen De Gabrielle wrote: > > #!/bin/sh > # used example http://hayne.net/MacDev/Bash/make_alias > # thanks to authors > # Cameron Hayne (mac...@hayne.net), December 2003 > # Paul Russell (pruss...@sonic.net), May 2006 > > /usr/bin/osascript > /dev/null < tell application "Finder" >set Src to POSIX file "/Applications" as text >set Dest to POSIX file > "/Users/spdegabrielle/Documents/Development/make alias test" as text >make new alias file to Src at folder Dest > end tell > EOT This doesn't work, because it requires the Finder to be running. (For the build user.) I just tried it, and I get: 124:165: execution error: An error of type -10810 has occurred. (-10810) And a quick search shows that this is indeed the problem: http://stackoverflow.com/questions/5088872 -- ((lambda (x) (x x)) (lambda (x) (x x))) Eli Barzilay: http://barzilay.org/ Maze is Life! _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/dev