Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Building the app #21

Closed
domialex opened this issue Sep 24, 2020 · 5 comments
Closed

Building the app #21

domialex opened this issue Sep 24, 2020 · 5 comments

Comments

@domialex
Copy link

What would be the correct way to build and bundle with a built .NET application?

@domialex
Copy link
Author

domialex commented Sep 25, 2020

Ah never mind, I guess it could just run the executable in the build folder of the node project.

@ruidfigueiredo
Copy link
Owner

Hi @domialex

That's right, you just have to make sure that you "point" to the right location of the executable when the app is packaged.

One thing that is useful to know is that it is possible to use dotnet publish to create a "self contained" version of your .net app (i.e. whoever installs your app doesn't have to install dotnet).

I've just noticed that there's an option to create a single file with the flag -p:PublishSingleFile=true, might be interesting to try. Although that single file will decompress on first run so I'm not sure if that won't cause any issues.

@domialex
Copy link
Author

domialex commented Sep 25, 2020

The single file publish is useful, but most times will trigger an invisible anti-virus warning in Windows 10, and it won't be able to extract the temporary files. The normal publish is more reliable.

@fairking
Copy link

Hi @domialex
I recently was playing with electron-builder #20 . I wasn't able to create a snap but I created a setup file for windows and also a rpm package for linux.
You can find my demo project here: https://github.com/fairking/electron-cgi-calculator-demo
More info about electron-builder: https://www.electron.build/

@domialex
Copy link
Author

domialex commented Oct 13, 2020

Thanks! I already have all that part figured out (packaging, installer, webpack, react, etc.), I also used electron-builder.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants