The HelloWorld demo based on RUI (react-hooks) with Vite 4 and Electron.
RUI contains Mobile web UI components based on React.
npm i
To resolve Electron specific
npm
install issue from China (Mainland), please usecnpm
instead, the registry ofcnpm
:https://registry.npmmirror.com
.npm i cnpm -g
cnpm i electron -D
To resolve Electron build issue (zip-download-timeout) from China (Mainland), please put
electron-vX.Y.Z-darwin-arm64.zip
manually into the cache folder~/Library/Caches/electron/
.
npm start
npm run build
About vite and electron, please check Configuration Reference - vite | electron.