mirror of
https://github.com/oven-sh/bun
synced 2026-02-09 10:28:47 +00:00
* Updated Dependencies Script * demo * fix submodule hell!!! * lol * attmept 2 * install nasm in ci * setup sh 1 * yeah * better zlib building * codegen stuff * attempt 2 at bun codegen ci * o * deps improvements * generaet part of compile-cpp-only.ps1 * restore these * good enough for Unix * remove libuv submodule lol * pass over docs
29 lines
666 B
PowerShell
29 lines
666 B
PowerShell
$ErrorActionPreference = 'Stop' # Setting strict mode, similar to 'set -euo pipefail' in bash
|
|
. (Join-Path $PSScriptRoot "env.ps1")
|
|
|
|
function Reset-Submodule {
|
|
param (
|
|
$Repository
|
|
)
|
|
Push-Location $Repository
|
|
try {
|
|
Run git reset --hard
|
|
Run git clean -fdx
|
|
}
|
|
finally {
|
|
Pop-Location
|
|
}
|
|
}
|
|
|
|
$Deps = Join-Path $PSScriptRoot "../src/deps"
|
|
|
|
Reset-Submodule $Deps/base64
|
|
Reset-Submodule $Deps/boringssl
|
|
Reset-Submodule $Deps/c-ares
|
|
Reset-Submodule $Deps/libarchive
|
|
Reset-Submodule $Deps/lol-html
|
|
Reset-Submodule $Deps/mimalloc
|
|
Reset-Submodule $Deps/picohttpparser
|
|
Reset-Submodule $Deps/tinycc
|
|
Reset-Submodule $Deps/zlib
|
|
Reset-Submodule $Deps/zstd |