Skip to content

Commit c4f6ca8

Browse files
committed
prebuilt 0.0.8 - (sqlcipher version v4.10.0)
1 parent ff087b3 commit c4f6ca8

File tree

4 files changed

+56
-27
lines changed

4 files changed

+56
-27
lines changed

.github/workflows/libsqlcipher_release_with_tag.yml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,22 @@ jobs:
1515
uses: actions/checkout@v4
1616

1717
- name: Install openssl(x86_64)
18+
shell: cmd
1819
run: |
19-
choco install openssl -y --version "3.5.3" --x86_64
20-
cmd /c mklink /D "C:\OpenSSL-Win64" "C:\Program Files\OpenSSL-Win64"
20+
choco install openssl -y --version "3.5.3" --x86_64 --no-progress
21+
where openssl
22+
mklink /D "C:\OpenSSL-Win64" "C:\Program Files\OpenSSL"
2123
2224
- name: Run Buildscript
23-
run: build-on-windows.bat
25+
shell: cmd
26+
run: |
27+
call "%ProgramFiles(x86)%\Microsoft Visual Studio\Installer\vswhere.exe" -latest -products * -requires Microsoft.VisualStudio.Component.VC.Tools.x86.x64 -property installationPath > vs_path.txt
28+
set /p VSPATH=<vs_path.txt
29+
call "%VSPATH%\VC\Auxiliary\Build\vcvarsall.bat" x64
30+
build-on-windows.bat
2431
2532
- name: Install packages
26-
run: choco install 7zip.portable
33+
run: choco install 7zip.portable -y --no-progress
2734

2835
- name: Run Zip
2936
run: 7z a -r windows-x86_64.zip output

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
44

5+
## [0.0.8]
6+
7+
- libsqlcipher version v4.10.0
8+
59
## [0.0.7]
610

711
- libsqlcipher version v4.5.6

NOTE.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,6 @@ SQLITE_EXTRA_SHUTDOWN=sqlcipher_extra_shutdown
3939
- https://mvnrepository.com/artifact/net.zetetic/android-database-sqlcipher
4040

4141

42-
42+
43+
- https://greenday96.blogspot.com/2025/06/sqlcipher-windows-build.html
44+
- https://github.com/sqlitebrowser/sqlitebrowser/blob/master/.github/workflows/cppcmake-windows.yml

build-on-windows.bat

Lines changed: 38 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,24 @@
1-
@echo off
2-
setlocal
1+
@ECHO OFF
2+
SETLOCAL
33

4-
set VERSION=v4.10.0
5-
git clone -b %VERSION% --depth 1 https://github.com/sqlcipher/sqlcipher.git
4+
SET VERSION=v4.10.0
5+
6+
SET SRC_DIR=%CD%
7+
SET DST_DIR=%SRC_DIR%\output
8+
SET SQLCIPHER_DIR=%SRC_DIR%\sqlcipher
69

7-
set "SQLITE3DLL=sqlcipher.dll"
8-
set "LTLINKOPTS=C:\OpenSSL-Win64\lib\VC\x64\MT\libcrypto.lib"
9-
set "OPT_FEATURE_FLAGS="^
10+
@REM ---------------------------------------------------------------------------------------------
11+
@REM Clone
12+
@REM ---------------------------------------------------------------------------------------------
13+
git clone -b %VERSION% --depth 1 https://github.com/sqlcipher/sqlcipher.git
14+
CD sqlcipher
15+
16+
@REM ---------------------------------------------------------------------------------------------
17+
@REM Config
18+
@REM ---------------------------------------------------------------------------------------------
19+
SET "SQLITE3DLL=sqlcipher.dll"
20+
SET "LTLINKOPTS=C:\OpenSSL-Win64\lib\VC\x64\MT\libcrypto.lib"
21+
SET "OPT_FEATURE_FLAGS="^
1022
-DSQLITE_TEMP_STORE=2 ^
1123
-DSQLITE_HAS_CODEC=1 ^
1224
-DSQLITE_ENABLE_FTS3=1 ^
@@ -24,24 +36,28 @@ set "OPT_FEATURE_FLAGS="^
2436
-DSQLITE_EXTRA_SHUTDOWN=sqlcipher_extra_shutdown ^
2537
""
2638

27-
echo ==clean===============================================================
28-
del /f /q sqlite3.c
29-
del /f /q sqlcipher.dll
39+
@REM ---------------------------------------------------------------------------------------------
40+
@REM Windows (x86_64)
41+
@REM ---------------------------------------------------------------------------------------------
42+
43+
ECHO ==clean===============================================================
44+
DEL /f /q sqlite3.c
45+
DEL /f /q sqlcipher.dll
3046

31-
echo ==sqlite3.c===========================================================
32-
nmake /f Makefile.msc sqlite3.c USE_AMALGAMATION=1 NO_TCL=1 LTLINKOPTS=%LTLINKOPTS% OPT_FEATURE_FLAGS=%OPT_FEATURE_FLAGS% || exit /b
47+
ECHO ==sqlite3.c===========================================================
48+
nmake /f Makefile.msc sqlite3.c USE_AMALGAMATION=1 NO_TCL=1 LTLINKOPTS=%LTLINKOPTS% OPT_FEATURE_FLAGS=%OPT_FEATURE_FLAGS% || EXIT /b
3349

34-
echo ==update=sqlite3.c====================================================
35-
echo typedef unsigned long long uint64_t; > temp.c && type sqlite3.c >> temp.c && move /Y temp.c sqlite3.c
50+
ECHO ==update=sqlite3.c====================================================
51+
ECHO typedef unsigned long long uint64_t; > temp.c && type sqlite3.c >> temp.c && move /Y temp.c sqlite3.c
3652

37-
echo ==sqlcipher.dll=======================================================
38-
nmake /f Makefile.msc sqlcipher.dll USE_AMALGAMATION=1 NO_TCL=1 SQLITE3DLL=%SQLITE3DLL% LTLINKOPTS=%LTLINKOPTS% OPT_FEATURE_FLAGS=%OPT_FEATURE_FLAGS% || exit /b
53+
ECHO ==sqlcipher.dll=======================================================
54+
nmake /f Makefile.msc sqlcipher.dll USE_AMALGAMATION=1 NO_TCL=1 SQLITE3DLL=%SQLITE3DLL% LTLINKOPTS=%LTLINKOPTS% OPT_FEATURE_FLAGS=%OPT_FEATURE_FLAGS% || EXIT /b
3955

40-
echo ==output==============================================================
41-
set SRC_DIR=%CD%
42-
set OUTPUT_DIR=%SRC_DIR%\output
43-
copy /Y "%SRC_DIR%\sqlcipher.dll" "%OUTPUT_DIR%\"
44-
copy /Y "C:\OpenSSL-Win64\libcrypto-3-x64.dll" "%OUTPUT_DIR%\"
56+
ECHO ==output==============================================================
57+
CD %SRC_DIR%
58+
MKDIR %DST_DIR%
4559

46-
endlocal
60+
COPY /Y "%SQLCIPHER_DIR%\sqlcipher.dll" "%DST_DIR%\" || EXIT /b
61+
COPY /Y "C:\OpenSSL-Win64\libcrypto-3-x64.dll" "%DST_DIR%\" || EXIT /b
4762

63+
ENDLOCAL

0 commit comments

Comments
 (0)