diff --git a/resources/js/src/main/index.js b/resources/js/src/main/index.js index 8c1fcca..4e1342b 100644 --- a/resources/js/src/main/index.js +++ b/resources/js/src/main/index.js @@ -4,9 +4,9 @@ import path from 'path' import defaultIcon from '../../resources/icon.png?asset&asarUnpack' import certificate from '../../resources/cacert.pem?asset&asarUnpack' -const isWin = process.platform === 'win32'; +let phpBinary = process.platform === 'win32' ? 'php.exe' : 'php'; -const phpBinary = path.join(__dirname, '../../resources', isWin ? 'php/php.exe' : 'php/php'); +phpBinary = path.join(__dirname, '../../resources/php', phpBinary).replace("app.asar", "app.asar.unpacked"); /** * Turn on the lights for the NativePHP app.