Custom dist output and app dir
See original GitHub issueand create the installers into the packaged directory
I suggest to use defaults — dist
directory. You can set custom using directories.output:
"directories": {
"output": "packaged"
}
The app is built from src using grunt into the build directory.
If your app has native dependencies, I recommend to use Two package.json structure. If no native dependencies, use build.files:
"build": {
"files": "build"
}
So, only build
directory will be included into the packaged app. But! build
is expected to be directory of build resources. So, recommended to use different name, out
for example. Or set directories.buildResources
to custom value.
And don’t forget to read https://github.com/electron-userland/electron-builder#in-short
Issue Analytics
- State:
- Created 7 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Changing the input and output directory in Vite - Stack Overflow
I am using Vite (https://vitejs.dev/) for a static multipage site. This is the default project folder structure after the build command. my-app/ ...
Read more >Setting a custom build directory - next.config.js
You can specify a name to use for a custom build directory to use instead of .next . Open next.config.js and add the...
Read more >Change the build output directory - Visual Studio (Windows)
Type in the path to generate output to (absolute or relative to the root project directory), or choose Browse to browse to that...
Read more >Common Configuration - electron-builder
electronDist String | module:app-builder-lib/out/configuration.__type - Returns the path to custom Electron build (e.g. ~/electron/out/R ).
Read more >Output Management - webpack
In general it's good practice to clean the /dist folder before each build, so that only used files will be generated. Let's take...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@Mercieral Please see https://github.com/electron-userland/electron-builder/issues/551#issuecomment-229638846
Wait. #529 Will be fixed soon, but cannot promise anything.
Both the MAC and Windows installers seem to be working! Thanks again for helping me out!
While it may be more of a question for the squirrel installer people, I do have one more question. On windows 10 I was hoping to have the app installed to be visible under “Programs and Features” with an uninstaller and maybe a desktop shortcut. However it is installed into AppData/local, is not visible by Windows, and doesn’t seem to have an uninstaller (implying that the user would have to manually find the app in AppData/local and delete the files). Is there any way to go about this?
EDIT: I used the nsis installer and that seemed to do exactly what I was expecting, but with that I of course do not get the auto-updater. Any suggestions?