Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,17 @@ jobs:
triplet: ${{ matrix.triplet }}
token: ${{ github.token }}

- name: Set up VS
uses: ilammy/msvc-dev-cmd@v1
with:
arch: ${{ matrix.arch }}

- name: Configure CMake
run: |
cmake `
-G Ninja `
-B ${{github.workspace}}/${{ matrix.buildloc }} `
-DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} `
-DCMAKE_GENERATOR_PLATFORM=${{ matrix.platform }} `
-DCMAKE_TOOLCHAIN_FILE=${{ github.workspace }}/vcpkg/scripts/buildsystems/vcpkg.cmake `
-DHTTP_API_DIR="C:\\${{ matrix.programfiles }}\\Mosquitto\\dashboard" `
-DVCPKG_MANIFEST_MODE=ON `
Expand All @@ -80,6 +85,7 @@ jobs:
- name: Installer
uses: joncloud/makensis-action@v5.0
with:
arguments: "/V4"
script-file: ${{github.workspace}}/installer/${{ matrix.nsis }}

- name: Upload installer to artifacts
Expand Down
6 changes: 3 additions & 3 deletions installer/mosquitto.nsi
Original file line number Diff line number Diff line change
Expand Up @@ -184,9 +184,9 @@ SectionEnd

Section "Visual Studio Runtime"
SetOutPath "$INSTDIR"
File "VC_redist.x86.exe"
ExecWait '"$INSTDIR\VC_redist.x86.exe" /quiet /norestart'
Delete "$INSTDIR\VC_redist.x86.exe"
File "vc_redist.x86.exe"
ExecWait '"$INSTDIR\vc_redist.x86.exe" /quiet /norestart'
Delete "$INSTDIR\vc_redist.x86.exe"
SectionEnd

Section "Service" SecService
Expand Down
6 changes: 3 additions & 3 deletions installer/mosquitto64.nsi
Original file line number Diff line number Diff line change
Expand Up @@ -185,9 +185,9 @@ SectionEnd

Section "Visual Studio Runtime"
SetOutPath "$INSTDIR"
File "VC_redist.x64.exe"
ExecWait '"$INSTDIR\VC_redist.x64.exe" /quiet /norestart'
Delete "$INSTDIR\VC_redist.x64.exe"
File "vc_redist.x64.exe"
ExecWait '"$INSTDIR\vc_redist.x64.exe" /quiet /norestart'
Delete "$INSTDIR\vc_redist.x64.exe"
SectionEnd

Section "Service" SecService
Expand Down