From 1572244346eebf2b8c2f47c9eac40066554e1c07 Mon Sep 17 00:00:00 2001 From: Samuel Sloniker Date: Tue, 30 Jul 2024 09:26:07 -0700 Subject: [PATCH] Put version number in Windows builds --- build-windows.ps1 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/build-windows.ps1 b/build-windows.ps1 index 58d272f..e3db9a4 100644 --- a/build-windows.ps1 +++ b/build-windows.ps1 @@ -1,7 +1,9 @@ pyinstaller --icon "icon.ico" --windowed --onefile --hidden-import "tornado.web" --add-data "icon.ico:files" --add-data "README.md:files" --add-data "GPL-3.0.txt:files" --add-data "CC-BY-SA-4.0.txt:files" --name "navpoint.exe" "main.py" & "C:\Program Files (x86)\NSIS\makensis.exe" ".\windows_installer.nsi" -$distName = "navpoint-windows-$env:PROCESSOR_ARCHITECTURE" +$version = (Get-Content -Path README.md -TotalCount 1).Split()[3] + +$distName = "navpoint-$version-windows-$env:PROCESSOR_ARCHITECTURE" Remove-Item -Path "dist\$distName-*"