File tree Expand file tree Collapse file tree 1 file changed +21
-0
lines changed
resources/views/docs/1/publishing Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -37,3 +37,24 @@ php artisan native:build win
37
37
Possible options are: ` mac ` , ` win ` , ` linux ` .
38
38
39
39
** 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.
You can’t perform that action at this time.
0 commit comments