Ticket #583 (assigned enhancement)

Opened 4 years ago

Last modified 2 years ago

create application bundles on demand

Reported by: kowey Owned by: dankna
Priority: normal Milestone:
Component: Cabal library Version:
Severity: normal Keywords:
Cc: Difficulty: unknown
GHC Version: Platform: Mac OS

Description

Currently, getting graphical applications to work on MacOS X involves a bit of manual steps after "cabal install", particularly if the applications happen to be command line oriented at the same time (ie. a GUI that supports being called from the command line).

The blog post below offers a solution which seems to work for wxHaskell (Setup.hs files also attached). Perhaps it can be generalised somehow so that users can just tell Cabal they want an application bundle?

Duncan requested Apple docs on application bundles. I haven't read it yet, but maybe this will help?

Attachments

addendum.hs Download (1.4 KB) - added by kowey 4 years ago.
addendum to Setup.hs example for fancy bundles
Setup.hs Download (4.6 KB) - added by kowey 4 years ago.
revised Setup.hs (and addendum) with chmod u+x

Change History

Changed 4 years ago by kowey

addendum to Setup.hs example for fancy bundles

Changed 4 years ago by duncan

So the tricky thing here is who decides if it's going to be an app bundle or not.

Presumably it is the package author who knows that the app is actually a GUI app and so it needs to do something funky on different systems.

Changed 4 years ago by kowey

revised Setup.hs (and addendum) with chmod u+x

Changed 2 years ago by dankna

  • owner set to dankna
  • status changed from new to assigned
Note: See TracTickets for help on using tickets.