Skip to content

Commit

Permalink
Fix windows php path for native:minify (#111)
Browse files Browse the repository at this point in the history
* fix windows php path for native:minify

* chore: remove native:minify command
  • Loading branch information
kritish-dhaubanjar authored Nov 1, 2024
1 parent 51910c9 commit 56db7fc
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions resources/js/electron-builder.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
const {copySync, removeSync, writeJsonSync, existsSync} = require("fs-extra");
const {join} = require("path");
const os = require('os');
const {mkdtempSync} = require("fs");
const {execSync} = require("child_process");
const { join } = require("path");
const { mkdtempSync } = require("fs");
const { copySync, removeSync, writeJsonSync } = require("fs-extra");

const isBuilding = process.env.NATIVEPHP_BUILDING;
const appId = process.env.NATIVEPHP_APP_ID;
const appName = process.env.NATIVEPHP_APP_NAME;
Expand Down Expand Up @@ -108,10 +108,6 @@ if (isBuilding) {
console.log('Copied app to resources');
console.log(join(process.env.APP_PATH, 'dist'));
console.log('=====================');

const artisanPath = join(appPath, 'artisan');
// We'll use the default PATH PHP binary here, as we can cross-compile for all platforms. This shouldn't be changed.
execSync(`php ${artisanPath} native:minify ${appPath}`);
} catch (e) {
console.error('=====================');
console.error('Error copying app to resources');
Expand Down

0 comments on commit 56db7fc

Please sign in to comment.