Giter Club home page Giter Club logo

Comments (4)

argv-minus-one avatar argv-minus-one commented on May 28, 2024

You're getting that error because both dmg-license and iconv-corefoundation (which dmg-license depends on) don't work at all on anything other than macOS.

From your error log, it looks like electron-builder is configured to generate a dmg file and attach a license agreement to it. That can only be done on a Mac, because attaching a license agreement to a dmg (at least with this dmg-license package) involves calling macOS APIs (namely CoreFoundation.framework and the hdiutil command-line program) that don't exist on any other platform.

If you want to build a dmg on Windows, you'll have to not attach a license agreement to it and show your license agreement another way. You should probably do that anyway, as dmg license agreements are deprecated by Apple and will probably be removed soon; see issue #11 for details.

from dmg-license.

MassMessage avatar MassMessage commented on May 28, 2024

You're getting that error because both dmg-license and iconv-corefoundation (which dmg-license depends on) don't work at all on anything other than macOS.

From your error log, it looks like electron-builder is configured to generate a dmg file and attach a license agreement to it. That can only be done on a Mac, because attaching a license agreement to a dmg (at least with this dmg-license package) involves calling macOS APIs (namely CoreFoundation.framework and the hdiutil command-line program) that don't exist on any other platform.

If you want to build a dmg on Windows, you'll have to not attach a license agreement to it and show your license agreement another way. You should probably do that anyway, as dmg license agreements are deprecated by Apple and will probably be removed soon; see issue #11 for details.

I didn't mean directly to generate such license for mac on windows. I was just figuring out how to use electron-builder, electron-forget, etc so that I could use webpack wihin my application. How do I prevent to try to generate such dmg-license on windows? I don't need this nowat all. The application was working tootally fine when suddently the yarn make stoped working and I got ton of those errors.

from dmg-license.

argv-minus-one avatar argv-minus-one commented on May 28, 2024

I'm sorry, but I can't help you there. I'm not familiar with electron-builder configuration.

from dmg-license.

MassMessage avatar MassMessage commented on May 28, 2024

I see, thanks anyway for your help.

from dmg-license.

Related Issues (8)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.