From 6039e70493c613f97790c8e375a0f82b2dd7bfd8 Mon Sep 17 00:00:00 2001 From: Chocobo1 Date: Wed, 29 May 2024 02:33:43 +0800 Subject: [PATCH] Update build script --- .appveyor.yml | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/.appveyor.yml b/.appveyor.yml index 4e0cc8c..1b9e0f4 100644 --- a/.appveyor.yml +++ b/.appveyor.yml @@ -36,7 +36,8 @@ environment: NSIS_EXE: c:\Program Files (x86)\NSIS\makensis.exe - SQLITE_URL: https://www.sqlite.org/2024/sqlite-amalgamation-3450300.zip + SQLITE_URL: https://www.sqlite.org/2024/sqlite-amalgamation-3460000.zip + SQLITE_HASH: 1221eed70de626871912bfca144c00411f0c30d3c2b7935cff3963b63370ef7c CMAKE_GEN_X86: -G "Visual Studio 17 2022" -A "Win32" CMAKE_GEN_X64: -G "Visual Studio 17 2022" -A "x64" @@ -62,12 +63,15 @@ clone_depth: 1 before_build: # git submodules - 'cd "%REPO_DIR%"' - - 'git submodule update --init --remote --recursive || cd .' + - 'git submodule update --init --remote --recursive' - # updating sqlite-amalgamation - - 'cd \' - - 'appveyor DownloadFile "%SQLITE_URL%" -FileName "sqlite.zip"' - - '7z e -y "sqlite.zip" -o"%REPO_DIR%\libchewing\thirdparty\sqlite-amalgamation"' + # use bleeding-edge libchewing + - 'cd "%REPO_DIR%"\libchewing' + - 'git checkout master' + + # update sqlite + - 'cd "%REPO_DIR%"' + - 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' }" # install Rust - 'cd \' @@ -105,6 +109,7 @@ after_build: - 'cd "%INST_DIR%" && mkdir "x86"' - 'copy "%BUILD_DIR%\x86\ChewingTextService\Release\*.dll" ".\x86"' + - 'copy "%BUILD_DIR%\x86\libchewing\chewing-cli.exe" "."' - 'copy "%BUILD_DIR%\x86\libchewing\Release\*.dll" ".\x86"' - 'copy "%BUILD_DIR%\x86\ChewingPreferences\Release\*.exe" "."'