Giter Site home page Giter Site logo

Comments (6)

mmaietta avatar mmaietta commented on May 23, 2024

This is why it's failing.
snapcraft is not installed, please: sudo snap install snapcraft --classic
snapcraft is a huge package and is why it's not installed in the base docker image by default. You'll need to install it locally

from electron-builder.

coreybruce avatar coreybruce commented on May 23, 2024

This is why it's failing. snapcraft is not installed, please: sudo snap install snapcraft --classic snapcraft is a huge package and is why it's not installed in the base docker image by default. You'll need to install it locally

Sorry but why did you close this? did you look at my logs at all? you can clearly see the difference between the log building x64 and Arm64..

I never told it to do snap on either of them and when I told it to do x64 it didn't do snap nor did it give me the error but as soon as I did Arm64 it tried to do snap and gave me that error even tho I never told it to do a snap package

I never said I was even using a docker container, please re open this issue and read the issue post.

from electron-builder.

mmaietta avatar mmaietta commented on May 23, 2024

Apologies. Can you please post your full electron-builder config file, your build command w/ args, and/or a minimum reproducible repo that I can investigate further with? Not sure why yours is building snap if you're not specifically requesting it via config.

from electron-builder.

coreybruce avatar coreybruce commented on May 23, 2024

I'm actually not using a electron-builder config file but here is a example of one of my package.json files

{
  "name": "Youtube",
  "version": "1.1.1",
  "pkgrel": "3",
  "description": "Youtube desktop app",
  "main": "main.js",
  "scripts": {
    "start": "electron ."
  },
  "repository": "",
  "keywords": [
    "Youtube"
  ],
  "author": "Corey Bruce",
  "license": "GPL",
  "devDependencies": {
    "electron": "^29.1.0",
    "electron-builder": "^24.13.3",
    "electron-packager": "^17.1.2"
  },
  "dependencies": {
    "electron-context-menu": "^3.6.1"
  }
}

Not sure why it tries to build a snap package when I tell it to do arm64 but not x64 I'm sure we can figure out the bug

from electron-builder.

mmaietta avatar mmaietta commented on May 23, 2024

Having an electron-builder config in your package.json would probably help significantly. What's your build command though? I don't see anything in the scripts for electron-builder.

The default targets for linux include snap

get defaultTarget(): Array<string> {
return ["snap", "appimage"]
}

from electron-builder.

coreybruce avatar coreybruce commented on May 23, 2024

Yeh but I don't need a electron-builder config

The default targets for linux include snap

But it doesn't give this error when building for x64 and only Arm64, why is it different between the two architectures and give this error for Arm64 but doesn't on x64 when I don't have the snap packages and don't want to build for snap??

from electron-builder.

Related Issues (20)

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.