mirror of
https://github.com/S2-/gitlit
synced 2025-08-03 04:40:05 +02:00
auto update only on windows
This commit is contained in:
@@ -15,7 +15,8 @@ let repoDir = path.resolve(path.normalize(args._.join(' ')));
|
|||||||
let repoRootDir = repoDir;
|
let repoRootDir = repoDir;
|
||||||
|
|
||||||
//auto update stuff
|
//auto update stuff
|
||||||
setTimeout(() => {
|
if (process.platform === 'win32') {
|
||||||
|
setTimeout(() => {
|
||||||
gau.checkForUpdate({
|
gau.checkForUpdate({
|
||||||
currentVersion: app.getVersion(),
|
currentVersion: app.getVersion(),
|
||||||
repo: 'https://api.github.com/repos/S2-/gitlit/releases/latest',
|
repo: 'https://api.github.com/repos/S2-/gitlit/releases/latest',
|
||||||
@@ -43,7 +44,8 @@ setTimeout(() => {
|
|||||||
event: 'updateInstalling'
|
event: 'updateInstalling'
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}, 5000);
|
}, 5000);
|
||||||
|
}
|
||||||
|
|
||||||
//end update stuff
|
//end update stuff
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user