Comments (6)
Still having problems here?
Will have a look at it today - if so.
from electron-builder.
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.
Cool. 👍
But I shall still check https://github.com/dietlev/electron-build-demo ?
from electron-builder.
Yes, if that's working I can see where the actual app is going wrong
from electron-builder.
okidoki. 👍 I'll have a look around 1pm. :)
from electron-builder.
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)
- Protocol handler registration issues
- Mac Bundle Id is always prefixed with com.electron HOT 1
- NSIS ERROR
- Failed to create dylib symbolic link on Windows HOT 5
- Setting USE_SYSTEM_7ZA environment variable breaks the build
- A JavaScript error occurred in the main process HOT 1
- Splitting nsis-web packages into chunks
- "install-app-deps" Error HOT 1
- Using MAC self signature problem
- `FlatpakOptions.files` has inconsistent type HOT 1
- Confirmation of package safty regarding to recent xz vulnerability HOT 2
- Certificates with special characters are not accepted anymore since electron-updater v1.6.9 HOT 3
- Can't build for Windows under a Windows environment using electron-builder `24.13.3` HOT 3
- Changing default install location is not respected
- productName in the electron builder is not applied.
- Regression in postinstall scripts HOT 11
- Building for Linux Arm64 snap will fail HOT 6
- /home/jenkins' is not owned by you, refusing to create a configuration directory there
- Build with mac M1
- nsis help HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from electron-builder.