浏览代码

Update parameters

Ruben 11 月之前
父节点
当前提交
1fe3f01c5c
共有 2 个文件被更改,包括 3 次插入3 次删除
  1. 2 2
      .github/workflows/TestSignWindows.yaml
  2. 1 1
      Build/Get-VersionInfo.ps1

+ 2 - 2
.github/workflows/TestSignWindows.yaml

@@ -21,7 +21,7 @@ jobs:
       # Step 4 (x64): Publish x64 version
       # Step 4 (x64): Publish x64 version
       - name: Publish x64 version
       - name: Publish x64 version
         run: |
         run: |
-          pwsh -File "${{ github.workspace }}\Build\Build WPF.ps1" -Platform "x64" -selfContained $True -outputPath "${{ github.workspace }}\Build\PicView-v${{steps.get-version.outputs.version}}-win-x64"
+          pwsh -File "${{ github.workspace }}\Build\Build WPF.ps1" -Platform "x64" -selfContained 1 -outputPath "${{ github.workspace }}\Build\PicView-v${{steps.get-version.outputs.version}}-win-x64"
         shell: pwsh
         shell: pwsh
 
 
       # Step 5 (x64): Compile .ISS to .EXE Installer for x64
       # Step 5 (x64): Compile .ISS to .EXE Installer for x64
@@ -34,7 +34,7 @@ jobs:
       # Step 6 (arm64): Publish arm64 version
       # Step 6 (arm64): Publish arm64 version
       - name: Publish arm64 version
       - name: Publish arm64 version
         run: |
         run: |
-          pwsh -File "${{ github.workspace }}\Build\Build WPF.ps1" -Platform "arm64" -selfContained $True -outputPath "${{ github.workspace }}\Build\PicView-v${{steps.get-version.outputs.version}}-win-arm64"
+          pwsh -File "${{ github.workspace }}\Build\Build WPF.ps1" -Platform "arm64" -selfContained 1 -outputPath "${{ github.workspace }}\Build\PicView-v${{steps.get-version.outputs.version}}-win-arm64"
         shell: pwsh
         shell: pwsh
 
 
 
 

+ 1 - 1
Build/Get-VersionInfo.ps1

@@ -1,7 +1,7 @@
 # Get-VersionInfo.ps1
 # Get-VersionInfo.ps1
 
 
 # Load Directory.Build.props as an XML
 # Load Directory.Build.props as an XML
-[xml]$xml = Get-Content "$PSScriptRoot/../Directory.Build.props"
+[xml]$xml = Get-Content "$PSScriptRoot/../src/Directory.Build.props"
 
 
 # Extract VersionPrefix, VersionSuffix, and FileVersion
 # Extract VersionPrefix, VersionSuffix, and FileVersion
 $versionPrefix = $xml.Project.PropertyGroup.VersionPrefix
 $versionPrefix = $xml.Project.PropertyGroup.VersionPrefix