trying to get winget working...

This commit is contained in:
niksedk 2022-11-20 21:28:36 +01:00
parent 497eeabeca
commit a85dfaf334
2 changed files with 6 additions and 6 deletions

View File

@ -41,7 +41,7 @@ namespace UpdateAssemblyInfo
private int Major { get; }
private int Minor { get; }
private int Maintenance { get; }
public int Build { get; }
public int Build { get; set; }
public string RevisionGuid { get; }
public string FullVersion => string.Format(CultureInfo.InvariantCulture, "{0:D}.{1:D}.{2:D}.{3:D} {4}", Major, Minor, Maintenance, Build, RevisionGuid).TrimEnd();
@ -478,7 +478,7 @@ namespace UpdateAssemblyInfo
{
var s = line.Trim('\r');
var searchStr = $"{targetVariable}:";
if (s.StartsWith(searchStr.TrimStart(), StringComparison.OrdinalIgnoreCase))
if (s.TrimStart().StartsWith(searchStr.TrimStart(), StringComparison.OrdinalIgnoreCase))
{
var start = line.Substring(0, line.IndexOf(searchStr, StringComparison.OrdinalIgnoreCase) + searchStr.Length);
sb.AppendLine($"{start} {targetValue}");

View File

@ -31,11 +31,11 @@ FileExtensions:
ReleaseDate: 2022-11-20
Installers:
- Architecture: x64
InstallerUrl: https://github.com/SubtitleEdit/subtitleedit/releases/download/3.6.8/SubtitleEdit-3.6.8-Setup.exe
InstallerSha256: 1271549F5C359DAD26A71BAD6E1B929A9ACA0AF7EFE47A4AFEE7408B1FBD6D45
InstallerUrl: https://github.com/SubtitleEdit/subtitleedit/releases/download/3.6.9/SubtitleEdit-3.6.9-Setup.exe
InstallerSha256: 6E7A8A23A645C41BDF7D67B00A8CC390D2F77644F8A401A08DD9FCFC7F966552
- Architecture: x86
InstallerUrl: https://github.com/SubtitleEdit/subtitleedit/releases/download/3.6.8/SubtitleEdit-3.6.8-Setup.exe
InstallerSha256: 1271549F5C359DAD26A71BAD6E1B929A9ACA0AF7EFE47A4AFEE7408B1FBD6D45
InstallerUrl: https://github.com/SubtitleEdit/subtitleedit/releases/download/3.6.9/SubtitleEdit-3.6.9-Setup.exe
InstallerSha256: 6E7A8A23A645C41BDF7D67B00A8CC390D2F77644F8A401A08DD9FCFC7F966552
ManifestType: installer
ManifestVersion: 1.2.0