Debian Codegraph @

docs/en/reference/commands/package.md

raw
1 # package
2
3 Compile/build an application installer. By default, targets the current platform's default output format.
4
5 This will produce an installable artefact.
6
7 You should not package an application that was built using `build --test` or `build --debug <debugger>`.
8
9 ## Usage
10
11 To build an installer of the default output format for the current platform:
12
13 ```console
14 $ briefcase package
15 ```
16
17 To build an installer for a different platform:
18
19 ```console
20 $ briefcase package <platform>
21 ```
22
23 To build an installer for a specific output format:
24
25 ```console
26 $ briefcase package <platform> <output format>
27 ```
28
29 /// admonition | Packaging tool requirements
30
31 Building installers for some platforms depends on the build tools for the platform you're targeting being available on the platform you're using. For example, you will only be able to create iOS applications on macOS. Briefcase will check for any required tools, and will report an error if the platform you're targeting is not supported.
32
33 ///
34
35 Once packaging is complete, the artefact can be distributed to a store or channel. See the [publish][publish] command and the platform-specific publishing guides for [Android](../../how-to/publishing/android.md), [iOS](../../how-to/publishing/iOS.md), and [macOS](../../how-to/publishing/macOS.md).
36
37 ## Options
38
39 The following options can be provided at the command line.
40
41 ### `-a <app name>` / `--app <app name>`
42
43 Run a specific application target in your project. This argument is only required if your project contains more than one application target. The app name specified should be the machine-readable package name for the app.
44
45 ### `-u` / `--update`
46
47 Update and recompile the application's code before packaging. Equivalent to running:
48
49 ```console
50 $ briefcase update
51 $ briefcase package
52 ```
53
54 ### `-p <format>`, `--packaging-format <format>`
55
56 The format to use for packaging. The available packaging formats are platform dependent.
57
58 ### `--adhoc-sign`
59
60 Perform the bare minimum signing that will result in a app that can run on your local machine. This may result in no signing, or signing with an ad-hoc signing identity. The `--adhoc-sign` option may be useful during development and testing. However, care should be taken using this option for release artefacts, as it may not be possible to distribute an ad-hoc signed app to others.
61
62 ### `-i <identity>` / `--identity <identity>`
63
64 The [code signing identity][obtain-code-signing-identity] to use when signing the app.
65
66 The format for the code signing identity is platform specific:
67
68 * **On macOS:** The 40-character hex thumbprint of the signing identity; the full name of the certificate (e.g., `Developer ID Application: Jane Smith (ABC12345DE)`); or `-` to use an ad-hoc signature. See the [documentation on macOS code signing for more details](../../how-to/code-signing/macOS.md).
69
70 * **On Windows:** The 40-character hex thumbprint of the signing identity; or the subject name of a certificate in the user's certificate store. See the [documentation on Windows code signing for more details](../../how-to/code-signing/windows.md).