Skip to content

Commit

Permalink
Update build script
Browse files Browse the repository at this point in the history
  • Loading branch information
Chocobo1 committed Jun 1, 2024
1 parent d45361b commit 6039e70
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions .appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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 \'
Expand Down Expand Up @@ -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" "."'

Expand Down

0 comments on commit 6039e70

Please sign in to comment.