Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows build entry point not found #241

Open
tvotiger opened this issue Nov 1, 2023 · 0 comments
Open

Windows build entry point not found #241

tvotiger opened this issue Nov 1, 2023 · 0 comments

Comments

@tvotiger
Copy link

tvotiger commented Nov 1, 2023

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('/', '')),
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant