mirror of
https://github.com/ShareX/ShareX.git
synced 2024-06-28 03:00:22 +12:00
Use "/Q" argument
This commit is contained in:
parent
b70d2587a2
commit
cb818b0654
|
@ -258,7 +258,7 @@ private static void CompileISSFile(string fileName)
|
|||
{
|
||||
FileName = InnoSetupCompilerPath,
|
||||
WorkingDirectory = InnoSetupDir,
|
||||
Arguments = $"\"{fileName}\"",
|
||||
Arguments = $"/Q \"{fileName}\"",
|
||||
UseShellExecute = false
|
||||
};
|
||||
|
||||
|
@ -267,7 +267,7 @@ private static void CompileISSFile(string fileName)
|
|||
process.WaitForExit();
|
||||
}
|
||||
|
||||
Console.WriteLine("Setup file compiled.");
|
||||
Console.WriteLine("Setup file compiled: " + fileName);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -372,6 +372,16 @@ private static void CreateFolder(string source, string destination, SetupJobs jo
|
|||
if (job == SetupJobs.CreatePortable)
|
||||
{
|
||||
FileHelpers.CreateEmptyFile(Path.Combine(destination, "Portable"));
|
||||
}
|
||||
else if (job == SetupJobs.CreateMicrosoftStoreFolder || job == SetupJobs.CreateMicrosoftStoreDebugFolder)
|
||||
{
|
||||
FileHelpers.CopyAll(MicrosoftStorePackageFilesDir, destination);
|
||||
}
|
||||
|
||||
Console.WriteLine("Folder created: " + destination);
|
||||
|
||||
if (job == SetupJobs.CreatePortable)
|
||||
{
|
||||
CreateZipFile(destination, PortableZipPath);
|
||||
}
|
||||
else if (job == SetupJobs.CreateDebug)
|
||||
|
@ -382,12 +392,6 @@ private static void CreateFolder(string source, string destination, SetupJobs jo
|
|||
{
|
||||
CreateZipFile(destination, SteamZipPath);
|
||||
}
|
||||
else if (job == SetupJobs.CreateMicrosoftStoreFolder || job == SetupJobs.CreateMicrosoftStoreDebugFolder)
|
||||
{
|
||||
FileHelpers.CopyAll(MicrosoftStorePackageFilesDir, destination);
|
||||
}
|
||||
|
||||
Console.WriteLine("Folder created.");
|
||||
}
|
||||
|
||||
private static void CreateZipFile(string source, string archivePath)
|
||||
|
|
Loading…
Reference in a new issue