-
Notifications
You must be signed in to change notification settings - Fork 28
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
feat(desktop): electron integration #14
Comments
Hey @JayKan do you think we could stick with |
For demonstration and simplicity purpose, we can add additional |
I have limited experience with both of them so I can't really express myself. I would say that if you think that using webpack would be the best overall approach, I would follow that, but if you feel it's better to start off with gulp it's equally good for me :) |
What you can do first is to outline and understand what
Please take a close look at the build files from So at a high level, Anyways, it doesn't really matter which build tools we should adopt whether its |
Thanks for the rich overview. Let me give it a try and let's see what I come up with. |
Hi again @JayKan. As far as you know when we pack |
Yes you should init a new
|
I am pretty sure I tried to run the built index.html just by double clicking it and I received an error. Are you able to run it without a server? |
Hmm I have not tried yet. But here is a good resource I've found that you can potentially mimic: https://github.com/auth0-blog/angular2-electron The key thing is the |
Ok don't worry tomorrow I will do some other tests. I am not at the pc right now so I cannot share with you the details of the error I was getting but I think it was unique to this setup. I will keep you posted! |
For sure @damnko, keep me posted and good luck 👍 |
I think I will be able to send you a PR tomorrow or on Monday. Everything seems to work, I just need to clean things up and write some comments! |
Which part was tricky about it? I am asking because we want to make AppImage as easy as possible - both for users and developers. Here is an overview of projects that are already distributing upstream-provided, official AppImages. Many of the Electron-based projects use electron-builder which can generate AppImages natively (in fact, it is the default for Linux). |
Hi @probonopd thanks for passing by! I think the issues I was having were only related to being the first time approaching Electron. In the latest PR I pushed I used |
|
Ok thanks for your suggestion, I will look into migrating to |
I stand corrected: As I learned today, one can use a combination of Electron Packager and electron-builder. Please see https://github.com/electron-userland/electron-builder#pack-only-in-a-distributable-format. Thanks @develar. |
Thanks a lot for dropping by and providing such valuable feedback on |
@damnko,
Let's keep track all
electron
related integration questions here.Please take a look at angular-seed-advanced (https://github.com/NathanWalker/angular-seed-advanced) project for
electron
integration. Basically, we can follow the advanced-seed project similarly forDesktop
integration. Moving forward, we can also integrateIonic2
,NativeScript
and etc.The text was updated successfully, but these errors were encountered: