Skip to content

Commit 34a4896

Browse files
committed
Fix version not being read correctly
1 parent 70fe4dc commit 34a4896

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

.github/workflows/build-nightly.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ jobs:
148148
APP_INSTALLER_URL: https://s3.guerra24.net/projects/lrr/nightly/LRReader.UWP.appinstaller
149149
run: |
150150
.\Util\Version.ps1
151-
[xml]$xmlDoc = Get-Content "./Util/Package.appxmanifest"
151+
[xml]$xmlDoc = Get-Content "./LRReader.UWP/Package.appxmanifest"
152152
$env:APP_VERSION="$($xmlDoc.Package.Identity.Version)"
153153
.\Util\ConfigureInstaller.ps1 "$(Get-Location)/LRReader.UWP.ModernInstaller/Program.cs"
154154
MSBuild LRReader.UWP.ModernInstaller\LRReader.UWP.ModernInstaller.csproj -nologo -r -v:minimal /t:Publish /p:_IsPublishing=true /p:PublishProfile="win-${{ matrix.arch }}" /p:Configuration=Release /p:Platform=${{ matrix.arch }} /p:Deterministic=true /p:ContinuousIntegrationBuild=true

Util/Version.ps1

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
1-
$xmlFileName = "LRReader.UWP\Package.appxmanifest"
1+
$xmlFileName = "LRReader.UWP\Package.appxmanifest"
22
[xml]$xmlDoc = Get-Content $xmlFileName
33
$version = [System.Version]::Parse($xmlDoc.Package.Identity.Version);
44

55
$tag = "v$version"
66

77
$count = [int]$(& "C:\Program Files\Git\mingw64\bin\git.exe" rev-list --count "$tag..HEAD")
88

9-
# Remove this BEFORE next release!!!!!
109
$count += 1000
1110

1211
$Field = $version.GetType().GetField('_Revision', 'static,nonpublic,instance')

0 commit comments

Comments
 (0)