Skip to content

Commit

Permalink
chore: fix syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
karenc-bq committed Jun 20, 2024
1 parent c00f860 commit 7e4a6da
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build-installer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
runs-on: windows-latest
env:
CMAKE_GENERATOR: Visual Studio 17 2022
WIX_DIR: "C:\Program Files (x86)\WiX Toolset v3.14\bin"
WIX_DIR: "C:/Program Files (x86)/WiX Toolset v3.14/bin"
steps:
- name: Checkout source code
uses: actions/checkout@v4
Expand Down Expand Up @@ -52,7 +52,7 @@ jobs:
- name: Run build installer script
shell: pwsh
run: |
.\build_installer.ps1 x64 ${{ env.BUILD_TYPE}} "${{env.CMAKE_GENERATOR}}" C:/mysql-${{ vars.MYSQL_VERSION }}-winx64 ${{env.WIX_DIR}}
.\build_installer.ps1 x64 ${{ env.BUILD_TYPE}} "${{env.CMAKE_GENERATOR}}" C:/mysql-${{ vars.MYSQL_VERSION }}-winx64 "${{env.WIX_DIR}}"
- name: Configure AWS credentials
uses: aws-actions/[email protected]
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ jobs:
runs-on: windows-latest
env:
CMAKE_GENERATOR: Visual Studio 17 2022
WIX_DIR: "C:\Program Files (x86)\WiX Toolset v3.14\bin"
WIX_DIR: "C:/Program Files (x86)/WiX Toolset v3.14/bin"
steps:
- name: Checkout source code
uses: actions/checkout@v4
Expand All @@ -178,7 +178,7 @@ jobs:

- name: Run build installer script
run: |
.\build_installer.ps1 x64 ${{ env.BUILD_TYPE}} "${{env.CMAKE_GENERATOR}}" C:/mysql-${{ vars.MYSQL_VERSION }}-winx64 ${{env.WIX_DIR}}
.\build_installer.ps1 x64 ${{ env.BUILD_TYPE}} "${{env.CMAKE_GENERATOR}}" C:/mysql-${{ vars.MYSQL_VERSION }}-winx64 "${{env.WIX_DIR}}"
- name: Configure AWS credentials
uses: aws-actions/[email protected]
Expand Down
6 changes: 3 additions & 3 deletions build_installer.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ if ($null -eq $CONFIGURATION) {
$CONFIGURATION = "Release"
}
if ($null -eq $MYSQL_DIR) {
$MYSQL_DIR = "C:\Program Files\MySQL\MySQL Server 8.0"
$MYSQL_DIR = "C:\Program Files\MySQL\MySQL Server 8.3"
}

# BUILD DRIVER
Expand Down Expand Up @@ -85,12 +85,12 @@ if ($ARCHITECTURE -eq "x64") {
if ($null -eq $WIX_DIR) {
cmake -DMSI_64=1 -G "NMake Makefiles"
} else {
cmake -DMSI_64=1 -G "NMake Makefiles" -DWIX_DIR=$WIX_DIR
cmake -DMSI_64=1 -G "NMake Makefiles" -DWIX_DIR="$WIX_DIR"
}
} elseif ($null -eq $WIX_DIR) {
cmake -DMSI_64=0 -G "NMake Makefiles"
} else {
cmake -DMSI_64=0 -G "NMake Makefiles" -DWIX_DIR=$WIX_DIR
cmake -DMSI_64=0 -G "NMake Makefiles" -DWIX_DIR="$WIX_DIR"
}
nmake

Expand Down

0 comments on commit 7e4a6da

Please sign in to comment.