electron-basic-updater icon indicating copy to clipboard operation
electron-basic-updater copied to clipboard

Electron 1.2.1: Cannot find module 'app'

Open thinkdj opened this issue 8 years ago • 8 comments

Constantly getting "Cannot find module 'app'" whenever require('electron-basic-updater') is called.

thinkdj avatar Sep 01 '16 13:09 thinkdj

Because of the changes to Electron 1.2.1, this works:

    const Application = require('electron').app;
    const AppPath = Application.getAppPath() + '/';

thinkdj avatar Sep 01 '16 13:09 thinkdj

Hi, i`m fixed this bug from pull-request #3

Slauta avatar Apr 11 '17 13:04 Slauta

Hello i have the same issue and i have const app = require('electron').app; version electron : 1.7

daflav avatar Mar 15 '18 15:03 daflav

@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 avatar Mar 15 '18 15:03 Slauta

@Slauta :( did you found another app like this?

daflav avatar Mar 15 '18 18:03 daflav

@M4kaveli Yes, i maked new а bike =) But, i use electron-builder and electron-update now, it is very simply.

Docs

  1. Electron autoUpdate
  2. Electron builder

Config electron-updater for a private

  1. Github How to config electron-updater for a private GitHub Repo
  2. Gitlab Use gitlab.com private repository example

Slauta avatar Mar 15 '18 19:03 Slauta

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

daflav avatar Mar 15 '18 19:03 daflav

@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

Slauta avatar Mar 15 '18 21:03 Slauta