This repository has been archived by the owner on Aug 24, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 242
Making an OSX command line executable JSILc
profK edited this page Apr 5, 2014
·
4 revisions
Im using JSILc on the Mac, but found having to execute JSIL from the bin directory to be a real limiting factor.
After a few different experiments I found a solution I am happy with. Using macpack I have built JSILc into a command line executable JSILc.app and then made a symbolic link to run it.
This is my bash script to build the JSILc.app
#!/bin/bash rm -rf JSILc.app macpack -m:2 -o:. \ -r:FSharp.Compiler.CodeDom.dll \ -r:FSharp.Core.dll \ -r:ICSharpCode.Decompiler.dll \ -r:ICSharpCode.NRefactory.CSharp.dll \ -r:ICSharpCode.NRefactory.dll \ -r:JSIL.Meta.dll \ -r:JSIL.Profiles.XNA4.dll \ -r:JSIL.Proxies.4.0.dll \ -r:JSIL.Proxies.XNA4.dll \ -r:JSIL.dll \ -r:Mono.Cecil.Mdb.dll \ -r:Mono.Cecil.Pdb.dll \ -r:Mono.Cecil.dll \ -r:Tests.dll \ -r:Xap.dll \ -r:libpng3.dll \ -r:mozglue.dll \ -r:msvcp100.dll \ -r:msvcr100.dll \ -r:nss3.dll \ -r:nunit.framework.dll \ -r:zlib1.dll \ -n:JSILc -a:JSILc.exe
I moved the resulting JSILc.app to my /Applications directory and then added this simple shell script to /usr/local/bin
#!/bin/bash /Applications/JSILc.app/Contents/MacOS/JSILc "$*"
NOTE; turns out there are a few more things that have to be twiddled to make this totally work. I will update and remove this line when I have it all working...