Fix #2586
non portable linux update technically works even if not genraly a good idea. Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
This commit is contained in:
parent
196b2b5a3e
commit
41bcfb3c07
@ -1020,7 +1020,7 @@ void PrismUpdaterApp::performInstall(QFileInfo file)
|
|||||||
FS::write(changelog_path, m_install_release.body.toUtf8());
|
FS::write(changelog_path, m_install_release.body.toUtf8());
|
||||||
|
|
||||||
logUpdate(tr("Updating from %1 to %2").arg(m_prismVersion).arg(m_install_release.tag_name));
|
logUpdate(tr("Updating from %1 to %2").arg(m_prismVersion).arg(m_install_release.tag_name));
|
||||||
if (m_isPortable || file.suffix().toLower() == "zip") {
|
if (m_isPortable || file.fileName().endsWith(".zip") || file.fileName().endsWith(".tar.gz")) {
|
||||||
write_lock_file(update_lock_path, QDateTime::currentDateTime(), m_prismVersion, m_install_release.tag_name, m_rootPath, m_dataPath);
|
write_lock_file(update_lock_path, QDateTime::currentDateTime(), m_prismVersion, m_install_release.tag_name, m_rootPath, m_dataPath);
|
||||||
logUpdate(tr("Updating portable install at %1").arg(m_rootPath));
|
logUpdate(tr("Updating portable install at %1").arg(m_rootPath));
|
||||||
unpackAndInstall(file);
|
unpackAndInstall(file);
|
||||||
|
Loading…
Reference in New Issue
Block a user