Skip to content

Commit afd046b

Browse files
committed
Build improved
1 parent b3ed1bc commit afd046b

2 files changed

Lines changed: 11 additions & 4 deletions

File tree

InnoSetup.iss

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,20 @@
22
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!
33

44
#define MyAppName "NETworkManager"
5-
#define MyAppVersion "2021.2.15.0"
5+
#define MyAppVersion "2021.2.17.0"
66
#define MyAppPublisher "BornToBeRoot"
77
#define MyAppURL "https://github.com/BornToBeRoot/NETworkManager/"
88
#define MyAppExeName "NETworkManager.exe"
9+
#define MyAppCopyright "Copyright (C) 2016-2021 BornToBeRoot"
910

1011
[Setup]
1112
; NOTE: The value of AppId uniquely identifies this application. Do not use the same AppId value in installers for other applications.
1213
; (To generate a new GUID, click Tools | Generate GUID inside the IDE.)
1314
AppId={{8028080F-B785-4A74-A243-3D63467880A6}
1415
AppName={#MyAppName}
1516
AppVersion={#MyAppVersion}
17+
VersionInfoVersion={#MyAppVersion}
18+
AppCopyright={#MyAppCopyright}
1619
;AppVerName={#MyAppName} {#MyAppVersion}
1720
AppPublisher={#MyAppPublisher}
1821
AppPublisherURL={#MyAppURL}

build.ps1

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ if (Test-Path -Path $BuildPath) {
88

99
# Set the version based on the current date (e.g. 2021.2.15.0)
1010
$Date = Get-Date
11-
$VersionString = "$($Date.Year).$($Date.Month).$($Date.Day).0"
11+
$Patch = 0
12+
$VersionString = "$($Date.Year).$($Date.Month).$($Date.Day).$Patch"
1213

1314
# Set assembly version
1415
$PatternVersion = '\[assembly: AssemblyVersion\("(.*)"\)\]'
@@ -72,6 +73,9 @@ else {
7273
}
7374

7475
# SHA256 file hash
75-
Get-ChildItem -Path $BuildPath | Where-Object {$_.Name.EndsWith(".zip") -or $_.Name.EndsWith(".exe")} | Get-FileHash
76+
foreach($hash in Get-ChildItem -Path $BuildPath | Where-Object {$_.Name.EndsWith(".zip") -or $_.Name.EndsWith(".exe")} | Get-FileHash)
77+
{
78+
"$($hash.Algorithm) | $($hash.Hash) | $([System.IO.Path]::GetFileName($hash.Path))" | Out-File -FilePath "$BuildPath\NETworkManager_$($Version)_Hash.txt" -Encoding utf8 -Append
79+
}
7680

77-
Write-Host "Build finished! All files are here: $BuildPath" -ForegroundColor Green
81+
Write-Host "Build finished! All files are here: $BuildPath" -ForegroundColor Green

0 commit comments

Comments
 (0)