question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Custom dist output and app dir

See original GitHub issue

and 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:closed
  • Created 7 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
develarcommented, Jul 11, 2016

@Mercieral Please see https://github.com/electron-userland/electron-builder/issues/551#issuecomment-229638846

do not get the auto-updater. Any suggestions?

Wait. #529 Will be fixed soon, but cannot promise anything.

0reactions
Mercieralcommented, Jul 11, 2016

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?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found