Skip to content

Commit 064d9be

Browse files
authored
add note about mac notarization (#79)
1 parent d61ac26 commit 064d9be

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

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

+7-2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
title: Building
33
order: 100
44
---
5+
56
## Building Your App
67

78
Building your app is the process of compiling your application into a production-ready state. When building, NativePHP
@@ -69,6 +70,7 @@ apt-get -y install wine32
6970
```
7071

7172
## Code signing
73+
7274
Both macOS and Windows require your app to be signed before it can be distributed to your users.
7375

7476
NativePHP makes this as easy for you as it can, but each platform does have slightly different requirements.
@@ -92,15 +94,18 @@ NATIVEPHP_APPLE_TEAM_ID=8XCUU22SN2
9294

9395
These can be added to your `.env` file as they will be stripped out when your app is built.
9496

97+
Without proper notarization your app will only run on the development machine. Other Macs will show a "app is damaged and can't be opened" warning.
98+
This is a security feature in macOS that prevents running unsigned or improperly notarized applications. Make sure to complete the notarization process to avoid this issue.
99+
95100
## First run
96101

97102
When your application runs for the first time, a number of things occur.
98103

99104
NativePHP will:
100105

101106
1. Create the `appdata` folder - where this is created depends which platform you're developing on. It is named
102-
according to your `nativephp.app_id` [config](/docs/getting-started/configuration) value (which is based on the
103-
`NATIVEPHP_APP_ID` env variable).
107+
according to your `nativephp.app_id` [config](/docs/getting-started/configuration) value (which is based on the
108+
`NATIVEPHP_APP_ID` env variable).
104109
2. Creating the `{appdata}/database/database.sqlite` SQLite database - your user's copy of your app's database.
105110
3. Migrate this database.
106111

0 commit comments

Comments
 (0)