Skip to content
This repository was archived by the owner on Feb 2, 2023. It is now read-only.

Commit 746f137

Browse files
committed
v1.9.3
1 parent 08d60e1 commit 746f137

File tree

6 files changed

+44
-7
lines changed

6 files changed

+44
-7
lines changed

InstallationScript/Install.nsi

+2-2
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,8 @@ Section "Toastify (required)"
8080
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Toastify" "UninstallString" '"$INSTDIR\uninstall.exe"'
8181
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Toastify" "DisplayIcon" "$INSTDIR\Toastify.exe,0"
8282
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Toastify" "Publisher" "Jesper Palm, Oren Nachman, Alessandro Attard Barbini"
83-
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Toastify" "Version" "1.9.2"
84-
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Toastify" "DisplayVersion" "1.9.2"
83+
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Toastify" "Version" "1.9.3"
84+
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Toastify" "DisplayVersion" "1.9.3"
8585
WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Toastify" "NoModify" 1
8686
WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Toastify" "NoRepair" 1
8787
WriteUninstaller "uninstall.exe"

Toastify/Properties/AssemblyInfo.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using System.Reflection;
1+
using System.Reflection;
22
using System.Resources;
33
using System.Runtime.CompilerServices;
44
using System.Runtime.InteropServices;
@@ -51,4 +51,4 @@
5151
// You can specify all the values or you can default the Build and Revision Numbers
5252
// by using the '*' as shown below:
5353
// [assembly: AssemblyVersion("1.0.*")]
54-
[assembly: AssemblyVersion("1.9.2.*")]
54+
[assembly: AssemblyVersion("1.9.3.*")]

Toastify/version

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.9.2
1+
1.9.3

ToastifyAPI/Properties/AssemblyInfo.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using System.Reflection;
1+
using System.Reflection;
22
using System.Runtime.CompilerServices;
33
using System.Runtime.InteropServices;
44

@@ -32,4 +32,4 @@
3232
// You can specify all the values or you can default the Build and Revision Numbers
3333
// by using the '*' as shown below:
3434
// [assembly: AssemblyVersion("1.0.*")]
35-
[assembly: AssemblyVersion("1.9.2.*")]
35+
[assembly: AssemblyVersion("1.9.3.*")]

update-version.cmd

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
@ECHO OFF
2+
3+
CD /D %~dp0
4+
powershell -File "update-version.ps1"

update-version.ps1

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
$ScriptPath = $MyInvocation.MyCommand.Path | Split-Path
2+
Set-Location "$ScriptPath"
3+
4+
$AsciiEncoding = New-Object System.Text.ASCIIEncoding
5+
6+
Write-Host -NoNewLine "Current version: "
7+
Get-Content "Toastify\version"
8+
$NewVersion = Read-Host -Prompt "New version"
9+
10+
Write-Host
11+
12+
Write-Host "Update: InstallationScript\Install.nsi"
13+
$FilePath = [System.IO.Path]::GetFullPath((Join-Path (pwd) "InstallationScript\Install.nsi"))
14+
$Lines = (Get-Content 'InstallationScript\Install.nsi') -replace '("(Display)?Version") ".*"', "`$1 `"$NewVersion`""
15+
[System.IO.File]::WriteAllLines($FilePath, $Lines)
16+
17+
Write-Host "Update: Toastify\version"
18+
$FilePath = [System.IO.Path]::GetFullPath((Join-Path (pwd) "Toastify\version"))
19+
$Lines = "$NewVersion"
20+
[System.IO.File]::WriteAllText($FilePath, $Lines, $AsciiEncoding)
21+
22+
Write-Host "Update: Toastify\Properties\AssemblyInfo.cs"
23+
$FilePath = [System.IO.Path]::GetFullPath((Join-Path (pwd) "Toastify\Properties\AssemblyInfo.cs"))
24+
$Lines = (Get-Content 'Toastify\Properties\AssemblyInfo.cs') -replace '^\[(assembly: AssemblyVersion)\(".*"\)\]$', "[`$1(`"$NewVersion.*`")]"
25+
[System.IO.File]::WriteAllLines($FilePath, $Lines)
26+
27+
Write-Host "Update: ToastifyAPI\Properties\AssemblyInfo.cs"
28+
$FilePath = [System.IO.Path]::GetFullPath((Join-Path (pwd) "ToastifyAPI\Properties\AssemblyInfo.cs"))
29+
$Lines = (Get-Content 'ToastifyAPI\Properties\AssemblyInfo.cs') -replace '^\[(assembly: AssemblyVersion)\(".*"\)\]$', "[`$1(`"$NewVersion.*`")]"
30+
[System.IO.File]::WriteAllLines($FilePath, $Lines)
31+
32+
Write-Host "Press any key to continue ..."
33+
$x = $Host.UI.RawUI.ReadKey("NoEcho,IncludeKeyDown")

0 commit comments

Comments
 (0)