Sign in Join
Wiki copytemporary

Application Bundle/ja

English · Русский · 日本語

アプリケーションバンドル Application Bundle は Mac OS X システムにおいて特別の役割を果たすディレクトリで、しばしば拡張子 ".app" を持っています。その中にはリソースファイルやアプリケーションに関する情報が入っています。Carbon インターフェースを用いたアプリケーションが正しく実行されるためには必須のものです。

アプリケーションバンドルを作成する

Lazarusから

プロジェクトを開き、Project -> Project Options -> Application タブに行き、Create Application Bundle ボタンを押します。実際の実行ファイルへのシンボリックリンクを含んだアプリケーションバンドルが作成されます。

Lazarus付属のコマンドラインツールを用いて

IDEで lazarus/components/macfiles/examples/createmacapplication.lpi を開き、コンパイルします。好みのターミナルからこうタイプします:

pascal
cd project1/
lazarus/components/macfiles/examples/createmacapplication project1
ln -s ../../../project1 project1.app/Contents/MacOS/project1

シェルスクリプトを用いて

GTK用実行ファイルからアプリケーションバンドルを生成するスクリプトがmacOS Programming Tipsにあります。これを修正して Carbon実行ファイル用にすることができます (X11から実行できるようにするための4行を取り去ります)。Carbonアプリケーション用に若干改善したものが here にあります。

アプリケーションバンドルからアプリケーションを実行する

オプションのUse Application Bundle for running and debugging (darwin only)をチェックしておけば、IDEから実行することができます。ファインダからも、Mac OS X純正のターミナルから "open project1.app" としても実行することができます。


From the Free Pascal wiki, page "Application Bundle/ja", as it stood on 2020-02-02 after a change by Trev, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's Licensing page. If you have concerns about this material, message the admin.

Revision 1, last changed by WikiArchive .

Talk about this page

Nobody has opened a bench for this page yet. Sign in to open one.