Using the latest version of uaup + node 14.16.1 I get
UnhandledPromiseRejectionWarning: ReferenceError: fetch is not defined
at GetUpdateVersion (D:\Dektop\test\node_modules\uaup-js\index.js:150:5
The following code should be sufficient to replicate this issue
const uaup = require('uaup-js');
let updateOptions = {
gitRepo: "windows-sub4sub-client", // [Required] Your Repo Name
gitUsername: "cezarlacatus", // [Required] Your GitHub Username.
appName: "sub4sub-client", //[Required] The Name of the app archive and the app folder.
appExecutableName: "sub4sub-client.exe", //[Required] The Executable of the Application to be Run after updating.
};
let isUpdateAvalible = uaup.CheckForUpdates(updateOptions);
if(isUpdateAvalible){
console.log("Update found! Downloading..")
uaup.Update(updateOptions);
}else{
console.log("No updates found...")
}
Also some lybraries are obsolete so I really hope that this project will still be maintained as it is verry good
Using the latest version of uaup + node 14.16.1 I get
UnhandledPromiseRejectionWarning: ReferenceError: fetch is not defined
at GetUpdateVersion (D:\Dektop\test\node_modules\uaup-js\index.js:150:5
The following code should be sufficient to replicate this issue
Also some lybraries are obsolete so I really hope that this project will still be maintained as it is verry good