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 fail since the icon.ico at wrong position. #7711

Closed
asika32764 opened this issue Aug 3, 2023 · 8 comments
Closed

Windows build fail since the icon.ico at wrong position. #7711

asika32764 opened this issue Aug 3, 2023 · 8 comments
Labels

Comments

@asika32764
Copy link

  • Electron-Builder Version: 24.6.3
  • Node Version: v16.20.0
  • Electron Version: 25.3.2
  • Electron Type (current, beta, nightly): current
  • Target: win portable

Windows build will fail because the icon.ico will put to ${version}/.icon-ico/ dir, not x.x.x/.icon-ico/ dir.

p-001-2023-08-04-01-03-28

Error message

Error output:
Error while loading icon from "E:...\release\0.0.0.icon-ico\icon.ico": can't open file
failedTask=build stackTrace=Error: C:\Users\xxx\AppData\Local\electron-builder\Cache\nsis\nsis-3.0.4.1\Bin\makensis.exe process failed ERR_ELECTRON_BUILDER_CANNOT_EXECUTE

The config file:

appId: xxx
asar: false
directories:
    output: release/${version}

files:
    - dist
    - electron

icon: public/editor-icon.png

win:
    target:
        - target: portable
          arch:
              - x64
    artifactName: "${productName}_${version}.${ext}"

NOTE: Building in MacOS works well, only fail in Windows.

@asika32764 asika32764 changed the title Window build fail since the icon.ico at wrong position. Windows build fail since the icon.ico at wrong position. Aug 3, 2023
@KaliaJS
Copy link

KaliaJS commented Aug 11, 2023

I can confirm that I have the same problem.

@ColtenP
Copy link

ColtenP commented Aug 16, 2023

Yep, I'm also having the same problem.

@six-edge
Copy link

six-edge commented Oct 5, 2023

Same issue 🫤 any workarounds?

@abarke
Copy link

abarke commented Oct 5, 2023

I can also reproduce the issue.

image

Seems to be the follow issue with the

image

Changing the output directory to remove the ${version} fixed it for now e.g.

{
  "directories": {
    "output": "release",
  },
}

Copy link
Contributor

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 30 days.

@github-actions github-actions bot added the Stale label Dec 16, 2023
@mangledbottles
Copy link

Is there a proper solution to this other than hardcoding the version in the file?

@github-actions github-actions bot removed the Stale label Dec 22, 2023
Copy link
Contributor

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 30 days.

@github-actions github-actions bot added the Stale label Feb 20, 2024
Copy link
Contributor

This issue was closed because it has been stalled for 30 days with no activity.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Apr 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants