mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-07-05 12:56:58 +03:00
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
1 changed files with 1 additions and 1 deletions
|
|
@ -1020,7 +1020,7 @@ void PrismUpdaterApp::performInstall(QFileInfo file)
|
|||
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));
|
||||
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);
|
||||
logUpdate(tr("Updating portable install at %1").arg(m_rootPath));
|
||||
unpackAndInstall(file);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue