- make custom icons copied from resource writable

This commit is contained in:
royqh1979@gmail.com 2022-01-27 12:33:00 +08:00
parent f52992aaab
commit 15c6282c36
3 changed files with 9 additions and 2 deletions

View File

@ -10,7 +10,7 @@ isEmpty(APP_NAME) {
}
isEmpty(APP_VERSION) {
APP_VERSION=0.13.4
APP_VERSION=0.14.0
}
isEmpty(PREFIX) {

View File

@ -1131,6 +1131,13 @@ void copyFolder(const QString &fromDir, const QString &toDir)
//Remove file at target location, if it exists, or QFile::copy will fail
QFile::remove(constructedAbsolutePath);
QFile::copy(fileInfo.absoluteFilePath(), constructedAbsolutePath);
QFile newFile(constructedAbsolutePath);
QFile::Permissions permissions = newFile.permissions();
permissions |= (QFile::Permission::WriteOwner
| QFile::Permission::WriteUser
| QFile::Permission::WriteGroup
| QFile::Permission::WriteOther);
newFile.setPermissions(permissions);
}
}
}

View File

@ -7,7 +7,7 @@ SUBDIRS += \
APP_NAME = RedPandaCPP
APP_VERSION = 0.13.4
APP_VERSION = 0.14.0
linux: {