Skip to content

Commit

Permalink
Real fix this time
Browse files Browse the repository at this point in the history
  • Loading branch information
simonhamp committed May 1, 2024
1 parent 0a2155d commit f84dc14
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions resources/js/src/main/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit f84dc14

Please sign in to comment.