目錄
- 前言
- 替代品一覽
- C# (.Net)
- C++
- Dart
- Go
- Java
- JS
- Python
- sciter測驗
前言
Electron是基于 Node.js 和 Chromium的,可以把前端代碼打包成桌面應用的工具,使得JavaScript, HTML和CSS跨平臺部署,
但是由于各種原因,不夠精巧,體積太大,資源獨占,發布不便,原始碼保護做的不好等等,所以不適用于某些場合,
最近要做嵌入式上位機開發,于是挨個測驗一下,
替代品一覽
發現 electron其實有超多替代品的,來源參考Electron替代一覽:
C# (.Net)
| 名稱 | 備注 |
|---|---|
| Orleans | 分布式,云服務可用于物聯網,更新不算勤 |
| Avalonia | 更多功能需要付費 |
| Uno | (Pixel-Perfect Multi-Platform Applications with C# and WinUI) |
| Chromely | (Build HTML Desktop Apps on .NET/.NET Core/.NET 5 using native GUI, HTML5, JavaScript, CSS) |
C++
| 名稱 | 備注 |
|---|---|
| Qt | ** |
| wxWidgets | ** |
| sciter | 可用于嵌入式 |
| Ultralight | 語言介面豐富,輕量,但不知道對嵌入式的支持如何(9-15MB) |
Dart
| 名稱 | 備注 |
|---|---|
| flutter | 移動應用開發,暫不考慮 |
Go
| 名稱 | 備注 |
|---|---|
| lorca | 5-10MB |
| wails | Vue、Vuetify、React 前端支持,系結簡單 |
| muon | 輕量、運行時占用低 |
Java
| 名稱 | 備注 |
|---|---|
| Swing | |
| JavaFX |
JS
| 名稱 | 備注 |
|---|---|
| NW.js | (Similar to electron, provides Source code protection) |
| DeskGap | (bundles a Node.js runtime and leaves the HTML rendering to the operating system‘s webview) |
| Neutralinojs | (chromium module is replaced with either user’s web browser or built-in browser component. Node run-time is replaced with a lightweight web server which exposes native OS functionality) |
| Proton Native | (does the same to desktop that React Native did to mobile, based on https://github.com/parro-it/libui-node) |
| React Native Desktop | (Cross-platform React Native Desktop port based on Qt framework) |
| Vuido | (creating native desktop applications based on Vue.js, based on https://github.com/parro-it/libui-node) |
| NodeGui | (powered by Qt5, [NodeGui-React] |
| reactxp | (library for cross-platform app development using React and React Native) |
| quasar | (Vue.js based framework, which lets web developer to quickly create responsive websites/apps) |
| nidium | |
| electrino | |
| graffiti | |
| Tauri | |
| Sciter.JS | (Is a 5MB HTML/CSS/JS (ES6) runtime aimed as a direct Electron replacement) |
Python
| 名稱 | 備注 |
|---|---|
| PyQt | |
| Kivy | 支持嵌入式 |
| PyGUI | |
| wxPython | |
| Tkinter | |
| pywebview |
其他的就暫且不說了,
sciter測驗
在官網下載sciterJS的sdk,閱讀doc目錄下的檔案,
檔案不支持中文,開發需要對照他的檔案來寫,
不保護原始碼,支持C API,所以在跨平臺環境下效果不錯,
使用的quickJS作為引擎,輕量,
官方給的例子是windows平臺的,linux下13~19MB,
"bin/windows/x32/scapp.exe" "samples/calc/index.html"
如要使用,最好后臺用c開發,
看了一下對React是可以支持的,

轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/348499.html
標籤:其他
