OSX上的.app

剛才發現在MacOSX上,要自己做.app是非常簡單的…。

假設程式名為Hello,那麼只要有個Hello.app/Contents/MacOS/資料夾,以及放在裡面的一個可執行檔Hello,這樣就行了。
Hello可以是用gcc編譯出來的binary file,也可以是python或perl寫的script,總之能在shell底下用Hello.app/Contents/MacOS/Hello執行的就行啦。

Leave a Reply

Your email address will not be published. Required fields are marked *

*