Build exe warnings

Open
#2 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
35/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
electron, typescript

Research direction

Inspect the package.json build configuration and the dist/main.js entry named in the error. Run npm run dist to reproduce the packaging failure; done means electron-builder completes without reporting that the application entry file is missing.

Written by the indexing model from the issue text.

Description

C:\Files\Projects\electron-censor-app>npm run dist

> electron-censor-app@1.0.0 dist
> electron-builder

  • electron-builder  version=25.1.8 os=10.0.26100
  • loaded configuration  file=package.json ("build" field)
  • writing effective config  file=dist\builder-effective-config.yaml
  • executing @electron/rebuild  electronVersion=33.2.1 arch=x64 buildFromSource=false appDir=./
  • installing native dependencies  arch=x64
  • completed installing native dependencies
  • packaging       platform=win32 arch=x64 electron=33.2.1 appOutDir=dist\win-unpacked
  • downloading     url=https://github.com/electron/electron/releases/download/v33.2.1/electron-v33.2.1-win32-x64.zip
 size=115 MB parts=8
  • downloaded      url=https://github.com/electron/electron/releases/download/v33.2.1/electron-v33.2.1-win32-x64.zip
 duration=3m2.713s
  • updating asar integrity executable resource  executablePath=dist\win-unpacked\Electron Censor App.exe
  ⨯ Application entry file "dist\main.js" in the "C:\Files\Projects\electron-censor-app\dist\win-unpacked\resources\app.asar" does not exist. Seems like a wrong configuration.  failedTask=build stackTrace=Error: Application entry file "dist\main.js" in the "C:\Files\Projects\electron-censor-app\dist\win-unpacked\resources\app.asar" does not exist. Seems like a wrong configuration.
    at error (C:\Files\Projects\electron-censor-app\node_modules\app-builder-lib\src\asar\asarFileChecker.ts:7:12)
    at checkFileInArchive (C:\Files\Projects\electron-censor-app\node_modules\app-builder-lib\src\asar\asarFileChecker.ts:31:11)
    at WinPackager.checkFileInPackage (C:\Files\Projects\electron-censor-app\node_modules\app-builder-lib\src\platformPackager.ts:527:7)
    at WinPackager.sanityCheckPackage (C:\Files\Projects\electron-censor-app\node_modules\app-builder-lib\src\platformPackager.ts:575:5)
    at WinPackager.doPack (C:\Files\Projects\electron-censor-app\node_modules\app-builder-lib\src\platformPackager.ts:329:5)
    at WinPackager.pack (C:\Files\Projects\electron-censor-app\node_modules\app-builder-lib\src\platformPackager.ts:138:5)
    at Packager.doBuild (C:\Files\Projects\electron-censor-app\node_modules\app-builder-lib\src\packager.ts:459:9)
    at executeFinally (C:\Files\Projects\electron-censor-app\node_modules\builder-util\src\promise.ts:12:14)
    at Packager.build (C:\Files\Projects\electron-censor-app\node_modules\app-builder-lib\src\packager.ts:393:31)
    at executeFinally (C:\Files\Projects\electron-censor-app\node_modules\builder-util\src\promise.ts:12:14)
Dominant language
TypeScript
Stars
1
Forks
0
Avg merge
10h 27m
Merged PRs (30d)
1

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from BaseMax/electron-censor-app

All issues in BaseMax/electron-censor-app

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.