MCPcopy Create free account
hub / github.com/GooseMod/OpenAsar / HostLinux

Class HostLinux

src/updater/moduleUpdater.js:75–92  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

73 }
74
75 host = process.platform === 'linux' ? new (class HostLinux extends require('events').EventEmitter {
76 setFeedURL(url) {
77 this.url = url;
78 }
79
80 checkForUpdates() {
81 req(this.url).then(([ r, b ]) => {
82 if (r.statusCode === 204) return this.emit('update-not-available');
83
84 this.emit('update-manually', b);
85 });
86 }
87
88 quitAndInstall() {
89 app.relaunch();
90 app.quit();
91 }
92 })() : autoUpdater;
93
94
95 host.on('update-progress', progress => events.emit('downloading-module', { name: 'host', progress }));

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected