Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
Summpot committed Aug 14, 2023
1 parent 9aef7e2 commit cd1baab
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,12 @@ $CMakeBuildDir = Join-Path $BuildDir "cmake-build"
$NativeDir = Join-Path $PSScriptRoot "native"
$TreeSitterDir = Join-Path $NativeDir "tree-sitter"
$ParsersDir = Join-Path $NativeDir "parsers"
$ParsersDir
New-MainNuspec -OutputDir $NuspecsDir -Version $Version -ProjectName "tree-sitter"
New-Nuspec -RID $RID -OutputDir $NuspecsDir -Version $Version -ProjectName "tree-sitter"
Build-CMakeProject -RID $RID -CMakeBuildDir $CMakeBuildDir -OutputDir $NuspecsDir -ProjectDir $TreeSitterDir
Get-ChildItem -Path $ParsersDir | ForEach-Object {
Build-NodeGypProject -ProjectDir $_.FullName -OutputDir $NuspecsDir -RID $RID
Build-NodeGypProject -ProjectDir $_ -OutputDir $NuspecsDir -RID $RID
New-MainNuspec -OutputDir $NuspecsDir -Version $Version -ProjectName $_.Name
New-Nuspec -RID $RID -OutputDir $NuspecsDir -Version $Version -ProjectName $_.Name
}
2 changes: 1 addition & 1 deletion scripts/build.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,6 @@ function Build-NodeGypProject {
& tree-sitter generate
& node-gyp configure
& node-gyp build
Get-ChildItem -Recurse -Filter *.node | Select-Object -First 1 | Copy-Item $_ (Join-Path $RIDDir "$($ProjectDir.Name).$($_.Extension)")
Get-ChildItem -Recurse -Filter *.node | Select-Object -First 1 | ForEach-Object { Copy-Item -Path $_.FullName -Destination (Join-Path $RIDDir "$($ProjectDir.Name).$($_.Extension)")}
Pop-Location
}

0 comments on commit cd1baab

Please sign in to comment.