Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Deploying Electron at Wagon

Deploying Electron at Wagon

Matt DeLand walks through how Wagon deploys it's Electron based SQL editor for Mac, Windows, and on the web.

Avatar for Jeff Weinstein

Jeff Weinstein

January 30, 2016

More Decks by Jeff Weinstein

Other Decks in Technology

Transcript

  1. Wagon is a modern SQL editor 1.  write SQL 2. 

    visualize results 3.  share data & charts
  2. Updating Wagon using Electron Let’s ship Mac and Windows app

    updates silently and safely. 1.  Electron update flow 2.  Squirrel library 3.  Mac and Windows differences 4.  Advanced maneuvers
  3. auto-updater module 1.  Checks for updates 2.  Downloads assets 3. 

    Installs binary • Built on Squirrel • Super easy to setup
  4. Responding to updater events • auto-updater emits events • Customize app update

    behavior • We bounce the icon and trigger notification
  5. BYOS • You have to provide the server response. • Mac • 

    200 or new version info • Windows •  Always replies with latest version info • Poll for updates or let the user check explicitly
  6. Rolling app deploys • Specific JS version served per client version

    • Version map allows for hotfix JS updates
  7. Advanced maneuvers • JS served via CloudFront • Same JS codebase for

    desktop and web • Auto-updater for internal testing • CircleCI + AppVeyor for builds • Don’t forget to code sign!
  8. What’s next • Incremental deploys • Cache JS app locally, only fetch

    on changes • Fancier UI for new version available