Skip to content

Commit 314464c

Browse files
committed
💚 CI 调整
1 parent 5eb60b6 commit 314464c

File tree

4 files changed

+6
-10
lines changed

4 files changed

+6
-10
lines changed

.github/workflows/build_signPath.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
steps:
1414

1515
- name: 签出仓库
16-
uses: actions/checkout@v3.3.0
16+
uses: actions/checkout@v4
1717
with:
1818
fetch-depth: 0
1919
ref: master

.github/workflows/build_store.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
steps:
1313

1414
- name: 签出仓库
15-
uses: actions/checkout@v3.3.0
15+
uses: actions/checkout@v4
1616
with:
1717
fetch-depth: 0
1818
ref: master

.gitignore

-4
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,5 @@ app.*.symbols
3636
# Obfuscation related
3737
app.*.map.json
3838

39-
# Windows build
40-
windows/sqlite3.zip
41-
windows/sqlite3.dll
42-
4339
# secret
4440
.env

windows/CMakeLists.txt

+4-4
Original file line numberDiff line numberDiff line change
@@ -111,14 +111,14 @@ install(FILES "${AOT_LIBRARY}" DESTINATION "${INSTALL_BUNDLE_DATA_DIR}"
111111
message("checking sqlite3.dll")
112112
find_file(Sqlite sqlite3.dll PATHS "${INSTALL_BUNDLE_LIB_DIR}")
113113
if(NOT Sqlite)
114-
message("sqlite3.dll not found, trying to find zip file")
115-
find_file(SqliteZip sqlite3.zip PATHS "${CMAKE_CURRENT_SOURCE_DIR}")
114+
message("sqlite3.dll not found, trying to find zip file in ${PROJECT_BUILD_DIR}")
115+
find_file(SqliteZip sqlite3.zip PATHS "${PROJECT_BUILD_DIR}")
116116
if(NOT SqliteZip)
117117
message("sqlite3.zip not found, downloading")
118-
file(DOWNLOAD "https://www.sqlite.org/2024/sqlite-dll-win-x64-3450200.zip" "${CMAKE_CURRENT_SOURCE_DIR}/sqlite3.zip")
118+
file(DOWNLOAD "https://www.sqlite.org/2024/sqlite-dll-win-x64-3450200.zip" "${PROJECT_BUILD_DIR}/sqlite3.zip")
119119
endif()
120120
message("extracting sqlite3.dll")
121-
execute_process(COMMAND ${CMAKE_COMMAND} -E tar xvf sqlite3.zip sqlite3.dll WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})
121+
execute_process(COMMAND ${CMAKE_COMMAND} -E tar xvf sqlite3.zip sqlite3.dll WORKING_DIRECTORY ${PROJECT_BUILD_DIR})
122122
endif()
123123
message("installing sqlite3.dll")
124124
install(FILES "${CMAKE_CURRENT_SOURCE_DIR}/sqlite3.dll" DESTINATION "${INSTALL_BUNDLE_LIB_DIR}" COMPONENT Runtime)

0 commit comments

Comments
 (0)