Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d2f1735
commit c4e5943
Showing
8 changed files
with
133 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1 @@ | |||
BSD3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,4 +1,37 @@ | |||
macosx-make-standalone | macosx-make-standalone | ||
====================== | ====================== | ||
|
|
||
Modify a MacOSX app bundle to include non standard .dylibs, so it can be run without development environment | Modify a MacOSX app bundle to include non standard .dylibs, so it can be run without development environment | ||
|
|||
|
|||
Installation | |||
============ | |||
|
|||
- Requires Haskell (7.4.1 onwards) | |||
- Installs via hackage or from this source repo via cabal | |||
- Hackage: | |||
cabal install macosx-make-standalone | |||
- From repo: | |||
cabal configure | |||
cabal build | |||
cabal install | |||
|
|||
|
|||
Manual | |||
====== | |||
|
|||
Invocation: | |||
macosx-make-standalone <mac app bundle> | |||
|
|||
What is does, restrictions: | |||
- Copies all non /usr/lib .dylib files into <mac app bundle>/Contents/lib/ | |||
- Changes all references to the old library into refs to the copied libraries, in the <mac app bundle>/Contents/MacOS/<app name> as well as the copied libraries | |||
- Resolves symbolic links of referenced libraries (thus not for <mac app bundle>) | |||
- In case of duplicate libraries ending up with the same copy name, an arbitrary one is picked (no problem if they are equal) | |||
- Can only be run once, i.e. is not idempotent | |||
|
|||
|
|||
Tested with | |||
=========== | |||
|
|||
A single wxHaskell based application, on MacOSX 10.8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,2 @@ | |||
import Distribution.Simple | |||
main = defaultMain |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters