Re: [racket-dev] Racket DMG improvements

2011-07-21 Thread Robby Findler
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
stephen.degabrie...@acm.org 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 EOT
 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
 ro...@eecs.northwestern.edu 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 e...@barzilay.org wrote:
 Two days ago, Robby Findler wrote:
 On Sun, Jul 17, 2011 at 7:25 AM, Jakub Piotr Cłapa jpc...@zenburn.net 
 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

2011-07-19 Thread Eli Barzilay
Two days ago, Robby Findler wrote:
 On Sun, Jul 17, 2011 at 7:25 AM, Jakub Piotr Cłapa jpc...@zenburn.net 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

2011-07-19 Thread Robby Findler
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 e...@barzilay.org wrote:
 Two days ago, Robby Findler wrote:
 On Sun, Jul 17, 2011 at 7:25 AM, Jakub Piotr Cłapa jpc...@zenburn.net 
 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

2011-07-17 Thread Jakub Piotr Cłapa
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

2011-07-17 Thread Robby Findler
On Sun, Jul 17, 2011 at 7:25 AM, Jakub Piotr Cłapa jpc...@zenburn.net 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

2011-07-17 Thread Robby Findler
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 n...@neilvandyke.org 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

[racket-dev] Racket DMG improvements

2011-07-13 Thread Eli Barzilay
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