8000 Documented compilation of Windows binaries on Linux (#42) · SRWieZ/fork-nativephp.com@b2626b8 · GitHub 8000
[go: up one dir, main page]

Skip to content

Commit b2626b8

Browse files
authored
Documented compilation of Windows binaries on Linux (NativePHP#42)
* Documented compilation of Windows binaries on Linux * Update resources/views/docs/1/publishing/building.md
1 parent fc4f2cb commit b2626b8

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

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

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,15 +49,29 @@ Possible options are: `mac`, `win`, `linux`.
4949

5050
**Cross-compilation is not supported on all platforms.**
5151

52+
#### Cross-compilation on Linux
53+
54+
Compiling Windows binaries is possible with [wine](https://www.winehq.org/).
55+
NSIS requires 32-bit wine when building x64 applications.
56+
57+
```bash
58+
# Example installation of wine for Debian based distributions (Ubuntu)
59+
dpkg --add-architecture i386
60+
apt-get -y update
61+
apt-get -y install wine32
62+
```
63+
5264
## Code signing
5365
Both macOS and Windows require your app to be signed before it can be distributed to your users.
5466

5567
NativePHP makes this as easy for you as it can, but each platform does have slightly different requirements.
5668

5769
### Windows
70+
5871
[See the Electron documentation](https://www.electronforge.io/guides/code-signing/code-signing-windows) for more details.
5972

6073
### macOS
74+
6175
[See the Electron documentation](https://www.electronforge.io/guides/code-signing/code-signing-macos) for more details.
6276

6377
To prepare for signing and notarizing, please provide the following environment variables when running `php artisan native:build`:

0 commit comments

Comments
 (0)
0