summaryrefslogtreecommitdiffstats
path: root/build.ps1
blob: 00c6a8bda609c9426e09351cb0b5834e54b36adb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
mkdir ./build

cmake -S . -B build -G "Visual Studio 17 2022" -A x64
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
cmake --build build --config Release -j 32
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }

# Package up into ./dist dir
if (Test-Path -Path ./dist) {
  rm -Recurse ./dist
}
mkdir ./dist
cp -Recurse build/bin/Release/* dist
cp -Recurse ./Scripts ./dist/

if (Test-Path -Path ../Assets/yum_food/Modular_Slang) {
  rm -Recurse ../Assets/yum_food/Modular_Slang
}
cp -Recurse ./dist ../Assets/yum_food/Modular_Slang/