Skip to content

Commit

Permalink
Changed name to MagesSetup.exe
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorianRappl committed Jan 7, 2024
1 parent 18f3d8a commit 76e3ed4
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions build.cake
Original file line number Diff line number Diff line change
Expand Up @@ -207,8 +207,8 @@ Task("Create-Chocolatey-Package")
.IsDependentOn("Create-Squirrel-Package")
.WithCriteria(() => isRunningOnWindows)
.Does(() => {
var checksum = CalculateFileHash(releaseDir.Path.FullPath + "/Setup.exe", HashAlgorithm.SHA256).ToHex();
var content = String.Format("$packageName = 'Mages'{1}$installerType = 'exe'{1}$url32 = 'https://github.com/FlorianRappl/Mages/releases/download/v{0}/Mages.exe'{1}$silentArgs = ''{1}$checksum32 = '{2}'{1}{1}Install-ChocolateyPackage -PackageName \"$packageName\" -FileType \"$installerType\" -SilentArgs \"$silentArgs\" -Url \"$url32\" -Checksum \"$checksum32\" -ChecksumType \"sha256\"", version, Environment.NewLine, checksum);
var checksum = CalculateFileHash(releaseDir.Path.FullPath + "/MagesSetup.exe", HashAlgorithm.SHA256).ToHex();
var content = String.Format("$packageName = 'Mages'{1}$installerType = 'exe'{1}$url32 = 'https://github.com/FlorianRappl/Mages/releases/download/v{0}/MagesSetup.exe'{1}$silentArgs = ''{1}$checksum32 = '{2}'{1}{1}Install-ChocolateyPackage -PackageName \"$packageName\" -FileType \"$installerType\" -SilentArgs \"$silentArgs\" -Url \"$url32\" -Checksum \"$checksum32\" -ChecksumType \"sha256\"", version, Environment.NewLine, checksum);
var nuspec = chocolateyRoot + File("Mages.nuspec");
var toolsDirectory = chocolateyRoot + Directory("tools");
var scriptFile = toolsDirectory + File("chocolateyInstall.ps1");
Expand Down Expand Up @@ -281,11 +281,6 @@ Task("Publish-GitHub-Release")
{
var name = System.IO.Path.GetFileName(file.FullPath);
if (name.Equals("Setup.exe"))
{
name = "Mages.exe";
}
using (var fileStream = System.IO.File.OpenRead(file.FullPath))
{
newRelease.UploadAsset(release, new ReleaseAssetUpload(name, "application/x-msdownload", fileStream, null)).Wait();
Expand Down

0 comments on commit 76e3ed4

Please sign in to comment.