Skip to content

Commit 6039e70

Browse files
committed
Update build script
1 parent d45361b commit 6039e70

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

.appveyor.yml

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ environment:
3636

3737
NSIS_EXE: c:\Program Files (x86)\NSIS\makensis.exe
3838

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
4041

4142
CMAKE_GEN_X86: -G "Visual Studio 17 2022" -A "Win32"
4243
CMAKE_GEN_X64: -G "Visual Studio 17 2022" -A "x64"
@@ -62,12 +63,15 @@ clone_depth: 1
6263
before_build:
6364
# git submodules
6465
- 'cd "%REPO_DIR%"'
65-
- 'git submodule update --init --remote --recursive || cd .'
66+
- 'git submodule update --init --remote --recursive'
6667

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' }"
7175

7276
# install Rust
7377
- 'cd \'
@@ -105,6 +109,7 @@ after_build:
105109

106110
- 'cd "%INST_DIR%" && mkdir "x86"'
107111
- 'copy "%BUILD_DIR%\x86\ChewingTextService\Release\*.dll" ".\x86"'
112+
- 'copy "%BUILD_DIR%\x86\libchewing\chewing-cli.exe" "."'
108113
- 'copy "%BUILD_DIR%\x86\libchewing\Release\*.dll" ".\x86"'
109114
- 'copy "%BUILD_DIR%\x86\ChewingPreferences\Release\*.exe" "."'
110115

0 commit comments

Comments
 (0)