Skip to content
Permalink
Browse files

[skip ci] Include version no. in installation files

Fixes #773
  • Loading branch information...
nopara73 committed Nov 13, 2018
1 parent e2324bd commit 7f7b6c60307c718a5a2aab6ceee500f341efd29d
@@ -197,13 +197,13 @@ private static void Main(string[] args)
if (target.StartsWith("win", StringComparison.OrdinalIgnoreCase))
{
Console.WriteLine("Move created .msi");
var msiPath = Path.Combine(wixProjectDirectory, @"bin\Release\WasabiInstaller.msi");
var msiPath = Path.Combine(wixProjectDirectory, @"bin\Release\Wasabi.msi");
if (!File.Exists(msiPath))
{
throw new Exception(".msi doesn't exist. Expected path: WasabiInstaller.msi.");
throw new Exception(".msi doesn't exist. Expected path: Wasabi.msi.");
}
var msiFileName = Path.GetFileName(msiPath);
var newMsiPath = Path.Combine(binDistDirectory, msiFileName);
var msiFileName = Path.GetFileNameWithoutExtension(msiPath);
var newMsiPath = Path.Combine(binDistDirectory, $"{msiFileName}-{versionPrefix}.msi");
File.Move(msiPath, newMsiPath);

// Sign code with digicert.
@@ -224,7 +224,7 @@ private static void Main(string[] args)
{
throw new Exception($"{publishedFolder} doesn't exist.");
}
var newFolderName = "WasabiLinux";
var newFolderName = $"WasabiLinux-{versionPrefix}";
var newFolderPath = Path.Combine(binDistDirectory, newFolderName);
Directory.Move(publishedFolder, newFolderPath);
publishedFolder = newFolderPath;
@@ -246,7 +246,7 @@ private static void Main(string[] args)
{
throw new Exception($"{publishedFolder} doesn't exist.");
}
var newFolderName = "WasabiOsx";
var newFolderName = $"WasabiOsx-{versionPrefix}";
var newFolderPath = Path.Combine(binDistDirectory, newFolderName);
Directory.Move(publishedFolder, newFolderPath);
publishedFolder = newFolderPath;
@@ -6,7 +6,7 @@
<ProductVersion>3.10</ProductVersion>
<ProjectGuid>54654468-4f58-4253-84bd-6f53a8d3d2c4</ProjectGuid>
<SchemaVersion>2.0</SchemaVersion>
<OutputName>WasabiInstaller</OutputName>
<OutputName>Wasabi</OutputName>
<OutputType>Package</OutputType>
<Cultures>;</Cultures>
</PropertyGroup>

0 comments on commit 7f7b6c6

Please sign in to comment.
You can’t perform that action at this time.