Skip to content

Commit

Permalink
build script for windows fleshed out better
Browse files Browse the repository at this point in the history
  • Loading branch information
Dawith committed Oct 8, 2025
1 parent f4418e2 commit 86a281c
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions setup/winbuild.ps1
Original file line number Diff line number Diff line change
@@ -1 +1,26 @@
Get-Content ..\.env | ForEach-Object {
if ($_ -match '^\s*([^#][^=]+?)\s*=\s*(.+)$') {
$name = $matches[1].Trim()
$value = $matches[2].Trim()
[System.Environment]::SetEnvironmentVariable($name, $value)
}
}

$thing = docker images | Select-String -Pattern "geonosis"
Write-Output $thing

if ($thing -eq "")
{
Write-Output "Building Docker image `"geonosis`"..."
docker build -t geonosis .
}
else
{
Write-Output "Docker image `"geonosis`" already exists."
}

mkdir -p ${DATA_PATH}\matfiles -ErrorAction SilentlyContinue
mkdir -p ${DATA_PATH}\model_weights -ErrorAction SilentlyContinue
mkdir -p ${DATA_PATH}\figures -ErrorAction SilentlyContinue
mkdir -p ${DATA_PATH}\parquet -ErrorAction SilentlyContinue
docker build -t geonosis .

0 comments on commit 86a281c

Please sign in to comment.