Get up and running with Kimi, GLM, MiniMax, DeepSeek, gpt-oss, Qwen, Gemma and other models.
Use architecture specific folders in the build script
Hernan Martinez204349b17bce
diff --git a/scripts/build_windows.ps1 b/scripts/build_windows.ps1index 7db56887f..d0fb4db54 100644--- a/scripts/build_windows.ps1+++ b/scripts/build_windows.ps1@@ -7,6 +7,8 @@$ErrorActionPreference = "Stop"function checkEnv() {+ $script:TARGET_ARCH=$Env:PROCESSOR_ARCHITECTURE.ToLower()+ Write-host "Building for ${script:TARGET_ARCH}"write-host "Locating required tools and paths"$script:SRC_DIR=$PWDif (!$env:VCToolsRedistDir) {@@ -30,7 +32,7 @@ function checkEnv() {$script:INNO_SETUP_DIR=(get-item "C:\Program Files*\Inno Setup*\")[0]- $script:DEPS_DIR="${script:SRC_DIR}\dist\windows-amd64"+ $script:DEPS_DIR="${script:SRC_DIR}\dist\windows-${script:TARGET_ARCH}"$env:CGO_ENABLED="1"echo "Checking version"if (!$env:VERSION) {@@ -81,8 +83,8 @@ function buildOllama() {/csp "Google Cloud KMS Provider" /kc ${env:KEY_CONTAINER} ollama.exeif ($LASTEXITCODE -ne 0) { exit($LASTEXITCODE)}}- New-Item -ItemType Directory -Path .\dist\windows-amd64\ -Force- cp .\ollama.exe .\dist\windows-amd64\+ New-Item -ItemType Directory -Path .\dist\windows-${script:TARGET_ARCH}\ -Force+ cp .\ollama.exe .\dist\windows-${script:TARGET_ARCH}\}function buildApp() {@@ -135,8 +137,8 @@ function buildInstaller() {}function distZip() {- write-host "Generating stand-alone distribution zip file ${script:SRC_DIR}\dist\ollama-windows-amd64.zip"- Compress-Archive -Path "${script:SRC_DIR}\dist\windows-amd64\*" -DestinationPath "${script:SRC_DIR}\dist\ollama-windows-amd64.zip" -Force+ write-host "Generating stand-alone distribution zip file ${script:SRC_DIR}\dist\ollama-windows-${script:TARGET_ARCH}.zip"+ Compress-Archive -Path "${script:SRC_DIR}\dist\windows-${script:TARGET_ARCH}\*" -DestinationPath "${script:SRC_DIR}\dist\ollama-windows-${script:TARGET_ARCH}.zip" -Force}try {