简体   繁体   English

是否可以将电子应用程序转换为网络应用程序?

[英]Is it possible to convert an electron app to a web app?

As far as I understand: 据我所理解:

Electron allows a javascript/html/css app to use web technologies in a desktop environment. Electron允许javascript / html / css应用程序在桌面环境中使用网络技术。
What I have also found is that most web apps can be converted to a desktop app using electron. 我还发现,大多数网络应用都可以使用电子转换为桌面应用。
My real goal is to do so with either vscode or atom. 我的真正目标是使用vscode或atom做到这一点。 The reason is that I really like both of them, and would like to run them on an android device. 原因是我真的很喜欢他们两个,并且想在Android设备上运行它们。

What I have already tried: 我已经尝试过的:

atom-in-orbit and here are my steps and the errors thrown: 原子在轨 ,这是我的步骤以及抛出的错误:
1. Clone commit/version 089fa92117f5d0ead54b56ee208a2baa24d9c4e2 of atom because of it's definition in line 49 of build.js 1.克隆commit / version 089fa92117f5d0ead54b56ee208a2baa24d9c4e2的atom,因为它在build.js的第49行中已定义
2. Attempt to build and get an "ENOENT"(Previously posted about here ) error about the patching part on lines 50 and 56 of build.js 2.尝试构建并获取有关build.js第50和56行的修补部分的“ ENOENT”(先前在此处发布)错误。
3. Patch these manually with the patches in patches/src 3.使用patch / src中的补丁手动修补这些补丁
4. Try the build process again and, again get another error about the missing node modules in the atom src. 4.再次尝试构建过程,再次得到关于原子src中缺少的节点模块的另一个错误。
5. Attempt to run the build process in the atom source, because this installs all the modules that atom is dependent of, and I got an error here about the apm installation the particular errors can be found here 5.尝试在atom源中运行构建过程,因为这会安装atom依赖的所有模块,并且我在这里遇到关于apm安装的错误,可以在此处找到特定的错误

npm ERR! git clone --template=C:\Users\username\AppData\Roaming\npm-cache\_git-remotes\_templates --mirror    

After this I did not try anything else with atom-in-orbit 在此之后,我再也没有尝试过原子轨道

Apart from that, to be honest I have never developed a web app and have never touched javascript or html or even really looked at css for a long time. 除此之外,老实说,我从未开发过Web应用程序,也从未接触过javascript或html,甚至很长一段时间都没有真正看过CSS。
With vscode I was never even able to compile this into an electron app in the first place. 使用vscode,我什至从未将它最初编译成电子应用程序。

My question(s) 我的问题

Is it possible to convert an electron app into a web app. 是否可以将电子应用程序转换为网络应用程序。
How does atom-in-orbit work inside to try to replicate this behavior. 原子在轨内部如何工作以尝试复制此行为。
Have I just done some blind research and missed a atom-for-android or vscode-for-android app? 我是否刚刚进行了一些盲目研究,却错过了针对Android的原子或针对Android的vscode的应用程序? Edit: Also, could phonegap be used to try this? 编辑:另外,可以使用phonegap尝试一下吗? Thanks, any help is always appreciated! 谢谢,任何帮助总是感激不尽!

The answer is, it strongly depends on applications. 答案是,它很大程度上取决于应用程序。

As you already found out, Electron is the technology based on web platform. 您已经发现,Electron是基于Web平台的技术。 Some small Electron apps like Todoapp (eg. https://github.com/jaystack/repatch-example-electron-app ) are almost the same as the web, so you can tweak some in /src and get it work easily on web as well. 一些像Todoapp这样的小型Electron应用程序(例如https://github.com/jaystack/repatch-example-electron-app )与网络几乎相同,因此您可以在/src一些调整,使其在网络上轻松运行也一样 However, some other massive applications like VSCode or Atom are not always the same. 但是,其他一些大型应用程序(例如VSCode或Atom)并不总是相同的。 You might need to dig into and tweak source codes a lot in order to port it into web. 您可能需要深入研究和调整源代码,才能将其移植到Web中。 If you read and write JavaScript, you can do that, it would be a hardship though. 如果您阅读和编写JavaScript,就可以做到,但这将是一件困难的事。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 将网络应用转换为移动应用 - Convert web app into mobile app Electron js 未渲染反应构建 web 应用程序 - Electron js not rendering react built web app 是否可以将Dashcode Webkit Web应用程序转换为“普通”的html + css - Is it possible to convert a Dashcode Webkit Web app to “normal” html + css Web应用程序是否可以松耦合? - Is loose coupling possible for a web app? 可以使用 Java 和 Electron JS 创建桌面应用程序吗? - It is possible to create a Desktop app using Java and Electron JS? 是否可以将远程文件从Electron App拖到文件系统上? - Is it possible to drag a remote file out of Electron App onto the file system? 是否可以通过提供路径将文件从 Electron 应用程序发送到 Express 服务器? - Is it possible to send a file from Electron app to Express server by providing the path? 是否可以在没有节点集成设置为 true 的情况下访问 electron 应用程序中的节点? - Is it possible to access node in an electron app without node integration set to true? 是否可以在一个可执行文件中嵌入Electron应用程序和数据文件? - Is it possible to embed an Electron app and a data's file in a single executable? 是否可以访问发布版Electron应用程序的主窗口? - Is it possible to access the main window of a release-built Electron app?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM