Skip to content

Commit a208a8c

Browse files
committed
Add code signing docs
1 parent 817e429 commit a208a8c

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

resources/views/docs/1/publishing/building.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,24 @@ php artisan native:build win
3737
Possible options are: `mac`, `win`, `linux`.
3838

3939
**Cross-compilation is not supported on all platforms.**
40+
41+
## Code signing
42+
Both macOS and Windows require your app to be signed before it can be distributed to your users.
43+
44+
NativePHP makes this as easy for you as it can, but each platform does have slightly different requirements.
45+
46+
### Windows
47+
[See the Electron documentation](https://www.electronforge.io/guides/code-signing/code-signing-windows) for more details.
48+
49+
### macOS
50+
[See the Electron documentation](https://www.electronforge.io/guides/code-signing/code-signing-macos) for more details.
51+
52+
To prepare for signing and notarizing, please provide the following environment variables when running `php artisan native:build`:
53+
54+
```dotenv
55+
56+
NATIVEPHP_APPLE_ID_PASS=app-specific-password
57+
NATIVEPHP_APPLE_TEAM_ID=8XCUU22SN2
58+
```
59+
60+
These can be added to your `.env` file as they will be stripped out when your app is built.

0 commit comments

Comments
 (0)