Skip to content

Commit

Permalink
Autoupdater test phase 2
Browse files Browse the repository at this point in the history
  • Loading branch information
nullieee committed Mar 16, 2024
1 parent 436e695 commit 6c1f093
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
10 changes: 4 additions & 6 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
/* Under Construction!
var AutoUpdater = require('auto-updater');

var autoupdater = new AutoUpdater({
pathToJson: 'package.json',
autoupdate: false,
checkgit: true,
jsonhost: 'raw.githubusercontent.com/ufodynasty/PulseHax/master/package.json',
contenthost: 'api.github.com/repos/ufodynasty/PulseHax/releases/latest',
contenthost: 'codeload.github.com/ufodynasty/PulseHax/zip/master',
progressDebounce: 0,
devmode: false
});

console.log(autoupdater)

// State the events
autoupdater.on('git-clone', function() {
console.log("You have a clone of the repository. Use 'git pull' to be up-to-date");
Expand Down Expand Up @@ -56,6 +56,4 @@ autoupdater.on('error', function(name, e) {
});

// Start checking
autoupdater.fire('check');
*/
autoupdater.fire('check');
4 changes: 2 additions & 2 deletions node_modules/auto-updater/package.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
{
"name": "pulsehax",
"version": "1.0.0",
"auto-updater":{
"repo":"/ufodynasty/PulseHax",
"branch":"master"
},
"description": "Hacking pulsus has never been easier",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit 6c1f093

Please sign in to comment.