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
@@ -41,9 +41,17 @@ namespace ProjectExplorer {
|
||||
class PROJECTEXPLORER_EXPORT DeployableFile
|
||||
{
|
||||
public:
|
||||
enum Type
|
||||
{
|
||||
TypeNormal,
|
||||
TypeExecutable
|
||||
};
|
||||
|
||||
DeployableFile();
|
||||
DeployableFile(const QString &m_localFilePath, const QString &m_remoteDir);
|
||||
DeployableFile(const Utils::FileName &localFilePath, const QString &remoteDir);
|
||||
DeployableFile(const QString &m_localFilePath, const QString &m_remoteDir,
|
||||
Type type = TypeNormal);
|
||||
DeployableFile(const Utils::FileName &localFilePath, const QString &remoteDir,
|
||||
Type type = TypeNormal);
|
||||
|
||||
Utils::FileName localFilePath() const { return m_localFilePath; }
|
||||
QString remoteDirectory() const { return m_remoteDir; }
|
||||
@@ -51,9 +59,12 @@ public:
|
||||
|
||||
bool isValid() const;
|
||||
|
||||
bool isExecutable() const;
|
||||
|
||||
private:
|
||||
Utils::FileName m_localFilePath;
|
||||
QString m_remoteDir;
|
||||
Type m_type;
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user