Skip to content

Commit 38799f3

Browse files
committed
Add MSI build and devenv
This adds msi and devenv to build the msi installer as vscode doesn’t support building directly from a visual studio code project from a vdproject using msbuild. So using devenv is needed to build it. For reference. actions/runner-images#5301 Signed-off-by: Spidy123222 <64176728+Spidy123222@users.noreply.github.com>
1 parent c6b2dde commit 38799f3

1 file changed

Lines changed: 12 additions & 2 deletions

File tree

.github/workflows/build.yaml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ jobs:
2727

2828
- name: Add MSBuild
2929
uses: microsoft/setup-msbuild@v1.0.2
30+
31+
- name: Setup VS Dev Environment
32+
uses: seanmiddleditch/gha-setup-vsdevenv@v4
3033

3134
- name: Run get-source in Libimobiledevice-vs
3235
run: cd Dependencies/libimobiledevice-vs; ./get-source.cmd
@@ -49,10 +52,17 @@ jobs:
4952
# run: cd "c:\vcpkg"; ./bootstrap-vcpkg.bat; vcpkg install --feature-flags=manifests,binarycaching,default-features,websockets --recurse openssl boost-regex:x64-windows dirent mdnsresponder winsparkle libiconv:x64-windows zlib:x64-windows; vcpkg integrate install
5053
run: cd "c:\vcpkg"; ./bootstrap-vcpkg.bat; vcpkg integrate install
5154

52-
- name: Build
55+
- name: Build Project
5356
working-directory: ${{env.GITHUB_WORKSPACE}}
5457
run: |
55-
msbuild /m /p:Configuration=${{env.BUILD_CONFIGURATION}} /p:Platform=${{env.BUILD_PLATFORM}} /p:SolutionDir="${{github.workspace}}\\" ${{env.PROJECT_FILE_PATH}}; tree /f /a
58+
msbuild /m /p:Configuration=${{env.BUILD_CONFIGURATION}} /p:Platform=${{env.BUILD_PLATFORM}} /p:SolutionDir="${{github.workspace}}\\" ${{env.PROJECT_FILE_PATH}}
59+
60+
- name: Disable Out of Process Building
61+
run: .\DisableOutOfProcBuild.exe
62+
working-directory: C:\Program Files\Microsoft Visual Studio\2022\Enterprise\Common7\IDE\CommonExtensions\Microsoft\VSI\DisableOutOfProcBuild
63+
64+
- name: Build .MSI
65+
run: DevEnv AltInstaller/AltInstaller.vdproj /build Release; tree /f /a
5666

5767
- name: Upload ZIP Artifact
5868
uses: actions/upload-artifact@v3.1.0

0 commit comments

Comments
 (0)