Merge branch 'master' of https://github.com/calamares/calamares into development
This commit is contained in:
commit
7acdbcdac5
@ -131,8 +131,8 @@ set( CALAMARES_TRANSLATION_LANGUAGES ar ast bg ca cs_CZ da de el en en_GB es_MX
|
|||||||
### Bump version here
|
### Bump version here
|
||||||
set( CALAMARES_VERSION_MAJOR 3 )
|
set( CALAMARES_VERSION_MAJOR 3 )
|
||||||
set( CALAMARES_VERSION_MINOR 1 )
|
set( CALAMARES_VERSION_MINOR 1 )
|
||||||
set( CALAMARES_VERSION_PATCH 1 )
|
set( CALAMARES_VERSION_PATCH 4 )
|
||||||
set( CALAMARES_VERSION_RC 0 )
|
set( CALAMARES_VERSION_RC 1 )
|
||||||
|
|
||||||
set( CALAMARES_VERSION ${CALAMARES_VERSION_MAJOR}.${CALAMARES_VERSION_MINOR}.${CALAMARES_VERSION_PATCH} )
|
set( CALAMARES_VERSION ${CALAMARES_VERSION_MAJOR}.${CALAMARES_VERSION_MINOR}.${CALAMARES_VERSION_PATCH} )
|
||||||
set( CALAMARES_VERSION_SHORT "${CALAMARES_VERSION}" )
|
set( CALAMARES_VERSION_SHORT "${CALAMARES_VERSION}" )
|
||||||
|
@ -24,6 +24,9 @@ The Calamares release process
|
|||||||
[transifex]: https://www.transifex.com/calamares/calamares/dashboard/
|
[transifex]: https://www.transifex.com/calamares/calamares/dashboard/
|
||||||
|
|
||||||
#### (1) Preparation
|
#### (1) Preparation
|
||||||
|
|
||||||
|
* Bump version in `CMakeLists.txt`, *CALAMARES_VERSION* variables, and set
|
||||||
|
RC to a non-zero value (e.g. doing -rc1, -rc2, ...). Push that.
|
||||||
* Check `README.md` and everything in `hacking`, make sure it's all still
|
* Check `README.md` and everything in `hacking`, make sure it's all still
|
||||||
relevant. Run `hacking/calamaresstyle` to check the C++ code style.
|
relevant. Run `hacking/calamaresstyle` to check the C++ code style.
|
||||||
Python code is checked as part of the Travis CI builds.
|
Python code is checked as part of the Travis CI builds.
|
||||||
@ -38,8 +41,6 @@ The Calamares release process
|
|||||||
* Update the list of enabled translation languages in `CMakeLists.txt`.
|
* Update the list of enabled translation languages in `CMakeLists.txt`.
|
||||||
Check the [translation site][transifex] for the list of languages with
|
Check the [translation site][transifex] for the list of languages with
|
||||||
fairly complete translations.
|
fairly complete translations.
|
||||||
* Bump version in `CMakeLists.txt`, *CALAMARES_VERSION* variables, and set
|
|
||||||
RC to a non-zero value (e.g. doing -rc1, -rc2, ...). Push that.
|
|
||||||
|
|
||||||
#### (2) Tarball
|
#### (2) Tarball
|
||||||
* Create tarball: `git-archive-all -v calamares-1.1-rc1.tar.gz` . Double check
|
* Create tarball: `git-archive-all -v calamares-1.1-rc1.tar.gz` . Double check
|
||||||
@ -47,6 +48,7 @@ The Calamares release process
|
|||||||
* Test tarball.
|
* Test tarball.
|
||||||
|
|
||||||
#### (3) Tag
|
#### (3) Tag
|
||||||
|
* Set RC to zero in `CMakeLists.txt` if this is the actual release.
|
||||||
* `git tag -s v1.1.0` Make sure the signing key is known in GitHub, so that the
|
* `git tag -s v1.1.0` Make sure the signing key is known in GitHub, so that the
|
||||||
tag is shown as a verified tag. Do not sign -rc tags.
|
tag is shown as a verified tag. Do not sign -rc tags.
|
||||||
* Generate MD5 and SHA256 checksums.
|
* Generate MD5 and SHA256 checksums.
|
||||||
@ -59,5 +61,5 @@ The Calamares release process
|
|||||||
* Update download page.
|
* Update download page.
|
||||||
* Publish release article on `calamares.io`.
|
* Publish release article on `calamares.io`.
|
||||||
* Publicize on social networks.
|
* Publicize on social networks.
|
||||||
* Update release date on JIRA.
|
* Close associated milestone on GitHub if this is the actual release.
|
||||||
* Publish blog post.
|
* Publish blog post.
|
||||||
|
@ -310,7 +310,7 @@ PythonJob::exec()
|
|||||||
scriptNamespace );
|
scriptNamespace );
|
||||||
|
|
||||||
bp::object entryPoint = scriptNamespace[ "run" ];
|
bp::object entryPoint = scriptNamespace[ "run" ];
|
||||||
bp::object prettyNameFunc = scriptNamespace[ "pretty_name" ];
|
bp::object prettyNameFunc = bp::getattr(scriptNamespace, "pretty_name", bp::object());
|
||||||
|
|
||||||
cDebug() << "Job file" << scriptFI.absoluteFilePath();
|
cDebug() << "Job file" << scriptFI.absoluteFilePath();
|
||||||
if ( !prettyNameFunc.is_none() )
|
if ( !prettyNameFunc.is_none() )
|
||||||
|
@ -33,11 +33,15 @@
|
|||||||
FinishedViewStep::FinishedViewStep( QObject* parent )
|
FinishedViewStep::FinishedViewStep( QObject* parent )
|
||||||
: Calamares::ViewStep( parent )
|
: Calamares::ViewStep( parent )
|
||||||
, m_widget( new FinishedPage() )
|
, m_widget( new FinishedPage() )
|
||||||
|
, installFailed( false )
|
||||||
{
|
{
|
||||||
cDebug() << "FinishedViewStep()";
|
cDebug() << "FinishedViewStep()";
|
||||||
|
|
||||||
connect( Calamares::JobQueue::instance(), &Calamares::JobQueue::failed,
|
auto jq = Calamares::JobQueue::instance();
|
||||||
|
connect( jq, &Calamares::JobQueue::failed,
|
||||||
m_widget, &FinishedPage::onInstallationFailed );
|
m_widget, &FinishedPage::onInstallationFailed );
|
||||||
|
connect( jq, &Calamares::JobQueue::failed,
|
||||||
|
this, &FinishedViewStep::onInstallationFailed );
|
||||||
|
|
||||||
emit nextStatusChanged( true );
|
emit nextStatusChanged( true );
|
||||||
}
|
}
|
||||||
@ -107,6 +111,11 @@ FinishedViewStep::isAtEnd() const
|
|||||||
void
|
void
|
||||||
FinishedViewStep::sendNotification()
|
FinishedViewStep::sendNotification()
|
||||||
{
|
{
|
||||||
|
// If the installation failed, don't send notification popup;
|
||||||
|
// there's a (modal) dialog popped up with the failure notice.
|
||||||
|
if (installFailed)
|
||||||
|
return;
|
||||||
|
|
||||||
QDBusInterface notify( "org.freedesktop.Notifications", "/org/freedesktop/Notifications", "org.freedesktop.Notifications" );
|
QDBusInterface notify( "org.freedesktop.Notifications", "/org/freedesktop/Notifications", "org.freedesktop.Notifications" );
|
||||||
if ( notify.isValid() )
|
if ( notify.isValid() )
|
||||||
{
|
{
|
||||||
@ -145,6 +154,13 @@ FinishedViewStep::jobs() const
|
|||||||
return QList< Calamares::job_ptr >();
|
return QList< Calamares::job_ptr >();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
FinishedViewStep::onInstallationFailed( const QString& message, const QString& details )
|
||||||
|
{
|
||||||
|
Q_UNUSED(message);
|
||||||
|
Q_UNUSED(details);
|
||||||
|
installFailed = true;
|
||||||
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
FinishedViewStep::setConfigurationMap( const QVariantMap& configurationMap )
|
FinishedViewStep::setConfigurationMap( const QVariantMap& configurationMap )
|
||||||
|
@ -55,6 +55,9 @@ public:
|
|||||||
|
|
||||||
void setConfigurationMap( const QVariantMap& configurationMap ) override;
|
void setConfigurationMap( const QVariantMap& configurationMap ) override;
|
||||||
|
|
||||||
|
public slots:
|
||||||
|
void onInstallationFailed( const QString& message, const QString& details );
|
||||||
|
|
||||||
private:
|
private:
|
||||||
FinishedPage* m_widget;
|
FinishedPage* m_widget;
|
||||||
|
|
||||||
@ -63,6 +66,8 @@ private:
|
|||||||
* send a desktop notification via DBus that the install is done.
|
* send a desktop notification via DBus that the install is done.
|
||||||
*/
|
*/
|
||||||
void sendNotification();
|
void sendNotification();
|
||||||
|
|
||||||
|
bool installFailed;
|
||||||
};
|
};
|
||||||
|
|
||||||
CALAMARES_PLUGIN_FACTORY_DECLARATION( FinishedViewStepFactory )
|
CALAMARES_PLUGIN_FACTORY_DECLARATION( FinishedViewStepFactory )
|
||||||
|
Loading…
Reference in New Issue
Block a user