👉 Check out the new SDK we are working on.
The app has two parts.
- The client part. That's the frontend of the app that is done in React. Client is distributed through the CDN
https://client.usedevbook.com/<version>
. The electron part then loads it's content from this URL. Theversion
in the URL must match the version of the app. - The electron part. This is the actual app that is turned into binary format and distributed into users' machines.
- Run
npm run start:inspect
command. - Open Google Chrome and go to the
chrome://inspect/#devices
location. - Under the "Remote Targets" section click on the "inspect" under the "Target (v14.16.x) electron/js2c/browser_init" device.
- If you want to unpause the app (
--inspect-brk
flag paused it) go to the "Sources" page in the opened Dev Tools and click on the "Resume script execution" button. - You can now profile and inspect the running app.
We use ToDesktop for building and releasing.
Run npm run build:electron
to build macOS, Windows, and Linux versions WITHOUT CODE SIGNING. The code signing takes cca 15 minutes, so you don't want to code sign if you are just testing the build. You won't be able to release this build.
Run npm run build:electron:prod
to build macOS, Windows, and Linux versions WITH CODE SIGNING.
Go to https://app.todesktop.com/apps/2102273jsy18baz, and click on the "Release" button in the corresponding successful build.
npm run start
You must deploy the client and electron part separately.
- Bundle client
npm run bundle:client:staging
- Deploy client to the staging CDN
npm run deploy:client:staging
- Build electron (unsigned build)
npm run build:electron:staging
- Download the build from ToDesktop
You must deploy the client and electron part separately.
- Bundle client
npm run bundle:client:prod
- Deploy client to the production CDN
npm run deploy:client:prod
- Build electron (signed build)
npm run build:electron:prod
- Download the build from ToDesktop