electron-basic-updater
electron-basic-updater copied to clipboard
Electron 1.2.1: Cannot find module 'app'
Constantly getting "Cannot find module 'app'" whenever require('electron-basic-updater')
is called.
Because of the changes to Electron 1.2.1, this works:
const Application = require('electron').app;
const AppPath = Application.getAppPath() + '/';
Hi, i`m fixed this bug from pull-request #3
Hello i have the same issue and i have const app = require('electron').app; version electron : 1.7
@M4kaveli I gave pull request with fixing this problem 1 year ago, but @TamkeenLMS didn`t create new version in npm. This is bad(
@Slauta :( did you found another app like this?
@M4kaveli Yes, i maked new а bike =) But, i use electron-builder and electron-update now, it is very simply.
Docs
Config electron-updater for a private
Thanks for your help ! I also tried electron autoUpdate but i need one app that download on private url (no github) and download as zip extract. Can i do this with autoUpdate ?
Best regards
@M4kaveli You can build nsis app with electron builder (example: nsis for windows, dmg for Mac) and you can setup local server for updates (ex. https://github.com/zeit/hazel/blob/master/readme.md)
Sent with GitHawk