forked from qt-creator/qt-creator
Set executable flag on applications while deploying
Under Windows there is no executable flag in the filesystem. So take the information that we got, which file is an executable and set the executable flag if needed. Change-Id: I0a7026911d1f7791434c39cc0917d6e49cfa1667 Reviewed-by: Christian Kandeler <christian.kandeler@digia.com>
This commit is contained in:
committed by
Christian Kandeler
parent
5554e3616e
commit
47ff91a584
@@ -38,16 +38,17 @@ using namespace Utils;
|
||||
namespace ProjectExplorer {
|
||||
|
||||
DeployableFile::DeployableFile()
|
||||
: m_type(TypeNormal)
|
||||
{
|
||||
}
|
||||
|
||||
DeployableFile::DeployableFile(const QString &localFilePath, const QString &remoteDir)
|
||||
: m_localFilePath(FileName::fromUserInput(localFilePath)), m_remoteDir(remoteDir)
|
||||
DeployableFile::DeployableFile(const QString &localFilePath, const QString &remoteDir, Type type)
|
||||
: m_localFilePath(FileName::fromUserInput(localFilePath)), m_remoteDir(remoteDir), m_type(type)
|
||||
{
|
||||
}
|
||||
|
||||
DeployableFile::DeployableFile(const FileName &localFilePath, const QString &remoteDir)
|
||||
: m_localFilePath(localFilePath), m_remoteDir(remoteDir)
|
||||
DeployableFile::DeployableFile(const FileName &localFilePath, const QString &remoteDir, Type type)
|
||||
: m_localFilePath(localFilePath), m_remoteDir(remoteDir), m_type(type)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -62,6 +63,11 @@ bool DeployableFile::isValid() const
|
||||
return !m_localFilePath.toString().isEmpty() && !m_remoteDir.isEmpty();
|
||||
}
|
||||
|
||||
bool DeployableFile::isExecutable() const
|
||||
{
|
||||
return m_type == TypeExecutable;
|
||||
}
|
||||
|
||||
uint qHash(const DeployableFile &d)
|
||||
{
|
||||
return qHash(qMakePair(d.localFilePath().toString(), d.remoteDirectory()));
|
||||
|
||||
Reference in New Issue
Block a user