Skip to content

Commit

Permalink
Add WebView2 NuGet Package
Browse files Browse the repository at this point in the history
  • Loading branch information
greynewell committed Sep 25, 2024
1 parent e5746fd commit 40bf838
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ If you prefer to build from source, follow these steps:
./scripts/build/release.ps1
```

**You may need to run the above commands with administrative privileges on Windows.**

Each build script will also download the relevant model weights for the inference engine.

4. **Install the plugin:**
Expand Down
4 changes: 4 additions & 0 deletions scripts/build/debug.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ New-Item -Path "build\debug" -ItemType Directory -Force
# Download models
& "$PSScriptRoot\..\models.ps1"

# Install webview2
Register-PackageSource -provider NuGet -name nugetRepository -location https://www.nuget.org/api/v2
Install-Package Microsoft.Web.WebView2 -Scope CurrentUser -RequiredVersion 1.0.1901.177 -Source nugetRepository

# build llama.cpp server

Push-Location llama.cpp
Expand Down
4 changes: 4 additions & 0 deletions scripts/build/release.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ New-Item -Path "build\release" -ItemType Directory -Force
# Download models
& "$PSScriptRoot\..\models.ps1"

# Install webview2
Register-PackageSource -provider NuGet -name nugetRepository -location https://www.nuget.org/api/v2
Install-Package Microsoft.Web.WebView2 -Scope CurrentUser -RequiredVersion 1.0.1901.177 -Source nugetRepository

# build llama.cpp server
Push-Location llama.cpp
cmake -S . -G "Visual Studio 17 2022" -B ..\build\llama.cpp
Expand Down

0 comments on commit 40bf838

Please sign in to comment.