Skip to content

Commit 98c4cf0

Browse files
committed
Update to SQLite 3.51.1, improve build script
- Update source to 3.51.1 amalgamation - Automatically generate module.prop in Get-SQLiteSource.ps1 - Move Get-NDK to submodule
1 parent 9a5c136 commit 98c4cf0

9 files changed

Lines changed: 5968 additions & 3419 deletions

File tree

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "GetNDK"]
2+
path = GetNDK
3+
url = git@github.com:TheFreeman193/GetNDK

Get-NDK.ps1

Lines changed: 0 additions & 590 deletions
This file was deleted.

Get-SQLiteSource.ps1

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@ param(
1212
[Parameter(Mandatory, ParameterSetName = 'Specific')]
1313
[version]$Version,
1414

15-
[string]$SourceDir = $(Join-Path $PSScriptRoot 'src')
15+
[string]$SourceDir = $(Join-Path $PSScriptRoot 'src'),
16+
17+
[string]$ModuleProp = $(Join-Path $PSScriptRoot 'module_template/module.prop')
1618
)
1719
begin {
1820
function Get-SQLiteVersionCode {
@@ -93,6 +95,20 @@ process {
9395
Remove-Item $Extracted[0] -Force -Recurse
9496
if (-not $?) { return }
9597
}
98+
99+
$PropText = (@'
100+
id=sqlite3-android
101+
name=SQLite3 for Android
102+
version={0}
103+
versionCode={1}
104+
author=TheFreeman193
105+
description=Static up-to-date sqlite3 binaries for Android, built directly from sqlite3 source
106+
updateJson=https://raw.githubusercontent.com/TheFreeman193/sqlite3-android-module/main/module-update.json
107+
108+
'@ -f $TargetVersion, $FileVersion).Replace("`r`n", "`n")
109+
$ModuleDir = Split-Path $ModuleProp
110+
if (-not (Test-Path $ModuleDir)) { $null = New-Item -ItemType Directory $ModuleDir }
111+
Set-Content $ModuleProp -Value $PropText -NoNewline
96112
Write-Host -fo Green 'Complete. ' -NoNewline
97113
Write-Host -fo White "Amalgamated source for version '$TargetVersion' downloaded to '$SourceDir'."
98114
}

GetNDK

Submodule GetNDK added at 1d3dc84

module_template/module.prop

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
id=sqlite3-android
22
name=SQLite3 for Android
3-
version=3.50.2
4-
versionCode=3500200
3+
version=3.51.1
4+
versionCode=3510100
55
author=TheFreeman193
66
description=Static up-to-date sqlite3 binaries for Android, built directly from sqlite3 source
77
updateJson=https://raw.githubusercontent.com/TheFreeman193/sqlite3-android-module/main/module-update.json

0 commit comments

Comments
 (0)