From f84dc14a7aa1dbb9380ef568b4296e79956c101c Mon Sep 17 00:00:00 2001 From: Simon Hamp Date: Wed, 1 May 2024 04:26:58 +0100 Subject: [PATCH] Real fix this time --- resources/js/src/main/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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.