Add support for quarantine on macOS

This commit is contained in:
Chocobo1 2023-10-28 00:38:48 +08:00
parent b4642ca9d3
commit 98576dacae
5 changed files with 58 additions and 23 deletions

View file

@ -95,7 +95,6 @@ namespace Utils::Misc
QString languageToLocalizedString(const QString &localeStr);
#ifdef Q_OS_WIN
bool applyMarkOfTheWeb(const Path &file, const QString &url = {});
Path windowsSystemPath();
template <typename T>
@ -105,4 +104,8 @@ namespace Utils::Misc
return reinterpret_cast<T>(::GetProcAddress(::LoadLibraryW(path.c_str()), funcName));
}
#endif // Q_OS_WIN
#if defined(Q_OS_MACOS) || defined(Q_OS_WIN)
bool applyMarkOfTheWeb(const Path &file, const QString &url = {});
#endif // Q_OS_MACOS || Q_OS_WIN
}