mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-13 16:18:42 +00:00
[publish binaries] Cumulative changes from RC3018bd404eFTMS: Add support for Spin Down Calibration (#4073)4f97bae97DOB - display using 4 digits yeardfeb8532amacOS plist - Add required BTLE keys for newer versions2a99c8762Python 3.7.15 AppImage is no longer available, upgrade to 3.7.16 (#4299)0296693ddWorkout Chart - Imperial units support (#4232)8919eab5bMap Chart - Update default Tile Servers7d0e6de0bBug Fixes for live map base url and remove erroneous debug message (#3901)1c5bbecf1Train - Improve L/R Balance Dial display8e0b0a67aR/Python API - Sport case insensitive in Athlete Zonesb08e662c9Train - Show lap notifications only when available2c3eabdd8RideCache - Fix refresh to inclu=de the oldest activity9c7d1d4f3Strava Sync - Tag simulation rides as VirtualRide53f8f5102Fix memory leak in Python API - part 2e477b05a9ErgDB Download - Decode title to be used as name3a16d1eccKeep Perspective Selecto synced when switching athletes63d13ba9eUpdate Italian translationf947b6bd3VideoSync - Distance scaling only applies to CRS workouts67962bfffFix memory leak in Python API5f22d12a6fix(doc): mention QMAKE_MOVE requirement for bison > 3.7996ee63cdRemove MapQuest API Key from gcconfig.pri.ina7ad1346eMeasures CSV Import - Last field can be empty90172a4a6Replace Tracker in default Trends layout68b70e0e4Fix Elevation - Avoid 302 network error434580ee8Disable execution of Python DPs from formulas and Python APIcb23914a5Honor chart filters in Trends view Histogram and CP charts (#4287)1941b9af7Minimum bison version is now 2.7
197 lines
6.0 KiB
C++
197 lines
6.0 KiB
C++
/*
|
|
* Copyright (c) 2013 Mark Liversedge (liversedge@gmail.com)
|
|
*
|
|
* This program 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 2 of the License, or (at your option)
|
|
* any later version.
|
|
*
|
|
* This program 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.
|
|
*
|
|
* You should have received a copy of the GNU General Public License along
|
|
* with this program; if not, write to the Free Software Foundation, Inc., 51
|
|
* Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
|
*/
|
|
|
|
#ifndef Gc_GcUpgrade_h
|
|
#define Gc_GcUpgrade_h
|
|
#include "GoldenCheetah.h"
|
|
#include "RideMetadata.h"
|
|
#include "Athlete.h"
|
|
#include <QString>
|
|
|
|
#include <QWebEngineView>
|
|
#include <QWebEngineSettings>
|
|
|
|
// Build ID History
|
|
//
|
|
// 3001 - V3.0 RC1
|
|
// 3002 - V3.0 RC2
|
|
// 3003 - V3.0 RC3
|
|
// 3004 - V3.0 RC4 / 4X
|
|
// 3005 - V3.0 RC5 / 5X
|
|
// 3006 - V3.0 RC6
|
|
// 3007 - V3.0 RC7
|
|
// 3010 - V3.0 RELEASE (June 7 2013)
|
|
// 3020 - V3.0 SP1 RC1
|
|
// 3030 - V3.0 SP1 RELEASE (December 2013)
|
|
// 3032 - V3.0 SP2 RELEASE (March 2014)
|
|
// 3040 - V3.1 DEVELOPMENT
|
|
// 3050 - V3.1 DEVELOPMENT (accidentally pushed)
|
|
// 3051 - V3.1 DEVELOPMENT
|
|
// 3055 - V3.1 RC1
|
|
// 3056 - V3.1 RC2
|
|
// 3057 - V3.1 RC3
|
|
// 3058 - V3.1 RC3X
|
|
// 3059 - V3.1 RC4
|
|
// 3100 - V3.1 RELEASE (August 17 2014)
|
|
// 3101 - V3.11 DEVELOPMENT
|
|
// 3102 - V3.11 DEVELOPMENT INCL RIDECACHE
|
|
// 3103 - V3.2 RC1 (renamed from 3.11)
|
|
// 3104 - V3.2 RC1X (after late commits)
|
|
// 3105 - V3.2 RC2
|
|
// 3106 - V3.2 RC3
|
|
// 3107 - V3.2 RC4 (lost due to push fail by Mark)
|
|
// 3108 - V3.2 RC4X (some problems with tagging)
|
|
// 3200 - V3.2 RELEASE (August 12 2015)
|
|
// 3900 - V3.3 DEVELOPMENT STARTS
|
|
// 3901 - V3.3 PUBLIC DEVELOPMENT BUILD
|
|
// 3902 - V3.3 RC1
|
|
// 3903 - V3.3 RC2
|
|
// 3904 - V3.3 RC3
|
|
// 3933 - V3.3 RELEASE (November 29 2015)
|
|
// 3940 - V4.0 DEVELOPMENT STARTS
|
|
// 3941 - V4.0 DEV BUILD 1604
|
|
// 3942 - V4.0 DEV BUILD 1605
|
|
// 3943 - V4.0 DEV BUILD 1606
|
|
// 3944 - V4.0 DEV BUILD 1607
|
|
// 3945 - V3.4 DEV BUILD 1608 (FIT SUPPORT INTERIM SUPORT)
|
|
// 3946 - V3.4 RC1
|
|
// 3947 - V3.4 RC2
|
|
// 3950 - V3.4 RELEASE (November 18 2016)
|
|
// 3955 - V3.4 RELEASE SIERRA BUILD UPDATE (November 19 2016)
|
|
// 3956 - V3.4 FIXUPS FROM 3.4 BRANCH
|
|
// 3957 - V3.4.1 DEVELOPMENT
|
|
// 3958 - V3.4.1 DEVELOPMENT RELEASES START
|
|
// 3960 - V3.5 DEVELOPMENT RENAME AND DEVBUILD 1703
|
|
// 3961 - V3.5 DEVELOPMENT CLOUD REFACTOR PRIOR TO 1704
|
|
// 3962 - V3.5 DEVELOPMENT 1705
|
|
// 3963 - V3.5 DEVELOPMENT 1708
|
|
// 3964 - V3.5 DEVELOPMENT 1710
|
|
// 3965 - V3.5 DEVELOPMENT 1802
|
|
// 3966 - V3.5 DEVELOPMENT 1804
|
|
// 3967 - V3.5 DEVELOPMENT 1806
|
|
// 3968 - V3.5 DEVELOPMENT 1810
|
|
// 3969 - V3.5 DEVELOPMENT 1901
|
|
// 3970 - V3.5 DEVELOPMENT 1903
|
|
// 3980 - V3.5 RC1
|
|
// 3981 - V3.5 RC2
|
|
// 3982 - V3.5 RC2X
|
|
// 3990 - V3.5 RELEASE (January 2020)
|
|
// 3991 - V3.5 RELEASE RE-ISSUE STRAVA RATE LIMIT (January 2020)
|
|
// 3992 - V3.6 DEVELOPMENT
|
|
// 4000 - V3.6 DEVELOPMENT 2005 (MAY 2020)
|
|
// 4001 - V3.6 DEVELOPMENT 2006 (JUN 2020)
|
|
// 4002 - V3.6 DEVELOPMENT 2009 (SEP 2020)
|
|
// 4003 - V3.6 DEVELOPMENT 2101 (JAN 2021)
|
|
// 4004 - V3.6 DEVELOPMENT 2106 (JUN 2021)
|
|
// 4006 - V3.6 DEVELOPMENT 2107 (JUL 2021)
|
|
// 4007 - V3.6 DEVELOPMENT 2108 (AUG 2021)
|
|
// 4008 - V3.6 DEVELOPMENT 2110 (OCT 2021) (Pre-release)
|
|
// 4009 - V3.6 DEVELOPMENT 2110 (NOV 2021) (Pre-release)
|
|
// 4010 - V3.6 DEVELOPMENT 2202 (FEB 2022) (Pre-release RC1)
|
|
// 4011 - V3.6 DEVELOPMENT 2208 (AUG 2022) (Pre-release RC2)
|
|
// 4012 - V3.6 DEVELOPMENT 2208 (OCT 2022) (Pre-release RC3) - triggered 29/10 - updated snapshot 23/12
|
|
|
|
#define VERSION3_BUILD 3010 // released
|
|
#define VERSION3_SP1 3030 // released
|
|
#define VERSION3_SP2 3032 // released
|
|
#define VERSION31_UPG 3100 // first build with 3.1 upgrade process
|
|
#define VERSION311_BUILD 3101 // first build with 3.1 upgrade process
|
|
#define VERSION32_BUILD 3200 // released
|
|
#define VERSION33_BUILD 3933 // development release
|
|
#define VERSION34_BUILD 3955 // released
|
|
#define VERSION35_BUILD 3990 // released
|
|
#define VERSION36_BUILD 4012 // third release candidate
|
|
|
|
// will keep changing during testing and before final release
|
|
#define VERSION31_BUILD VERSION31_UPG
|
|
|
|
// the next two will with each build/release
|
|
#define VERSION_LATEST 4012
|
|
#define VERSION_STRING "V3.6-RC3"
|
|
|
|
// default config for this release cycle
|
|
#define VERSION_CONFIG_PREFIX "http://www.goldencheetah.org/defaults/3.6"
|
|
|
|
class GcUpgradeLogDialog : public QDialog
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
GcUpgradeLogDialog(QDir);
|
|
~GcUpgradeLogDialog();
|
|
void enableButtons();
|
|
void append(QString, int level=0);
|
|
|
|
|
|
public slots:
|
|
void saveAs();
|
|
void linkClickedSlot( QUrl );
|
|
|
|
private:
|
|
|
|
QWebEngineView *report;
|
|
AthleteDirectoryStructure home;
|
|
QString reportText;
|
|
QPushButton *proceedButton;
|
|
QPushButton *saveAsButton;
|
|
|
|
};
|
|
|
|
|
|
|
|
class GcUpgrade
|
|
{
|
|
Q_DECLARE_TR_FUNCTIONS(GcUpgrade)
|
|
|
|
public:
|
|
GcUpgrade() { upgradeError = false; errorCount = 0;}
|
|
bool upgradeConfirmedByUser(const QDir &home); // upgrade warning in case of critical updates which need a backup
|
|
int upgrade(const QDir &home); // standard upgrade steps
|
|
int upgradeLate(Context *context); // final upgrade steps which need a full context to be available first (exceptional use only !)
|
|
static int version() { return VERSION_LATEST; }
|
|
static QString versionString() { return VERSION_STRING; }
|
|
void removeIndex(QFile&);
|
|
|
|
private:
|
|
|
|
bool moveFile(const QString &source, const QString &target);
|
|
GcUpgradeLogDialog *upgradeLog;
|
|
bool upgradeError;
|
|
int errorCount;
|
|
|
|
};
|
|
|
|
|
|
class GcUpgradeExecuteDialog : public QDialog
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
GcUpgradeExecuteDialog(QDir);
|
|
|
|
private:
|
|
QScrollArea *scrollText;
|
|
QPushButton *proceedButton;
|
|
QPushButton *abortButton;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|