2018-06-02 00:17:33 +02:00
|
|
|
/*
|
2018-07-24 03:11:56 +02:00
|
|
|
This file is part of FreeTube.
|
2018-06-02 00:17:33 +02:00
|
|
|
|
2018-07-24 03:11:56 +02:00
|
|
|
FreeTube is free software: you can redistribute it and/or modify
|
|
|
|
it under the terms of the GNU General Public License as published by
|
|
|
|
the Free Software Foundation, either version 3 of the License, or
|
|
|
|
(at your option) any later version.
|
2018-06-02 00:17:33 +02:00
|
|
|
|
2018-07-24 03:11:56 +02:00
|
|
|
FreeTube is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU General Public License for more details.
|
2018-06-02 00:17:33 +02:00
|
|
|
|
2018-07-24 03:11:56 +02:00
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
along with FreeTube. If not, see <http://www.gnu.org/licenses/>.
|
2018-06-02 00:17:33 +02:00
|
|
|
*/
|
|
|
|
|
2018-07-24 03:11:56 +02:00
|
|
|
// import {freeTubeLog} from './events.js';
|
2018-06-02 00:17:33 +02:00
|
|
|
|
|
|
|
/*
|
|
|
|
* A file for checking / managing updates
|
|
|
|
*/
|
|
|
|
|
2018-07-24 03:11:56 +02:00
|
|
|
const updateChecker = require('github-version-checker');
|
2018-06-02 00:17:33 +02:00
|
|
|
|
|
|
|
const options = {
|
2018-07-25 04:44:09 +02:00
|
|
|
token: 'PUTUSERTOKENHERE', // personal access token. Github will not allow commiting the access token, which is why this is blank.
|
2018-06-02 00:17:33 +02:00
|
|
|
repo: 'freetube', // repository name
|
|
|
|
owner: 'freetubeapp', // repository owner
|
2018-06-02 05:04:02 +02:00
|
|
|
currentVersion: require('electron').remote.app.getVersion(), // your app's current version
|
2018-06-02 00:17:33 +02:00
|
|
|
fetchTags: false // whether to fetch releases or tags
|
|
|
|
};
|
|
|
|
|
2018-07-24 03:11:56 +02:00
|
|
|
const openReleasePage = function () {
|
|
|
|
shell.openExternal('https://github.com/FreeTubeApp/FreeTube/releases');
|
|
|
|
}
|