Don't copy "Recorder-devices-setup.exe" and "ShareX_NativeMessagingHost.exe" on Windows Store job

This commit is contained in:
Jaex 2017-05-03 17:07:35 +03:00
parent 378ae2125a
commit bcef34014b

View file

@ -224,13 +224,17 @@ private static void CreateFolder(string source, string destination, SetupJobs jo
Helpers.CopyFiles(Path.Combine(ParentDir, "Licenses"), "*.txt", Path.Combine(destination, "Licenses"));
if (!File.Exists(RecorderDevicesSetupPath))
if (job != SetupJobs.CreateWindowsStoreFolder && job != SetupJobs.CreateWindowsStoreDebugFolder)
{
CompileISSFile("Recorder-devices-setup.iss");
}
if (!File.Exists(RecorderDevicesSetupPath))
{
CompileISSFile("Recorder-devices-setup.iss");
}
Helpers.CopyFile(RecorderDevicesSetupPath, destination);
Helpers.CopyFile(Path.Combine(NativeMessagingHostDir, "ShareX_NativeMessagingHost.exe"), destination);
Helpers.CopyFile(RecorderDevicesSetupPath, destination);
Helpers.CopyFile(Path.Combine(NativeMessagingHostDir, "ShareX_NativeMessagingHost.exe"), destination);
}
string[] languages = new string[] { "de", "es", "fr", "hu", "ko-KR", "nl-NL", "pt-BR", "ru", "tr", "vi-VN", "zh-CN", "zh-TW" };