Skip to content

Commit

Permalink
fix(ci): resolve path to parent dir for windows
Browse files Browse the repository at this point in the history
  • Loading branch information
kkoomen committed Oct 27, 2020
1 parent 03dde7b commit 02aabcb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions scripts/build.ps1
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
param([String] $buildTarget, [String] $outFile)
$rootDir = Split-Path $myInvocation.MyCommand.Path
$rootDir = Resolve-Path -Path ((Split-Path $myInvocation.MyCommand.Path) + "\..")
# $winVersion = switch ([IntPtr]::Size -eq 4) {
# $true {"32"}
# $false {"64"}
Expand All @@ -19,11 +19,11 @@ node "$rootDir\pkg\lib-es5\bin.js" . -t "$buildTarget" --out-path "$rootDir\bin"

# Archive the binary.
if ($outFile -ne "") {
$outFile = "$rootDir\bin\$outFile.exe"
$outFile = "$outFile.zip"
cd "$rootDir\bin"
rm -f *.zip
rm *.zip
echo "==> Archiving $rootDir\bin\vim-doge.exe -> $rootDir\bin\$outFile"
zip "$outFile" vim-doge.exe
7z a -tzip "$outFile" vim-doge.exe
}

echo "Done building vim-doge binaries"
2 changes: 1 addition & 1 deletion scripts/install.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
$rootDir = Split-Path $myInvocation.MyCommand.Path
$rootDir = Resolve-Path -Path ((Split-Path $myInvocation.MyCommand.Path) + "\..")
$version = Get-Content "$rootDir\.version"
$winVersion = switch ([IntPtr]::Size -eq 4) {
$true {"32"}
Expand Down

0 comments on commit 02aabcb

Please sign in to comment.