@@ -36,7 +36,8 @@ environment:
36
36
37
37
NSIS_EXE : c:\Program Files (x86)\NSIS\makensis.exe
38
38
39
- SQLITE_URL : https://www.sqlite.org/2024/sqlite-amalgamation-3450300.zip
39
+ SQLITE_URL : https://www.sqlite.org/2024/sqlite-amalgamation-3460000.zip
40
+ SQLITE_HASH : 1221eed70de626871912bfca144c00411f0c30d3c2b7935cff3963b63370ef7c
40
41
41
42
CMAKE_GEN_X86 : -G "Visual Studio 17 2022" -A "Win32"
42
43
CMAKE_GEN_X64 : -G "Visual Studio 17 2022" -A "x64"
@@ -62,12 +63,15 @@ clone_depth: 1
62
63
before_build :
63
64
# git submodules
64
65
- ' cd "%REPO_DIR%"'
65
- - ' git submodule update --init --remote --recursive || cd . '
66
+ - ' git submodule update --init --remote --recursive'
66
67
67
- # updating sqlite-amalgamation
68
- - ' cd \'
69
- - ' appveyor DownloadFile "%SQLITE_URL%" -FileName "sqlite.zip"'
70
- - ' 7z e -y "sqlite.zip" -o"%REPO_DIR%\libchewing\thirdparty\sqlite-amalgamation"'
68
+ # use bleeding-edge libchewing
69
+ - ' cd "%REPO_DIR%"\libchewing'
70
+ - ' git checkout master'
71
+
72
+ # update sqlite
73
+ - ' cd "%REPO_DIR%"'
74
+ - powershell -Command "& { (Get-Content 'CMakeLists.txt') | ForEach-Object { $_ -replace 'URL https://www.sqlite.org/.*$', 'URL %SQLITE_URL%' } | ForEach-Object { $_ -replace 'URL_HASH .*$', 'URL_HASH SHA3_256=%SQLITE_HASH%' } | Set-Content 'CMakeLists.txt' }"
71
75
72
76
# install Rust
73
77
- ' cd \'
@@ -105,6 +109,7 @@ after_build:
105
109
106
110
- ' cd "%INST_DIR%" && mkdir "x86"'
107
111
- ' copy "%BUILD_DIR%\x86\ChewingTextService\Release\*.dll" ".\x86"'
112
+ - ' copy "%BUILD_DIR%\x86\libchewing\chewing-cli.exe" "."'
108
113
- ' copy "%BUILD_DIR%\x86\libchewing\Release\*.dll" ".\x86"'
109
114
- ' copy "%BUILD_DIR%\x86\ChewingPreferences\Release\*.exe" "."'
110
115
0 commit comments