Skip to content

Commit

Permalink
Add installer beta icon. Closes microsoft#677 (microsoft#678)
Browse files Browse the repository at this point in the history
  • Loading branch information
garrytrinder authored Apr 25, 2024
1 parent bc2f1ee commit 2078e19
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 3 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,12 @@ jobs:
path: ./dev-proxy-abstractions-${{ github.ref_name }}.zip
- name: Add installer icon
if: contains(matrix.architecture, 'win-')
run: cp ./media/icon.ico ./${{ env.release }}
run: |
if ('${{ github.ref_name }}'.Contains('beta')) {
cp ./media/icon-beta.ico ./${{ env.release }}
} else {
cp ./media/icon.ico ./${{ env.release }}
}
- name: Update version in beta installer
if: contains(matrix.architecture, 'win-') && contains(github.ref_name, '-beta')
run: |
Expand Down
2 changes: 1 addition & 1 deletion install-beta.iss
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ AppPublisherURL={#MyAppURL}
AppSupportURL={#MyAppURL}
AppUpdatesURL={#MyAppURL}
AppVerName={#MyAppName} v{#MyAppVersion}
UninstallDisplayIcon={app}\icon.ico
UninstallDisplayIcon={app}\icon-beta.ico
DefaultDirName={autopf}\{#MyAppName}
DefaultGroupName={#MyAppName}
DisableProgramGroupPage=yes
Expand Down
Binary file added media/icon-beta.ico
Binary file not shown.
Binary file added media/icon-beta.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 4 additions & 1 deletion scripts/local-setup.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,11 @@ if ($isBeta) {
$content -replace '"newVersionNotification": "stable"', '"newVersionNotification": "beta"' | Set-Content ../bld/devproxyrc.json
}

# Set icon filename
$icon = $isBeta ? "icon-beta.ico" : "icon.ico"

# Add installer icon
Copy-Item ../media/icon.ico ../bld/icon.ico
Copy-Item "../media/$icon" "../bld/$icon"

# Set installer filename
$installer = $isBeta ? "install-beta.iss" : "install.iss"
Expand Down

0 comments on commit 2078e19

Please sign in to comment.