rapid7 / awsaml

Awsaml is an application for providing automatically rotated temporary AWS credentials.
MIT License
138 stars 45 forks source link

Windows build entry point not found #241

Open tvotiger opened 1 year ago

tvotiger commented 1 year ago

On Windows, run:

  1. set ARCH=x64
  2. set PLATFORM=win32
  3. yarn build

It errors with:

      × Finalizing package
        › The main entry point to your app was not found. Make sure "c:\projects\awsaml\src\main\index.js" exists and does not get ignored by your ignore option
■ Running postPackage hook
■ Running preMake hook
■ Making distributables
■ Running postMake hook
node:internal/process/promises:289
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: The main entry point to your app was not found. Make sure "c:\projects\awsaml\src\main\index.js" exists and does not get ignored by your ignore option
    at Object.validateElectronApp (c:\projects\awsaml\node_modules\electron-packager\src\common.js:115:13)

This error doesn't happen with the following change:

--- a/forge.config.js
+++ b/forge.config.js
@@ -41,7 +41,7 @@ const config = {
     asar: true,
     helperBundleId: 'com.rapid7.awsaml.helper',
     prune: true,
-    ignore: (p) => !includeFiles.includes(p.replace('/', '')),
+    // ignore: (p) => !includeFiles.includes(p.replace('/', '')),