Skip to content

Commit a9752ed

Browse files
niheavenbrian6932
authored andcommitted
fix(sqlite): Skip use_sqlite_cache config on ARM64 platform (ScoopInstaller#5918)
1 parent c4906ae commit a9752ed

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
### Features
44

5-
- **scoop-search:** Use SQLite for caching apps to speed up local search ([#5851](https://github.com/ScoopInstaller/Scoop/issues/5851))
5+
- **scoop-search:** Use SQLite for caching apps to speed up local search ([#5851](https://github.com/ScoopInstaller/Scoop/issues/5851), [#5918](https://github.com/ScoopInstaller/Scoop/issues/5918))
66

77
## [v0.4.2](https://github.com/ScoopInstaller/Scoop/compare/v0.4.1...v0.4.2) - 2024-05-14
88

lib/core.ps1

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,9 @@ function Complete-ConfigChange {
218218
}
219219

220220
if ($Name -eq 'use_sqlite_cache' -and $Value -eq $true) {
221+
if ((Get-DefaultArchitecture) -eq 'arm64') {
222+
abort 'SQLite cache is not supported on ARM64 platform.'
223+
}
221224
. "$PSScriptRoot\..\lib\database.ps1"
222225
. "$PSScriptRoot\..\lib\manifest.ps1"
223226
info 'Initializing SQLite cache in progress... This may take a while, please wait.'

0 commit comments

Comments
 (0)