Skip to content

Commit

Permalink
Add MSI build and devenv
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Spidy123222 committed Jun 17, 2023
1 parent c6b2dde commit 38799f3
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/build.yaml
Expand Up @@ -27,6 +27,9 @@ jobs:

- name: Add MSBuild
uses: microsoft/setup-msbuild@v1.0.2

- name: Setup VS Dev Environment
uses: seanmiddleditch/gha-setup-vsdevenv@v4

- name: Run get-source in Libimobiledevice-vs
run: cd Dependencies/libimobiledevice-vs; ./get-source.cmd
Expand All @@ -49,10 +52,17 @@ jobs:
# 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
run: cd "c:\vcpkg"; ./bootstrap-vcpkg.bat; vcpkg integrate install

- name: Build
- name: Build Project
working-directory: ${{env.GITHUB_WORKSPACE}}
run: |
msbuild /m /p:Configuration=${{env.BUILD_CONFIGURATION}} /p:Platform=${{env.BUILD_PLATFORM}} /p:SolutionDir="${{github.workspace}}\\" ${{env.PROJECT_FILE_PATH}}; tree /f /a
msbuild /m /p:Configuration=${{env.BUILD_CONFIGURATION}} /p:Platform=${{env.BUILD_PLATFORM}} /p:SolutionDir="${{github.workspace}}\\" ${{env.PROJECT_FILE_PATH}}
- name: Disable Out of Process Building
run: .\DisableOutOfProcBuild.exe
working-directory: C:\Program Files\Microsoft Visual Studio\2022\Enterprise\Common7\IDE\CommonExtensions\Microsoft\VSI\DisableOutOfProcBuild

- name: Build .MSI
run: DevEnv AltInstaller/AltInstaller.vdproj /build Release; tree /f /a

- name: Upload ZIP Artifact
uses: actions/upload-artifact@v3.1.0
Expand Down

0 comments on commit 38799f3

Please sign in to comment.