Skip to content

Commit c28d5a5

Browse files
authored
Align newVersionNotification on beta installations. Closes #672 (#673)
Closes #672
1 parent 14f1934 commit c28d5a5

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

.github/workflows/create-release.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,14 @@ jobs:
3131
$content = Get-Content dev-proxy.csproj
3232
$content -replace '<AssemblyName>devproxy</AssemblyName>', '<AssemblyName>devproxy-beta</AssemblyName>' | Set-Content dev-proxy.csproj
3333
popd
34+
- name: Set newVersionNotification for beta
35+
if: contains('${{ github.ref_name }}', '-beta')
36+
run: |
37+
pushd
38+
cd ./dev-proxy
39+
$content = Get-Content devproxyrc.json
40+
$content -replace '"newVersionNotification": "stable"', '"newVersionNotification": "beta"' | Set-Content devproxyrc.json
41+
popd
3442
- name: Publish ${{ matrix.architecture }}
3543
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 }}
3644
- name: Build plugins

scripts/local-setup.ps1

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ if (-not (Test-Path ../bld)) {
1313
if ($isBeta) {
1414
# Rename executable for beta
1515
Rename-Item -Path ../bld/devproxy.exe -NewName devproxy-beta.exe
16+
# Set newVersionNotification for beta
17+
$content = Get-Content ../bld/devproxyrc.json
18+
$content -replace '"newVersionNotification": "stable"', '"newVersionNotification": "beta"' | Set-Content ../bld/devproxyrc.json
1619
}
1720

1821
# Add installer icon

0 commit comments

Comments
 (0)