![Page 1: Electron - Amazon S3 · 2019-04-25 · dotenorio.com Código Aberto Atom Shell (2013) Electron, MIT e Mantido pelo GitHub (2014)](https://reader034.vdocuments.us/reader034/viewer/2022042417/5f32f7bd57502f609c37457c/html5/thumbnails/1.jpg)
http://bit.ly/electron-tdcdotenorio.com
Electron
![Page 2: Electron - Amazon S3 · 2019-04-25 · dotenorio.com Código Aberto Atom Shell (2013) Electron, MIT e Mantido pelo GitHub (2014)](https://reader034.vdocuments.us/reader034/viewer/2022042417/5f32f7bd57502f609c37457c/html5/thumbnails/2.jpg)
http://bit.ly/electron-tdcdotenorio.com
Fernando M. Tenório@dotenorio
![Page 3: Electron - Amazon S3 · 2019-04-25 · dotenorio.com Código Aberto Atom Shell (2013) Electron, MIT e Mantido pelo GitHub (2014)](https://reader034.vdocuments.us/reader034/viewer/2022042417/5f32f7bd57502f609c37457c/html5/thumbnails/3.jpg)
http://bit.ly/electron-tdcdotenorio.com
JAVASCRIPT,HTML eCSS!!!
![Page 4: Electron - Amazon S3 · 2019-04-25 · dotenorio.com Código Aberto Atom Shell (2013) Electron, MIT e Mantido pelo GitHub (2014)](https://reader034.vdocuments.us/reader034/viewer/2022042417/5f32f7bd57502f609c37457c/html5/thumbnails/4.jpg)
http://bit.ly/electron-tdcdotenorio.com
É fácil!Se você já sabe fazer um site..
![Page 5: Electron - Amazon S3 · 2019-04-25 · dotenorio.com Código Aberto Atom Shell (2013) Electron, MIT e Mantido pelo GitHub (2014)](https://reader034.vdocuments.us/reader034/viewer/2022042417/5f32f7bd57502f609c37457c/html5/thumbnails/5.jpg)
http://bit.ly/electron-tdcdotenorio.com
Mas qual é mágica?
![Page 6: Electron - Amazon S3 · 2019-04-25 · dotenorio.com Código Aberto Atom Shell (2013) Electron, MIT e Mantido pelo GitHub (2014)](https://reader034.vdocuments.us/reader034/viewer/2022042417/5f32f7bd57502f609c37457c/html5/thumbnails/6.jpg)
http://bit.ly/electron-tdcdotenorio.com
Não é mágica, é tecnologia..
![Page 7: Electron - Amazon S3 · 2019-04-25 · dotenorio.com Código Aberto Atom Shell (2013) Electron, MIT e Mantido pelo GitHub (2014)](https://reader034.vdocuments.us/reader034/viewer/2022042417/5f32f7bd57502f609c37457c/html5/thumbnails/7.jpg)
http://bit.ly/electron-tdcdotenorio.com
Tecnologias Web● Chromium● NodeJS● HTML, CSS, Javascript
![Page 8: Electron - Amazon S3 · 2019-04-25 · dotenorio.com Código Aberto Atom Shell (2013) Electron, MIT e Mantido pelo GitHub (2014)](https://reader034.vdocuments.us/reader034/viewer/2022042417/5f32f7bd57502f609c37457c/html5/thumbnails/8.jpg)
http://bit.ly/electron-tdcdotenorio.com
Código Aberto● Atom Shell (2013)● Electron, MIT e Mantido pelo GitHub (2014)
![Page 9: Electron - Amazon S3 · 2019-04-25 · dotenorio.com Código Aberto Atom Shell (2013) Electron, MIT e Mantido pelo GitHub (2014)](https://reader034.vdocuments.us/reader034/viewer/2022042417/5f32f7bd57502f609c37457c/html5/thumbnails/9.jpg)
http://bit.ly/electron-tdcdotenorio.com
Multiplataforma● Mac● Windows● Linux
![Page 10: Electron - Amazon S3 · 2019-04-25 · dotenorio.com Código Aberto Atom Shell (2013) Electron, MIT e Mantido pelo GitHub (2014)](https://reader034.vdocuments.us/reader034/viewer/2022042417/5f32f7bd57502f609c37457c/html5/thumbnails/10.jpg)
http://bit.ly/electron-tdcdotenorio.com
Até as partes difíceis são fáceis
![Page 11: Electron - Amazon S3 · 2019-04-25 · dotenorio.com Código Aberto Atom Shell (2013) Electron, MIT e Mantido pelo GitHub (2014)](https://reader034.vdocuments.us/reader034/viewer/2022042417/5f32f7bd57502f609c37457c/html5/thumbnails/11.jpg)
http://bit.ly/electron-tdcdotenorio.com
É sério!● Atualizações automáticas● Menus nativos & notificações● Relatório de falhas● Depuração & criação de perfil● Instaladores● Windows Store e Mac App Store
![Page 12: Electron - Amazon S3 · 2019-04-25 · dotenorio.com Código Aberto Atom Shell (2013) Electron, MIT e Mantido pelo GitHub (2014)](https://reader034.vdocuments.us/reader034/viewer/2022042417/5f32f7bd57502f609c37457c/html5/thumbnails/12.jpg)
http://bit.ly/electron-tdcdotenorio.com
E muitos outros recursos
![Page 13: Electron - Amazon S3 · 2019-04-25 · dotenorio.com Código Aberto Atom Shell (2013) Electron, MIT e Mantido pelo GitHub (2014)](https://reader034.vdocuments.us/reader034/viewer/2022042417/5f32f7bd57502f609c37457c/html5/thumbnails/13.jpg)
http://bit.ly/electron-tdcdotenorio.com
![Page 14: Electron - Amazon S3 · 2019-04-25 · dotenorio.com Código Aberto Atom Shell (2013) Electron, MIT e Mantido pelo GitHub (2014)](https://reader034.vdocuments.us/reader034/viewer/2022042417/5f32f7bd57502f609c37457c/html5/thumbnails/14.jpg)
http://bit.ly/electron-tdcdotenorio.com
Muitos mesmo..
![Page 15: Electron - Amazon S3 · 2019-04-25 · dotenorio.com Código Aberto Atom Shell (2013) Electron, MIT e Mantido pelo GitHub (2014)](https://reader034.vdocuments.us/reader034/viewer/2022042417/5f32f7bd57502f609c37457c/html5/thumbnails/15.jpg)
http://bit.ly/electron-tdcdotenorio.com
![Page 16: Electron - Amazon S3 · 2019-04-25 · dotenorio.com Código Aberto Atom Shell (2013) Electron, MIT e Mantido pelo GitHub (2014)](https://reader034.vdocuments.us/reader034/viewer/2022042417/5f32f7bd57502f609c37457c/html5/thumbnails/16.jpg)
http://bit.ly/electron-tdcdotenorio.com
Quick Start
![Page 17: Electron - Amazon S3 · 2019-04-25 · dotenorio.com Código Aberto Atom Shell (2013) Electron, MIT e Mantido pelo GitHub (2014)](https://reader034.vdocuments.us/reader034/viewer/2022042417/5f32f7bd57502f609c37457c/html5/thumbnails/17.jpg)
http://bit.ly/electron-tdcdotenorio.com
Só 3 linhas e já temos uma aplicação..
![Page 18: Electron - Amazon S3 · 2019-04-25 · dotenorio.com Código Aberto Atom Shell (2013) Electron, MIT e Mantido pelo GitHub (2014)](https://reader034.vdocuments.us/reader034/viewer/2022042417/5f32f7bd57502f609c37457c/html5/thumbnails/18.jpg)
http://bit.ly/electron-tdcdotenorio.com
Olá Mundo!
![Page 19: Electron - Amazon S3 · 2019-04-25 · dotenorio.com Código Aberto Atom Shell (2013) Electron, MIT e Mantido pelo GitHub (2014)](https://reader034.vdocuments.us/reader034/viewer/2022042417/5f32f7bd57502f609c37457c/html5/thumbnails/19.jpg)
http://bit.ly/electron-tdcdotenorio.com
package.json
![Page 20: Electron - Amazon S3 · 2019-04-25 · dotenorio.com Código Aberto Atom Shell (2013) Electron, MIT e Mantido pelo GitHub (2014)](https://reader034.vdocuments.us/reader034/viewer/2022042417/5f32f7bd57502f609c37457c/html5/thumbnails/20.jpg)
http://bit.ly/electron-tdcdotenorio.com
main.js (1/3)
![Page 21: Electron - Amazon S3 · 2019-04-25 · dotenorio.com Código Aberto Atom Shell (2013) Electron, MIT e Mantido pelo GitHub (2014)](https://reader034.vdocuments.us/reader034/viewer/2022042417/5f32f7bd57502f609c37457c/html5/thumbnails/21.jpg)
http://bit.ly/electron-tdcdotenorio.com
main.js (2/3)
![Page 22: Electron - Amazon S3 · 2019-04-25 · dotenorio.com Código Aberto Atom Shell (2013) Electron, MIT e Mantido pelo GitHub (2014)](https://reader034.vdocuments.us/reader034/viewer/2022042417/5f32f7bd57502f609c37457c/html5/thumbnails/22.jpg)
http://bit.ly/electron-tdcdotenorio.com
main.js (3/3)
![Page 23: Electron - Amazon S3 · 2019-04-25 · dotenorio.com Código Aberto Atom Shell (2013) Electron, MIT e Mantido pelo GitHub (2014)](https://reader034.vdocuments.us/reader034/viewer/2022042417/5f32f7bd57502f609c37457c/html5/thumbnails/23.jpg)
http://bit.ly/electron-tdcdotenorio.com
index.html
![Page 24: Electron - Amazon S3 · 2019-04-25 · dotenorio.com Código Aberto Atom Shell (2013) Electron, MIT e Mantido pelo GitHub (2014)](https://reader034.vdocuments.us/reader034/viewer/2022042417/5f32f7bd57502f609c37457c/html5/thumbnails/24.jpg)
http://bit.ly/electron-tdcdotenorio.com
O app de demos da API Electron
![Page 25: Electron - Amazon S3 · 2019-04-25 · dotenorio.com Código Aberto Atom Shell (2013) Electron, MIT e Mantido pelo GitHub (2014)](https://reader034.vdocuments.us/reader034/viewer/2022042417/5f32f7bd57502f609c37457c/html5/thumbnails/25.jpg)
http://bit.ly/electron-tdcdotenorio.com
Electron pra falar de Electron
![Page 26: Electron - Amazon S3 · 2019-04-25 · dotenorio.com Código Aberto Atom Shell (2013) Electron, MIT e Mantido pelo GitHub (2014)](https://reader034.vdocuments.us/reader034/viewer/2022042417/5f32f7bd57502f609c37457c/html5/thumbnails/26.jpg)
http://bit.ly/electron-tdcdotenorio.com
E tem como ficar mais fácil ainda..
![Page 27: Electron - Amazon S3 · 2019-04-25 · dotenorio.com Código Aberto Atom Shell (2013) Electron, MIT e Mantido pelo GitHub (2014)](https://reader034.vdocuments.us/reader034/viewer/2022042417/5f32f7bd57502f609c37457c/html5/thumbnails/27.jpg)
http://bit.ly/electron-tdcdotenorio.com
Não é um IDE - porém um excelente ponto de partida
![Page 28: Electron - Amazon S3 · 2019-04-25 · dotenorio.com Código Aberto Atom Shell (2013) Electron, MIT e Mantido pelo GitHub (2014)](https://reader034.vdocuments.us/reader034/viewer/2022042417/5f32f7bd57502f609c37457c/html5/thumbnails/28.jpg)
http://bit.ly/electron-tdcdotenorio.com
Alt + Tab
![Page 29: Electron - Amazon S3 · 2019-04-25 · dotenorio.com Código Aberto Atom Shell (2013) Electron, MIT e Mantido pelo GitHub (2014)](https://reader034.vdocuments.us/reader034/viewer/2022042417/5f32f7bd57502f609c37457c/html5/thumbnails/29.jpg)
http://bit.ly/electron-tdcdotenorio.com
ipcMain & ipcRenderer
![Page 30: Electron - Amazon S3 · 2019-04-25 · dotenorio.com Código Aberto Atom Shell (2013) Electron, MIT e Mantido pelo GitHub (2014)](https://reader034.vdocuments.us/reader034/viewer/2022042417/5f32f7bd57502f609c37457c/html5/thumbnails/30.jpg)
http://bit.ly/electron-tdcdotenorio.com
main.js index.html
Troca de mensagens entre os processos
![Page 31: Electron - Amazon S3 · 2019-04-25 · dotenorio.com Código Aberto Atom Shell (2013) Electron, MIT e Mantido pelo GitHub (2014)](https://reader034.vdocuments.us/reader034/viewer/2022042417/5f32f7bd57502f609c37457c/html5/thumbnails/31.jpg)
http://bit.ly/electron-tdcdotenorio.com
No processo principal (Backend)
![Page 32: Electron - Amazon S3 · 2019-04-25 · dotenorio.com Código Aberto Atom Shell (2013) Electron, MIT e Mantido pelo GitHub (2014)](https://reader034.vdocuments.us/reader034/viewer/2022042417/5f32f7bd57502f609c37457c/html5/thumbnails/32.jpg)
http://bit.ly/electron-tdcdotenorio.com
No processo filho (Frontend)
![Page 33: Electron - Amazon S3 · 2019-04-25 · dotenorio.com Código Aberto Atom Shell (2013) Electron, MIT e Mantido pelo GitHub (2014)](https://reader034.vdocuments.us/reader034/viewer/2022042417/5f32f7bd57502f609c37457c/html5/thumbnails/33.jpg)
http://bit.ly/electron-tdcdotenorio.com
Alt + Tab
![Page 34: Electron - Amazon S3 · 2019-04-25 · dotenorio.com Código Aberto Atom Shell (2013) Electron, MIT e Mantido pelo GitHub (2014)](https://reader034.vdocuments.us/reader034/viewer/2022042417/5f32f7bd57502f609c37457c/html5/thumbnails/34.jpg)
http://bit.ly/electron-tdcdotenorio.com
Aplicações famosas feitas com Electron
![Page 35: Electron - Amazon S3 · 2019-04-25 · dotenorio.com Código Aberto Atom Shell (2013) Electron, MIT e Mantido pelo GitHub (2014)](https://reader034.vdocuments.us/reader034/viewer/2022042417/5f32f7bd57502f609c37457c/html5/thumbnails/35.jpg)
http://bit.ly/electron-tdcdotenorio.com
Atom (O primeiro)
![Page 36: Electron - Amazon S3 · 2019-04-25 · dotenorio.com Código Aberto Atom Shell (2013) Electron, MIT e Mantido pelo GitHub (2014)](https://reader034.vdocuments.us/reader034/viewer/2022042417/5f32f7bd57502f609c37457c/html5/thumbnails/36.jpg)
http://bit.ly/electron-tdcdotenorio.com
Skype
![Page 37: Electron - Amazon S3 · 2019-04-25 · dotenorio.com Código Aberto Atom Shell (2013) Electron, MIT e Mantido pelo GitHub (2014)](https://reader034.vdocuments.us/reader034/viewer/2022042417/5f32f7bd57502f609c37457c/html5/thumbnails/37.jpg)
http://bit.ly/electron-tdcdotenorio.com
discord
![Page 38: Electron - Amazon S3 · 2019-04-25 · dotenorio.com Código Aberto Atom Shell (2013) Electron, MIT e Mantido pelo GitHub (2014)](https://reader034.vdocuments.us/reader034/viewer/2022042417/5f32f7bd57502f609c37457c/html5/thumbnails/38.jpg)
http://bit.ly/electron-tdcdotenorio.com
Visual Studio Code
![Page 39: Electron - Amazon S3 · 2019-04-25 · dotenorio.com Código Aberto Atom Shell (2013) Electron, MIT e Mantido pelo GitHub (2014)](https://reader034.vdocuments.us/reader034/viewer/2022042417/5f32f7bd57502f609c37457c/html5/thumbnails/39.jpg)
http://bit.ly/electron-tdcdotenorio.com
Slack
![Page 40: Electron - Amazon S3 · 2019-04-25 · dotenorio.com Código Aberto Atom Shell (2013) Electron, MIT e Mantido pelo GitHub (2014)](https://reader034.vdocuments.us/reader034/viewer/2022042417/5f32f7bd57502f609c37457c/html5/thumbnails/40.jpg)
http://bit.ly/electron-tdcdotenorio.com
Aplicações nem tão famosas assim..
![Page 41: Electron - Amazon S3 · 2019-04-25 · dotenorio.com Código Aberto Atom Shell (2013) Electron, MIT e Mantido pelo GitHub (2014)](https://reader034.vdocuments.us/reader034/viewer/2022042417/5f32f7bd57502f609c37457c/html5/thumbnails/41.jpg)
http://bit.ly/electron-tdcdotenorio.com
Clipboard Manager Electron http://bit.ly/clipboard-manager-electron
![Page 42: Electron - Amazon S3 · 2019-04-25 · dotenorio.com Código Aberto Atom Shell (2013) Electron, MIT e Mantido pelo GitHub (2014)](https://reader034.vdocuments.us/reader034/viewer/2022042417/5f32f7bd57502f609c37457c/html5/thumbnails/42.jpg)
http://bit.ly/electron-tdcdotenorio.com
ShowMyScreenhttp://bit.ly/showmyscreen-electron
![Page 43: Electron - Amazon S3 · 2019-04-25 · dotenorio.com Código Aberto Atom Shell (2013) Electron, MIT e Mantido pelo GitHub (2014)](https://reader034.vdocuments.us/reader034/viewer/2022042417/5f32f7bd57502f609c37457c/html5/thumbnails/43.jpg)
http://bit.ly/electron-tdcdotenorio.com
Windows 95http://bit.ly/windows95-electron
![Page 44: Electron - Amazon S3 · 2019-04-25 · dotenorio.com Código Aberto Atom Shell (2013) Electron, MIT e Mantido pelo GitHub (2014)](https://reader034.vdocuments.us/reader034/viewer/2022042417/5f32f7bd57502f609c37457c/html5/thumbnails/44.jpg)
http://bit.ly/electron-tdcdotenorio.com
Distribuição de Aplicativos
![Page 45: Electron - Amazon S3 · 2019-04-25 · dotenorio.com Código Aberto Atom Shell (2013) Electron, MIT e Mantido pelo GitHub (2014)](https://reader034.vdocuments.us/reader034/viewer/2022042417/5f32f7bd57502f609c37457c/html5/thumbnails/45.jpg)
http://bit.ly/electron-tdcdotenorio.com
Ferramentas de empacotamento● electron-forge● electron-builder● electron-packager
![Page 46: Electron - Amazon S3 · 2019-04-25 · dotenorio.com Código Aberto Atom Shell (2013) Electron, MIT e Mantido pelo GitHub (2014)](https://reader034.vdocuments.us/reader034/viewer/2022042417/5f32f7bd57502f609c37457c/html5/thumbnails/46.jpg)
http://bit.ly/electron-tdcdotenorio.com
electron-packager$ electron-packager . clipboard-manager-electron--overwrite--platform=win32--arch=ia32--prune=true--out=dist--version-string.CompanyName=dotenorio--version-string.FileDescription='clipboard-manager-electron'--version-string.ProductName='clipboard-manager-electron'--icon=\"icons/icon.ico\"--asar
![Page 47: Electron - Amazon S3 · 2019-04-25 · dotenorio.com Código Aberto Atom Shell (2013) Electron, MIT e Mantido pelo GitHub (2014)](https://reader034.vdocuments.us/reader034/viewer/2022042417/5f32f7bd57502f609c37457c/html5/thumbnails/47.jpg)
http://bit.ly/electron-tdcdotenorio.com
Ferramentas para criar instaladores● electron-installer-windows● electron-installer-dmg● electron-installer-snap● etc..
![Page 48: Electron - Amazon S3 · 2019-04-25 · dotenorio.com Código Aberto Atom Shell (2013) Electron, MIT e Mantido pelo GitHub (2014)](https://reader034.vdocuments.us/reader034/viewer/2022042417/5f32f7bd57502f609c37457c/html5/thumbnails/48.jpg)
http://bit.ly/electron-tdcdotenorio.com
Problemas
![Page 49: Electron - Amazon S3 · 2019-04-25 · dotenorio.com Código Aberto Atom Shell (2013) Electron, MIT e Mantido pelo GitHub (2014)](https://reader034.vdocuments.us/reader034/viewer/2022042417/5f32f7bd57502f609c37457c/html5/thumbnails/49.jpg)
http://bit.ly/electron-tdcdotenorio.com
Desculpa, eu não queria falar sobre isso :(● Demora para abrir● Muito grande● Quer uma versão para Linux? Faça o build no Linux. (O mesmo serve para
Windows e macOS)● Falta suporte a atualizações Delta● Segurança (arquivos .asar)
Leia mais:https://hackernoon.com/electron-the-bad-parts-2b710c491547https://medium.com/commitlog/electron-is-cancer-b066108e6c32
![Page 50: Electron - Amazon S3 · 2019-04-25 · dotenorio.com Código Aberto Atom Shell (2013) Electron, MIT e Mantido pelo GitHub (2014)](https://reader034.vdocuments.us/reader034/viewer/2022042417/5f32f7bd57502f609c37457c/html5/thumbnails/50.jpg)
http://bit.ly/electron-tdcdotenorio.com
Minha opinião!
![Page 51: Electron - Amazon S3 · 2019-04-25 · dotenorio.com Código Aberto Atom Shell (2013) Electron, MIT e Mantido pelo GitHub (2014)](https://reader034.vdocuments.us/reader034/viewer/2022042417/5f32f7bd57502f609c37457c/html5/thumbnails/51.jpg)
http://bit.ly/electron-tdcdotenorio.com
Não é bom para aplicações pequenas!!
![Page 52: Electron - Amazon S3 · 2019-04-25 · dotenorio.com Código Aberto Atom Shell (2013) Electron, MIT e Mantido pelo GitHub (2014)](https://reader034.vdocuments.us/reader034/viewer/2022042417/5f32f7bd57502f609c37457c/html5/thumbnails/52.jpg)
http://bit.ly/electron-tdcdotenorio.com
Cuidado com o ipc..
![Page 53: Electron - Amazon S3 · 2019-04-25 · dotenorio.com Código Aberto Atom Shell (2013) Electron, MIT e Mantido pelo GitHub (2014)](https://reader034.vdocuments.us/reader034/viewer/2022042417/5f32f7bd57502f609c37457c/html5/thumbnails/53.jpg)
http://bit.ly/electron-tdcdotenorio.com
Aproveite bem as APIs para criar uma boa experiência para seu usuário.
![Page 54: Electron - Amazon S3 · 2019-04-25 · dotenorio.com Código Aberto Atom Shell (2013) Electron, MIT e Mantido pelo GitHub (2014)](https://reader034.vdocuments.us/reader034/viewer/2022042417/5f32f7bd57502f609c37457c/html5/thumbnails/54.jpg)
http://bit.ly/electron-tdcdotenorio.com
Faça Build (CI/CD) e Update automáticos!
![Page 55: Electron - Amazon S3 · 2019-04-25 · dotenorio.com Código Aberto Atom Shell (2013) Electron, MIT e Mantido pelo GitHub (2014)](https://reader034.vdocuments.us/reader034/viewer/2022042417/5f32f7bd57502f609c37457c/html5/thumbnails/55.jpg)
http://bit.ly/electron-tdcdotenorio.com
“Geralmente não precisamos do Electron, a gente usa porque é legal” (Zonetti)
![Page 56: Electron - Amazon S3 · 2019-04-25 · dotenorio.com Código Aberto Atom Shell (2013) Electron, MIT e Mantido pelo GitHub (2014)](https://reader034.vdocuments.us/reader034/viewer/2022042417/5f32f7bd57502f609c37457c/html5/thumbnails/56.jpg)
http://bit.ly/electron-tdcdotenorio.com
Use, é legal mesmo...
![Page 57: Electron - Amazon S3 · 2019-04-25 · dotenorio.com Código Aberto Atom Shell (2013) Electron, MIT e Mantido pelo GitHub (2014)](https://reader034.vdocuments.us/reader034/viewer/2022042417/5f32f7bd57502f609c37457c/html5/thumbnails/57.jpg)
http://bit.ly/electron-tdcdotenorio.com
Obrigado!Perguntas?