Skip to content

Commit 42af27d

Browse files
authored
fix(sqlite): Fix compatibility with Windows PowerShell (#6045)
1 parent 716b6db commit 42af27d

2 files changed

Lines changed: 8 additions & 3 deletions

File tree

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
## [Unreleased](https://github.com/ScoopInstaller/Scoop/compare/master...develop)
2+
3+
### Bug Fixes
4+
5+
- **sqlite:** Fix compatibility with Windows PowerShell ([#6045](https://github.com/ScoopInstaller/Scoop/issues/6045))
6+
17
## [v0.5.0](https://github.com/ScoopInstaller/Scoop/compare/v0.4.2...v0.5.0) - 2024-07-01
28

39
### Features

lib/database.ps1

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,14 @@ function Get-SQLite {
2121
# Install SQLite
2222
try {
2323
Write-Host "Downloading SQLite $Version..." -ForegroundColor DarkYellow
24-
$sqlitePkgPath = "$env:TEMP\sqlite.nupkg"
24+
$sqlitePkgPath = "$env:TEMP\sqlite.zip"
2525
$sqliteTempPath = "$env:TEMP\sqlite"
2626
$sqlitePath = "$PSScriptRoot\..\supporting\sqlite"
2727
Invoke-WebRequest -Uri "https://api.nuget.org/v3-flatcontainer/stub.system.data.sqlite.core.netframework/$version/stub.system.data.sqlite.core.netframework.$version.nupkg" -OutFile $sqlitePkgPath
2828
Write-Host "Extracting SQLite $Version..." -ForegroundColor DarkYellow -NoNewline
2929
Expand-Archive -Path $sqlitePkgPath -DestinationPath $sqliteTempPath -Force
3030
New-Item -Path $sqlitePath -ItemType Directory -Force | Out-Null
31-
Move-Item -Path "$sqliteTempPath\build\net45\*" -Destination $sqlitePath -Exclude '*.targets' -Force
32-
Move-Item -Path "$sqliteTempPath\lib\net45\System.Data.SQLite.dll" -Destination $sqlitePath -Force
31+
Move-Item -Path "$sqliteTempPath\build\net451\*", "$sqliteTempPath\lib\net451\System.Data.SQLite.dll" -Destination $sqlitePath -Force
3332
Remove-Item -Path $sqlitePkgPath, $sqliteTempPath -Recurse -Force
3433
Write-Host ' Done' -ForegroundColor DarkYellow
3534
return $true

0 commit comments

Comments
 (0)