mirror of
https://github.com/chylex/TweetDuck.git
synced 2025-05-14 11:34:08 +02:00
Make updates search for .Update.exe file to allow for smaller and faster updates
This commit is contained in:
parent
fd97c20d37
commit
8bf4789646
@ -4,6 +4,11 @@
|
||||
//
|
||||
var updateCheckTimeoutID;
|
||||
|
||||
//
|
||||
// Constant: Update exe file name.
|
||||
//
|
||||
const updateFileName = $TD.brandName+".Update.exe";
|
||||
|
||||
//
|
||||
// Function: Creates the update notification element. Removes the old one if already exists.
|
||||
//
|
||||
@ -108,7 +113,8 @@
|
||||
var tagName = response.tag_name;
|
||||
|
||||
if (tagName !== $TD.versionTag && tagName !== $TD.dismissedVersionTag && response.assets.length > 0){
|
||||
createUpdateNotificationElement(tagName,response.assets[0].browser_download_url);
|
||||
var obj = response.assets.find(asset => asset.name === updateFileName) || assets[0];
|
||||
createUpdateNotificationElement(tagName,obj.browser_download_url);
|
||||
}
|
||||
});
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user