Skip to content

Commit

Permalink
Update Windows installer metadata
Browse files Browse the repository at this point in the history
Updating installer metadata to align with the specification outlined in
github/git-fundamentals#700 in preparation for
using `wingetcreate` to publish releases to microsoft/winget-pkgs.
  • Loading branch information
ldennington committed Oct 12, 2021
1 parent 7e17ee3 commit 0a8d40c
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions .github/workflows/build-git-installers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -211,11 +211,25 @@ jobs:
sed -i -e \
's/recently_seen="\$(get_recently_seen)"/recently_seen="bogus-to-keep-pestering"/' \
$b/git-extra/git-update-git-for-windows
- name: Set the installer Publisher to the Git Fundamentals team
- name: Update installer metadata for microsoft/git
shell: bash
run: |
b=/usr/src/build-extra &&
sed -i -e 's/^\(AppPublisher=\).*/\1The Git Fundamentals Team at GitHub/' $b/installer/install.iss
# Remove '.vfs' from version
version=$(echo ${{ needs.prereqs.outputs.tag_version }} | sed s/.vfs//g) &&
# Replace AppPublisher and AppVersion with correct values for microsoft/git
sed -i -e "s/^\(AppPublisher=\).*/\1Microsoft/" $b/installer/install.iss &&
sed -i -e "s/^\(AppVersion=\).*/\1$version/" $b/installer/install.iss &&
# Add 'ArchitecturesAllowed' and 'LicenseFile' after 'AppVersion'
sed -i -e '/^AppVersion=.*/a\
ArchitecturesAllowed=x64
' $b/installer/install.iss &&
sed -i -e '/^ArchitecturesAllowed=.*/a\
LicenseFile={#SourcePath}\\..\\COPYING
' $b/installer/install.iss
- name: Let the installer configure Visual Studio to use the installed Git
shell: bash
run: |
Expand Down

0 comments on commit 0a8d40c

Please sign in to comment.