Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,9 @@ fn find_existing_libchdb() -> Option<(PathBuf, PathBuf)> {

fn download_libchdb_to_out_dir(out_dir: &Path) -> Result<(), Box<dyn std::error::Error>> {
let platform = get_platform_string()?;
let version = "v4.0.1";
let url = format!("https://github.com/chdb-io/chdb/releases/download/{version}/{platform}");
let version = "v26.1.0";
let url =
format!("https://github.com/chdb-io/chdb-core/releases/download/{version}/{platform}");
println!("cargo:warning=Downloading libchdb from: {url}");
let response = reqwest::blocking::get(&url)?;
let content = response.bytes()?;
Expand Down
6 changes: 3 additions & 3 deletions update_libchdb.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ download_and_extract() {
}

# Get the newest release version
LATEST_RELEASE=v4.0.1
LATEST_RELEASE=v26.1.0

# Select the correct package based on OS and architecture
case "$(uname -s)" in
Expand All @@ -54,8 +54,8 @@ case "$(uname -s)" in
esac

# Main download URL
DOWNLOAD_URL="https://github.com/chdb-io/chdb/releases/download/$LATEST_RELEASE/$PLATFORM"
FALLBACK_URL="https://github.com/chdb-io/chdb/releases/latest/download/$PLATFORM"
DOWNLOAD_URL="https://github.com/chdb-io/chdb-core/releases/download/$LATEST_RELEASE/$PLATFORM"
FALLBACK_URL="https://github.com/chdb-io/chdb-core/releases/latest/download/$PLATFORM"

# Try the main download URL first
if ! download_and_extract "$DOWNLOAD_URL"; then
Expand Down