Second, run this command to install these packages at devDependencies npm i -D concurrently electron electron-builder wait-on cross-envĬoncurrently and wait-on: force waiting until server started then open Electron window.Įlectron-builder: distributing Electron app. Install necessary packages and config the package.json fileįirst, run this command to install at dependencies npm i electron-is-devĮlectron-is-dev let you know which environment is running. If you use react-router-dom to handle navigation your web app, notice that BrowserRouter should be replaced by HashRouter since all routing at Electron app hasn’t handled by server-side anymore.Ģ. With firebase auth, we need the localhost domain authorized which we don’t have in desktop mode, so I use method signInAnonymously() instead of signInWithPopup() and change some things in Login.js file to allow user login with the anonymous mode. Some differences when releasing in desktop mode
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |