From c00c66dd6dad378acaff144b5c2feee795b129d5 Mon Sep 17 00:00:00 2001 From: Akis Kesoglou Date: Thu, 9 Nov 2023 17:24:52 +0200 Subject: [PATCH] dddd --- .github/actions/publish/action.yml | 2 +- forge.config.ts | 9 --------- package.json | 3 ++- 3 files changed, 3 insertions(+), 11 deletions(-) diff --git a/.github/actions/publish/action.yml b/.github/actions/publish/action.yml index 3be57c6c76f..ba66e847ef3 100644 --- a/.github/actions/publish/action.yml +++ b/.github/actions/publish/action.yml @@ -141,7 +141,7 @@ runs: exit 1 fi - npm run make -- --arch="${BUILD_ARCH}" + npm run make-debug -- --arch="${BUILD_ARCH}" echo "version=${APPLICATION_VERSION}" >> $GITHUB_OUTPUT diff --git a/forge.config.ts b/forge.config.ts index 8e4fb8b70eb..de01c3e5201 100644 --- a/forge.config.ts +++ b/forge.config.ts @@ -7,7 +7,6 @@ import { MakerDMG } from '@electron-forge/maker-dmg'; import { MakerAppImage } from '@reforged/maker-appimage'; import { AutoUnpackNativesPlugin } from '@electron-forge/plugin-auto-unpack-natives'; import { WebpackPlugin } from '@electron-forge/plugin-webpack'; -import { ResourcePlugin } from 'electron-forge-resource-plugin'; import { mainConfig, rendererConfig } from './webpack.config'; @@ -134,14 +133,6 @@ const config: ForgeConfig = { ], }, }), - new ResourcePlugin({ - env: 'ETCHER_UTIL_BIN_PATH', - path: `out/sidecar/bin/etcher-util${process.platform === 'win32' ? '.exe' : ''}`, - build: { - command: 'npm rebuild mountutils && tsc --project tsconfig.sidecar.json && pkg out/sidecar/util/api.js -c pkg-sidecar.json --target node18 --output out/sidecar/bin/etcher-util', - sources: './lib/util/', - }, - }), ], }; diff --git a/package.json b/package.json index 67802ce2527..678aaac6c0f 100644 --- a/package.json +++ b/package.json @@ -25,7 +25,8 @@ "test": "echo npm run test-{linux,windows,macos}", "package": "electron-forge package", "start": "electron-forge start", - "make": "electron-forge make" + "make": "electron-forge make", + "make-debug": "DEBUG='electron-forge:*,electron-packager,electron-rebuild' electron-forge make" }, "husky": { "hooks": {