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

Commit

Permalink
v1.9.3
Browse files Browse the repository at this point in the history
  • Loading branch information
aleab committed Jul 2, 2017
1 parent 08d60e1 commit 746f137
Show file tree
Hide file tree
Showing 6 changed files with 44 additions and 7 deletions.
4 changes: 2 additions & 2 deletions InstallationScript/Install.nsi
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ Section "Toastify (required)"
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Toastify" "UninstallString" '"$INSTDIR\uninstall.exe"'
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Toastify" "DisplayIcon" "$INSTDIR\Toastify.exe,0"
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Toastify" "Publisher" "Jesper Palm, Oren Nachman, Alessandro Attard Barbini"
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Toastify" "Version" "1.9.2"
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Toastify" "DisplayVersion" "1.9.2"
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Toastify" "Version" "1.9.3"
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Toastify" "DisplayVersion" "1.9.3"
WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Toastify" "NoModify" 1
WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Toastify" "NoRepair" 1
WriteUninstaller "uninstall.exe"
Expand Down
4 changes: 2 additions & 2 deletions Toastify/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using System.Reflection;
using System.Reflection;
using System.Resources;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
Expand Down Expand Up @@ -51,4 +51,4 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.9.2.*")]
[assembly: AssemblyVersion("1.9.3.*")]
2 changes: 1 addition & 1 deletion Toastify/version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.9.2
1.9.3
4 changes: 2 additions & 2 deletions ToastifyAPI/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using System.Reflection;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;

Expand Down Expand Up @@ -32,4 +32,4 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.9.2.*")]
[assembly: AssemblyVersion("1.9.3.*")]
4 changes: 4 additions & 0 deletions update-version.cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
@ECHO OFF

CD /D %~dp0
powershell -File "update-version.ps1"
33 changes: 33 additions & 0 deletions update-version.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
$ScriptPath = $MyInvocation.MyCommand.Path | Split-Path
Set-Location "$ScriptPath"

$AsciiEncoding = New-Object System.Text.ASCIIEncoding

Write-Host -NoNewLine "Current version: "
Get-Content "Toastify\version"
$NewVersion = Read-Host -Prompt "New version"

Write-Host

Write-Host "Update: InstallationScript\Install.nsi"
$FilePath = [System.IO.Path]::GetFullPath((Join-Path (pwd) "InstallationScript\Install.nsi"))
$Lines = (Get-Content 'InstallationScript\Install.nsi') -replace '("(Display)?Version") ".*"', "`$1 `"$NewVersion`""
[System.IO.File]::WriteAllLines($FilePath, $Lines)

Write-Host "Update: Toastify\version"
$FilePath = [System.IO.Path]::GetFullPath((Join-Path (pwd) "Toastify\version"))
$Lines = "$NewVersion"
[System.IO.File]::WriteAllText($FilePath, $Lines, $AsciiEncoding)

Write-Host "Update: Toastify\Properties\AssemblyInfo.cs"
$FilePath = [System.IO.Path]::GetFullPath((Join-Path (pwd) "Toastify\Properties\AssemblyInfo.cs"))
$Lines = (Get-Content 'Toastify\Properties\AssemblyInfo.cs') -replace '^\[(assembly: AssemblyVersion)\(".*"\)\]$', "[`$1(`"$NewVersion.*`")]"
[System.IO.File]::WriteAllLines($FilePath, $Lines)

Write-Host "Update: ToastifyAPI\Properties\AssemblyInfo.cs"
$FilePath = [System.IO.Path]::GetFullPath((Join-Path (pwd) "ToastifyAPI\Properties\AssemblyInfo.cs"))
$Lines = (Get-Content 'ToastifyAPI\Properties\AssemblyInfo.cs') -replace '^\[(assembly: AssemblyVersion)\(".*"\)\]$', "[`$1(`"$NewVersion.*`")]"
[System.IO.File]::WriteAllLines($FilePath, $Lines)

Write-Host "Press any key to continue ..."
$x = $Host.UI.RawUI.ReadKey("NoEcho,IncludeKeyDown")

0 comments on commit 746f137

Please sign in to comment.