Giter Club home page Giter Club logo

Comments (6)

stefanjudis avatar stefanjudis commented on May 18, 2024

@dietlev

Still having problems here?
Will have a look at it today - if so. :bowtie:

from electron-builder.

dietlev avatar dietlev commented on May 18, 2024

Good morning ( in Belgium )
Yes, I still have the same issue. My app is finished, just the building part is not working properly.

Thanks in advance :)

from electron-builder.

stefanjudis avatar stefanjudis commented on May 18, 2024

Cool. 👍

But I shall still check https://github.com/dietlev/electron-build-demo ?

from electron-builder.

dietlev avatar dietlev commented on May 18, 2024

Yes, if that's working I can see where the actual app is going wrong

from electron-builder.

stefanjudis avatar stefanjudis commented on May 18, 2024

okidoki. 👍 I'll have a look around 1pm. :)

from electron-builder.

stefanjudis avatar stefanjudis commented on May 18, 2024

@dietlev

The problem appears already in electron-packager, right?
That's what I noticed - point is that you're missing a package.json in your app folder.

From the electron docs.

Main Process
In Electron, the process that runs package.json's main script is called the main process. The script that runs in the main process can display a GUI by creating web pages.

So with this package.json in root of your dummy demo project ( I updated also electron-packager )

{
  "name": "ElectronTest",
  "version": "1.0.0",
  "description": "",
  "scripts": {
    "dev": "electron ./app",
    "clean": "rm -rf ./dist",
    "clean:osx": "rm -rf ./dist/osx",
    "clean:win": "rm -rf ./dist/win",
    "build": "npm run clean && npm run build:osx && npm run build:win",
    "build:osx": "npm run clean:osx && electron-packager ./app LooplineSystems --out=dist/osx --platform=darwin --arch=x64 --version=0.25.3 --icon=assets/osx/loopline.icns",
    "pack": "npm run pack:osx && npm run pack:win",
    "pack:osx": "npm run build:osx && electron-builder \"dist/osx/LooplineSystems-darwin-x64/LooplineSystems.app\" --platform=osx --out=\"dist/osx\" --config=packager.json"
  },
  "dependencies": {
    "electron-builder": "^2.0.0",
    "electron-packager": "^5.0.0",
    "electron-prebuilt": "^0.35.0"
  }
}

and this dummy package.json in app folder

{
  "name": "app",
  "version": "1.0.0",
  "description": "",
  "main": "index.js",
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1"
  },
  "author": "",
  "license": "MIT"
}

your demo app in development, the .app and .dmg run fine.

I'm closing here - feel free to reopen if you have still troubles.

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.