Skip to content

Commit

Permalink
Align newVersionNotification on beta installations. Closes #672 (#673)
Browse files Browse the repository at this point in the history
Closes #672
  • Loading branch information
garrytrinder authored Apr 24, 2024
1 parent 14f1934 commit c28d5a5
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,14 @@ jobs:
$content = Get-Content dev-proxy.csproj
$content -replace '<AssemblyName>devproxy</AssemblyName>', '<AssemblyName>devproxy-beta</AssemblyName>' | Set-Content dev-proxy.csproj
popd
- name: Set newVersionNotification for beta
if: contains('${{ github.ref_name }}', '-beta')
run: |
pushd
cd ./dev-proxy
$content = Get-Content devproxyrc.json
$content -replace '"newVersionNotification": "stable"', '"newVersionNotification": "beta"' | Set-Content devproxyrc.json
popd
- name: Publish ${{ matrix.architecture }}
run: dotnet publish ./dev-proxy/dev-proxy.csproj -c Release -p:PublishSingleFile=true -p:InformationalVersion=$("${{ github.ref_name }}".Substring(1)) -r ${{ matrix.architecture }} --self-contained -o ./${{ env.release }}
- name: Build plugins
Expand Down
3 changes: 3 additions & 0 deletions scripts/local-setup.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ if (-not (Test-Path ../bld)) {
if ($isBeta) {
# Rename executable for beta
Rename-Item -Path ../bld/devproxy.exe -NewName devproxy-beta.exe
# Set newVersionNotification for beta
$content = Get-Content ../bld/devproxyrc.json
$content -replace '"newVersionNotification": "stable"', '"newVersionNotification": "beta"' | Set-Content ../bld/devproxyrc.json
}

# Add installer icon
Expand Down

0 comments on commit c28d5a5

Please sign in to comment.