Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit c587ffb

Browse files
Update main.yml #GITBUILD asdf
1 parent 2ea8a53 commit c587ffb

File tree

1 file changed

+16
-5
lines changed

1 file changed

+16
-5
lines changed

‎.github/workflows/main.yml

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -83,19 +83,30 @@ jobs:
8383
)
8484
echo Found UnityLauncherPro.exe
8585
86-
# download vs installer builder
87-
- name: Download Installer‐Projects VSIX
86+
# locate VS 2022
87+
- name: Locate Visual Studio 2022
88+
id: vswhere
89+
shell: pwsh
90+
run: |
91+
$installPath = vswhere -latest -products * -requires Microsoft.Component.MSBuild `
92+
-property installationPath
93+
if (-not $installPath) { throw 'VS 2022 not found' }
94+
Write-Host "##[set-output name=installPath]$installPath"
95+
96+
# download vs installer builder (v2.0.1)
97+
- name: Download Installer-Projects VSIX
8898
shell: pwsh
8999
run: |
90100
$vsixUrl = "https://marketplace.visualstudio.com/_apis/public/gallery/publishers/VisualStudioClient/vsextensions/MicrosoftVisualStudio2022InstallerProjects/2.0.1/vspackage"
91101
Invoke-WebRequest $vsixUrl -OutFile installerprojects.vsix
92102
93103
# install vs installer builder
94-
- name: Install InstallerProjects extension
104+
- name: Install Installer-Projects extension
95105
shell: pwsh
96106
run: |
97-
& "${{ steps.vswhere.outputs.installPath }}\Common7\IDE\VSIXInstaller.exe" \
98-
installerprojects.vsix /quiet
107+
$vsixInstaller = Join-Path "${{ steps.vswhere.outputs.installPath }}" 'Common7\IDE\VSIXInstaller.exe'
108+
Write-Host "Running: $vsixInstaller installerprojects.vsix /quiet"
109+
& $vsixInstaller installerprojects.vsix /quiet
99110
100111
# Build MSI installer project using Visual Studio 2022 workaround
101112
- name: Build Installer MSI

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /