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

dmg-license incompatible error when building on Linux #6243

Closed
Webreaper opened this issue Sep 8, 2021 · 4 comments · Fixed by #6248
Closed

dmg-license incompatible error when building on Linux #6243

Webreaper opened this issue Sep 8, 2021 · 4 comments · Fixed by #6248
Assignees
Labels

Comments

@Webreaper
Copy link

Webreaper commented Sep 8, 2021

  • Electron-Builder Version: 22.11.11
  • Node Version: v14.17.6
  • Electron Version: 14.0.0
  • Electron Type (current, beta, nightly): Current
  • Target: MacOS, Linux, Windows

I'm running a cross-platform build on MacOS, Linux and Windows. It's running in GitHub actions, and each platform builds on a runner using its own OS (so Linux builds on Ubuntu, MacOS builds on Mac, and Windows builds on Windows).

My build has been fine using electron v11.0.0 and electron-builder v22.11.4. However, upgrading to electron v14, with the same version of electron-builder or newer, and I get this:

*** Building Electron Desktop app for linux...
yarn install v1.22.11
info No lockfile found.
[1/4] Resolving packages...
[2/4] Fetching packages...
info dmg-license@1.0.9: The platform "linux" is incompatible with this module.
info "dmg-license@1.0.9" is an optional dependency and failed compatibility check. Excluding it from installation.
info iconv-corefoundation@1.1.6: The platform "linux" is incompatible with this module.
info "iconv-corefoundation@1.1.6" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
[4/4] Building fresh packages...
success Saved lockfile.
Done in 18.25s.
yarn install v1.22.11
[1/4] Resolving packages...
success Already up-to-date.
Done in 0.29s.
yarn version v1.22.11
info Current version: 1.7.7
info New version: 2.2.1
error Command failed.
info Visit https://yarnpkg.com/en/docs/cli/version for documentation about this command.
Exit code: 128

Now, I've seen issues saying that the platform "linux" is incompatible with this module error is because you have to build on linux - but I am building on linux. So I don't understand why dmg-licence is being pulled in as a dependency at all (my app doesn't use it...).

The MacOS version builds just fine on MacOS.

I can workaround it by reverting back to Electron v11, but that's not ideal. Any ideas how to fix?

Sample build here: https://github.com/Webreaper/Damselfly/runs/3550094307?check_suite_focus=true#step:4:1

@github-actions github-actions bot added the readme label Sep 8, 2021
@mcmxcdev
Copy link
Contributor

mcmxcdev commented Sep 9, 2021

I also remember experiencing this issue.

Seems it will be fixed in the next release by: #6244

@Webreaper
Copy link
Author

Got it, thanks.

@mmaietta mmaietta linked a pull request Sep 10, 2021 that will close this issue
@mmaietta mmaietta self-assigned this Sep 10, 2021
@mmaietta
Copy link
Collaborator

Please try the newest next release 22.14.2

@Webreaper
Copy link
Author

Looks better, thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants