On AppVeyor copy output files to parent folder

This commit is contained in:
Jaex 2017-11-02 14:44:10 +03:00
parent e289a6ee26
commit d15867e9fe

View file

@ -71,7 +71,7 @@ private enum SetupJobs
private static string WindowsStoreDir => Path.Combine(BinDir, "WindowsStore"); private static string WindowsStoreDir => Path.Combine(BinDir, "WindowsStore");
private static string WindowsStoreDebugDir => Path.Combine(BinDir, "WindowsStoreDebug"); private static string WindowsStoreDebugDir => Path.Combine(BinDir, "WindowsStoreDebug");
private static string OutputDir => AppVeyor ? ParentDir : Path.Combine(ParentDir, "Output"); private static string OutputDir => Path.Combine(ParentDir, "Output");
private static string PortableOutputDir => Path.Combine(OutputDir, "ShareX-portable"); private static string PortableOutputDir => Path.Combine(OutputDir, "ShareX-portable");
private static string SteamOutputDir => Path.Combine(OutputDir, "ShareX-Steam"); private static string SteamOutputDir => Path.Combine(OutputDir, "ShareX-Steam");
private static string WindowsStoreOutputDir => Path.Combine(OutputDir, "ShareX-WindowsStore"); private static string WindowsStoreOutputDir => Path.Combine(OutputDir, "ShareX-WindowsStore");
@ -160,6 +160,11 @@ private static void Main(string[] args)
CreateFolder(ReleaseDir, PortableAppsOutputDir, SetupJobs.CreatePortableAppsFolder); CreateFolder(ReleaseDir, PortableAppsOutputDir, SetupJobs.CreatePortableAppsFolder);
} }
if (AppVeyor)
{
Helpers.CopyAll(OutputDir, ParentDir);
}
if (Job.HasFlag(SetupJobs.OpenOutputDirectory)) if (Job.HasFlag(SetupJobs.OpenOutputDirectory))
{ {
OpenOutputDirectory(); OpenOutputDirectory();