Skip to content

Commit f84dc14

Browse files
committed
Real fix this time
1 parent 0a2155d commit f84dc14

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

resources/js/src/main/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ import path from 'path'
44
import defaultIcon from '../../resources/icon.png?asset&asarUnpack'
55
import certificate from '../../resources/cacert.pem?asset&asarUnpack'
66

7-
const isWin = process.platform === 'win32';
7+
let phpBinary = process.platform === 'win32' ? 'php.exe' : 'php';
88

9-
const phpBinary = path.join(__dirname, '../../resources', isWin ? 'php/php.exe' : 'php/php');
9+
phpBinary = path.join(__dirname, '../../resources/php', phpBinary).replace("app.asar", "app.asar.unpacked");
1010

1111
/**
1212
* Turn on the lights for the NativePHP app.

0 commit comments

Comments
 (0)