You've already forked AstralRinth
forked from didirus/AstralRinth
fix: another try to fix x86 windows arch
This commit is contained in:
@@ -3,6 +3,7 @@ use sqlx::sqlite::{
|
|||||||
SqliteConnectOptions, SqliteJournalMode, SqlitePoolOptions,
|
SqliteConnectOptions, SqliteJournalMode, SqlitePoolOptions,
|
||||||
};
|
};
|
||||||
use sqlx::{Pool, Sqlite};
|
use sqlx::{Pool, Sqlite};
|
||||||
|
use std::env;
|
||||||
use tokio::time::Instant;
|
use tokio::time::Instant;
|
||||||
use std::str::FromStr;
|
use std::str::FromStr;
|
||||||
use std::time::Duration;
|
use std::time::Duration;
|
||||||
@@ -84,8 +85,13 @@ Problem files:
|
|||||||
async fn fix_modrinth_issued_migrations(
|
async fn fix_modrinth_issued_migrations(
|
||||||
pool: &Pool<Sqlite>,
|
pool: &Pool<Sqlite>,
|
||||||
) -> crate::Result<()> {
|
) -> crate::Result<()> {
|
||||||
if cfg!(target_os = "windows") && cfg!(target_arch = "x86") {
|
let arch = env::consts::ARCH;
|
||||||
tracing::warn!("🛑 Skipping migration checksum fix on Windows x86 platform.");
|
let os = env::consts::OS;
|
||||||
|
|
||||||
|
tracing::info!("Running on OS: {}, ARCH: {}", os, arch);
|
||||||
|
|
||||||
|
if os == "windows" && arch == "x86" {
|
||||||
|
tracing::warn!("🛑 Skipping migration checksum fix on Windows x86 (runtime-detected)");
|
||||||
return Ok(());
|
return Ok(());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user