Mercurial > hg > vamp-plugin-pack
diff installer.cpp @ 34:efb73feb1061
Enough MacOS bits to be able to do a quick proof-of-concept test
author | Chris Cannam |
---|---|
date | Fri, 13 Dec 2019 14:14:57 +0000 |
parents | dd41d7369ed5 |
children | f1326adbb33b |
line wrap: on
line diff
--- a/installer.cpp Fri Dec 13 13:54:27 2019 +0000 +++ b/installer.cpp Fri Dec 13 14:14:57 2019 +0000 @@ -24,7 +24,15 @@ if (!f.copy(target + e)) { cerr << "Failed to copy " << e.toStdString() << " to target " << (target + e).toStdString() << endl; + continue; } + if (!QFile::setPermissions(target + e, + QFile::ReadOwner | QFile::WriteOwner | + QFile::ExeOwner | QFile::ReadGroup | + QFile::ReadOther)) { + cerr << "Failed to set permissions on " << e.toStdString() << endl; + continue; + } } return 0;