Browse Source

PRS 8.25a
Tweaked Install Script to clean up autogenerated version files when building

frankvandenbos 10 months ago
parent
commit
74f7dd9417
4 changed files with 14 additions and 10 deletions
  1. 3 3
      prs.desktop/prsdesktop.iss
  2. 3 3
      prs.licensing/PRSLicensing.iss
  3. 3 3
      prs.server/PRSServer.iss
  4. 5 1
      prs.server/install.bat

+ 3 - 3
prs.desktop/prsdesktop.iss

@@ -8,7 +8,7 @@
 #define public Dependency_Path_NetCoreCheck "dependencies\"
 
 #define MyAppName "PRS Desktop"
-#define MyAppVersion "8.25"
+#define MyAppVersion "8.25a"
 #define MyAppPublisher "PRS Digital"
 #define MyAppURL "https://www.prs-software.com.au"
 #define MyAppExeName "PRSDesktop.exe"
@@ -28,8 +28,8 @@ AppSupportURL={#MyAppURL}
 AppUpdatesURL={#MyAppURL}
 DefaultDirName={userpf}\{#MyAppName}
 DisableProgramGroupPage=yes
-OutputDir=C:\Development\prs\prs.server\bin\Debug\net8.0-windows\update
-SourceDir=C:\Development\prs\prs.server\..\prs.desktop\
+OutputDir=C:\development\prs\prs.server\bin\Debug\net8.0-windows\update
+SourceDir=C:\development\prs\prs.server\..\prs.desktop\
 OutputBaseFilename=PRSDesktopSetup
 Compression=lzma
 SolidCompression=yes

+ 3 - 3
prs.licensing/PRSLicensing.iss

@@ -8,7 +8,7 @@
 #define public Dependency_Path_NetCoreCheck "dependencies\"
 
 #define MyAppName "PRS Licensing"
-#define MyAppVersion "8.25"
+#define MyAppVersion "8.25a"
 #define MyAppPublisher "PRS Digital"
 #define MyAppURL "https://www.prs-software.com.au"
 #define MyAppExeName "PRSLicensing.exe"
@@ -27,8 +27,8 @@ AppSupportURL={#MyAppURL}
 AppUpdatesURL={#MyAppURL}
 DefaultDirName={pf}\{#MyAppName}
 DisableProgramGroupPage=yes
-OutputDir=C:\Development\prs\prs.server\bin\Debug\net8.0-windows\update
-SourceDir=C:\Development\prs\prs.server\..\prs.licensing\
+OutputDir=C:\development\prs\prs.server\bin\Debug\net8.0-windows\update
+SourceDir=C:\development\prs\prs.server\..\prs.licensing\
 OutputBaseFilename=PRSLicensingSetup
 Compression=lzma
 SolidCompression=yes

+ 3 - 3
prs.server/PRSServer.iss

@@ -8,7 +8,7 @@
 #define public Dependency_Path_NetCoreCheck "dependencies\"
 
 #define MyAppName "PRS Server"
-#define MyAppVersion "8.25"
+#define MyAppVersion "8.25a"
 #define MyAppPublisher "PRS Digital"
 #define MyAppURL "https://www.prs-software.com.au"
 #define MyAppExeName "PRSServer.exe"
@@ -27,8 +27,8 @@ AppSupportURL={#MyAppURL}
 AppUpdatesURL={#MyAppURL}
 DefaultDirName={pf}\{#MyAppName}
 DisableProgramGroupPage=yes
-OutputDir=C:\Development\prs\prs.server\
-SourceDir=C:\Development\prs\prs.server\
+OutputDir=C:\development\prs\prs.server\
+SourceDir=C:\development\prs\prs.server\
 OutputBaseFilename=PRSServerSetup
 Compression=lzma
 SolidCompression=yes

+ 5 - 1
prs.server/install.bat

@@ -31,7 +31,7 @@ echo Compiling Server Installer...
 powershell -Command "(gc PRSServer.iss) -replace '#define MyAppVersion ""[^\""]*""', '#define MyAppVersion """%version_number%"""' | Out-File -encoding ASCII PRSServer.iss"
 powershell -Command "(gc PRSServer.iss) -replace 'OutputDir=[^\""]*', 'OutputDir=%~dp0' | Out-File -encoding ASCII PRSServer.iss"
 powershell -Command "(gc PRSServer.iss) -replace 'SourceDir=[^\""]*', 'SourceDir=%~dp0' | Out-File -encoding ASCII PRSServer.iss"
-"C:\Program Files (x86)\Inno Setup 6\iscc.exe" /Qp /O"." /F"PRSSetup" PRSServer.iss
+rem "C:\Program Files (x86)\Inno Setup 6\iscc.exe" /Qp /O"." /F"PRSSetup" PRSServer.iss
 
 echo Compiling License Installer...
 powershell -Command "(gc ../prs.licensing/prslicensing.iss) -replace '#define MyAppVersion ""[^\""]*""', '#define MyAppVersion """%version_number%"""' | Out-File -encoding ASCII ../prs.licensing/prslicensing.iss"
@@ -39,5 +39,9 @@ powershell -Command "(gc ../prs.licensing/prslicensing.iss) -replace 'OutputDir=
 powershell -Command "(gc ../prs.licensing/prslicensing.iss) -replace 'SourceDir=[^\""]*', 'SourceDir=%~dp0..\prs.licensing\' | Out-File -encoding ASCII ../prs.licensing/prslicensing.iss"
 "C:\Program Files (x86)\Inno Setup 6\iscc.exe" /Qp /O"." /F"PRSLicensing" ../prs.licensing/prslicensing.iss 
 
+echo Cleaning Up...
+del bin\Debug\net8.0-windows\update\version.txt
+del bin\Debug\net8.0-windows\version.txt
+
 echo.
 echo All Done! PRS v%version_number% Installer can be found at %~dp0PRSSetup.exe