forked from tigerbeetle/tigerbeetle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
bootstrap.ps1
32 lines (23 loc) · 835 Bytes
/
bootstrap.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
param(
[switch]$build = $false
)
# Make sure we're in the repository root.
cd "$PSScriptRoot"
git fetch --tags --force --quiet
$version = $( git tag --sort=committerdate | Select-Object -Last 1 )
if ($build) {
echo "Building TigerBeetle binary from source for your machine."
echo ""
git checkout $version
.\scripts\install.bat
} else {
echo "Downloading pre-built TigerBeetle binary for your machine."
echo ""
curl.exe -Lo tigerbeetle.zip "https://github.com/tigerbeetle/tigerbeetle/releases/download/$version/tigerbeetle-x86_64-windows.zip"
Expand-Archive tigerbeetle.zip .
}
echo @"
Successfully set up $(./tigerbeetle version) at $(pwd)\tigerbeetle.exe.
To get started running TigerBeetle and interacting with it, see:
https://github.com/tigerbeetle/tigerbeetle#running-tigerbeetle
"@