diff options
author | Vijay A <vraravam@users.noreply.github.com> | 2022-04-23 09:36:45 -0500 |
---|---|---|
committer | Vijay A <vraravam@users.noreply.github.com> | 2022-04-23 09:36:45 -0500 |
commit | f0faa9fb29e1e3f4676d995afc282d3e3f84031e (patch) | |
tree | 561f725109b777d4251e13cd341f8b7a61d4c1a3 | |
parent | Fix windows build script [skip ci] (diff) | |
download | ferdium-app-f0faa9fb29e1e3f4676d995afc282d3e3f84031e.tar.gz ferdium-app-f0faa9fb29e1e3f4676d995afc282d3e3f84031e.tar.zst ferdium-app-f0faa9fb29e1e3f4676d995afc282d3e3f84031e.zip |
Use correct folder separator for windows [skip ci]
-rw-r--r-- | scripts/build-windows.ps1 | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/build-windows.ps1 b/scripts/build-windows.ps1 index 4a81a383e..72f941c05 100644 --- a/scripts/build-windows.ps1 +++ b/scripts/build-windows.ps1 | |||
@@ -7,8 +7,8 @@ | |||
7 | 7 | ||
8 | $USERHOME = "${env:HOMEDRIVE}${env:HOMEPATH}" | 8 | $USERHOME = "${env:HOMEDRIVE}${env:HOMEPATH}" |
9 | 9 | ||
10 | $env:ELECTRON_CACHE = $USERHOME + '/.cache/electron' | 10 | $env:ELECTRON_CACHE = "$USERHOME\.cache\electron" |
11 | $env:ELECTRON_BUILDER_CACHE = $USERHOME + '/.cache/electron-builder' | 11 | $env:ELECTRON_BUILDER_CACHE = "$USERHOME\.cache\electron-builder" |
12 | $env:CSC_IDENTITY_AUTO_DISCOVERY = $false | 12 | $env:CSC_IDENTITY_AUTO_DISCOVERY = $false |
13 | $env:CI = $true | 13 | $env:CI = $true |
14 | 14 | ||
@@ -53,7 +53,7 @@ if ("v$EXPECTED_NODE_VERSION" -ne $ACTUAL_NODE_VERSION) { | |||
53 | } | 53 | } |
54 | 54 | ||
55 | # Check if the 'recipes' folder is present either as a git submodule or a symbolic link | 55 | # Check if the 'recipes' folder is present either as a git submodule or a symbolic link |
56 | if (-not (Test-Path -Path "recipes/package.json" -PathType Leaf)) { | 56 | if (-not (Test-Path -Path recipes\package.json -PathType Leaf)) { |
57 | fail_with_docs "'recipes' folder is missing or submodule has not been checked out" | 57 | fail_with_docs "'recipes' folder is missing or submodule has not been checked out" |
58 | } | 58 | } |
59 | 59 | ||
@@ -165,7 +165,7 @@ $TARGET_ARCH="x64" | |||
165 | Write-Host "*************** App successfully built! ***************" | 165 | Write-Host "*************** App successfully built! ***************" |
166 | 166 | ||
167 | # Final check to ensure that the version built is the same as the latest commit | 167 | # Final check to ensure that the version built is the same as the latest commit |
168 | $VERSION_BUILT_HASH = (Get-Content "build/buildInfo.json" | ConvertFrom-Json).gitHashShort | 168 | $VERSION_BUILT_HASH = (Get-Content build\buildInfo.json | ConvertFrom-Json).gitHashShort |
169 | $GIT_BUILT_HASH = (git rev-parse --short HEAD) | 169 | $GIT_BUILT_HASH = (git rev-parse --short HEAD) |
170 | if ($VERSION_BUILT_HASH -ne $GIT_BUILT_HASH) | 170 | if ($VERSION_BUILT_HASH -ne $GIT_BUILT_HASH) |
171 | { | 171 | { |