Sign in Join
Wiki copytemporary

Application Bundle/ja: what changed

Revision 0 to 1. Removed lines have a minus sign; added lines have a plus sign.

Title: Application Bundle/ja

OldNewLine
1+アプリケーションバンドル Application Bundle は Mac OS X システムにおいて特別の役割を果たすディレクトリで、しばしば拡張子 ".app" を持っています。その中にはリソースファイルやアプリケーションに関する情報が入っています。[[Carbon Interface/ja|Carbon インターフェースを]]用いたアプリケーションが正しく実行されるためには必須のものです。
2+
3+### アプリケーションバンドルを作成する
4+
5+#### Lazarusから
6+
7+プロジェクトを開き、Project -\> Project Options -\> Application タブに行き、[[IDE Window: Project Options|Create Application Bundle]] ボタンを押します。実際の実行ファイルへのシンボリックリンクを含んだアプリケーションバンドルが作成されます。
8+
9+#### Lazarus付属のコマンドラインツールを用いて
10+
11+IDEで lazarus/components/macfiles/examples/createmacapplication.lpi を開き、コンパイルします。好みのターミナルからこうタイプします:
12+
13+ cd project1/
14+ lazarus/components/macfiles/examples/createmacapplication project1
15+ ln -s ../../../project1 project1.app/Contents/MacOS/project1
16+
17+#### シェルスクリプトを用いて
18+
19+GTK用実行ファイルからアプリケーションバンドルを生成するスクリプトが[[macOS Programming Tips/ja|macOS Programming Tipsにあります]]。これを修正して Carbon実行ファイル用にすることができます (X11から実行できるようにするための4行を取り去ります)。Carbonアプリケーション用に若干改善したものが [here](http://web.fastermac.net/~MacPgmr/Lazarus/) にあります。
20+
21+### アプリケーションバンドルからアプリケーションを実行する
22+
23+オプションの[[IDE Window: Project Options/ja|Use Application Bundle for running and debugging (darwin only)をチェックしておけば]]、IDEから実行することができます。ファインダからも、Mac OS X純正のターミナルから "open project1.app" としても実行することができます。
24+
25+---
26+*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](/wiki-contact).*
27+Category: Lazarus/ja

Back to history