开源软件名称(OpenSource Name):appreciated/maven-springboot-electron开源软件地址(OpenSource Url):https://github.com/appreciated/maven-springboot-electron开源编程语言(OpenSource Language):JavaScript 57.8%开源软件介绍(OpenSource Introduction):Maven + Springboot + Electron (+ OpenJDK)This project is a starting point to wrap any Java web application (f.e. using Springboot) with Electron as a native executable. For the build process, only Maven is being used. This project contains all the necessary configurations and some placeholder files to get you started. This project was inspired a lot by electron-java-app, but it has some key differences:
Proof of conceptThe purpose of this project was sole of personal interest to show that this concept (Electron -> shipped JDK -> Java Web Application as Jar) is possible. Before taking it into production, you should check your requirements carefully. On one hand, the project is in its current form far from ideal. Electron wastes out of the box a lot of resources on the client-side, shipping an additional JVM and an embedded web server does not make it better (Why would I need a Browser and an OpenJDK just to use a Java Web application as a desktop application?). If it needs to be Java, why not use Swing or JavaFX? But I can imagine some use cases where this could come in handy, f.e. as an in-between solution before migrating to the cloud. How to build
The artifacts from the electron build will be put into:
When using Mac OS or Linux, When using Windows, admin privileges are required to build Shipping OpenJDKSince not all your users have a JVM available via the classpath an OpenJDK 8 will be packed into the electron builds DocumentationBuildWhen executing The rest is currently not supported but adding those shouldn't be too hard but some changes will need to be made at the following files:
Pull requests are welcome |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论