Skip to content

Commit

Permalink
gha: update framework version
Browse files Browse the repository at this point in the history
  • Loading branch information
nomi-san authored Jun 6, 2024
1 parent 8b85aea commit 2331de9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ jobs:
- name: Prepare envars
run: |
echo "SHORT_SHA=$("${{ github.sha }}" | cut -c1-8)" >> $env:GITHUB_ENV
echo "APP_VERSION=$((Get-Content -Path "app\App.xaml.cs" | Select-String -Pattern 'VERSION\s=\s"(.+)"' -AllMatches).Matches.Groups[1].Value)" >> $env:GITHUB_ENV
echo "APP_VERSION=$((Get-Content -Path "app\Program.cs" | Select-String -Pattern 'AppVersion\s=\s"(.+)"' -AllMatches).Matches.Groups[1].Value)" >> $env:GITHUB_ENV
- name: Patch project files
run: |
(Get-Content app\ParsecVDisplay.csproj) -replace "FrameworkVersion>v4.5", "FrameworkVersion>v4.8" | Out-File app\ParsecVDisplay.csproj
(Get-Content app\App.config) -replace "Version=v4.5", "Version=v4.8" | Out-File app\App.config
(Get-Content app\ParsecVDisplay.csproj) -replace "FrameworkVersion>v4.6.2", "FrameworkVersion>v4.8" | Out-File app\ParsecVDisplay.csproj
(Get-Content app\App.config) -replace "Version=v4.6.2", "Version=v4.8" | Out-File app\App.config
- name: Setup msbuild
uses: microsoft/setup-msbuild@v2
Expand Down

0 comments on commit 2331de9

Please sign in to comment.