mirror of
https://github.com/modrinth/code.git
synced 2026-08-25 17:14:50 +00:00
fix: export modal path handling (#6949)
* fix: export modal path handling * fix: prepr * fix: NEVER_EXPORTABLE_PATH_SUFFIXES list
This commit is contained in:
@@ -729,6 +729,7 @@ pub async fn instance_export_mrpack(
|
||||
instance_id: &str,
|
||||
export_location: PathBuf,
|
||||
included_overrides: Vec<String>,
|
||||
excluded_overrides: Vec<String>,
|
||||
version_id: Option<String>,
|
||||
description: Option<String>,
|
||||
name: Option<String>,
|
||||
@@ -737,6 +738,7 @@ pub async fn instance_export_mrpack(
|
||||
instance_id,
|
||||
export_location,
|
||||
included_overrides,
|
||||
excluded_overrides,
|
||||
version_id,
|
||||
description,
|
||||
name,
|
||||
@@ -748,8 +750,13 @@ pub async fn instance_export_mrpack(
|
||||
#[tauri::command]
|
||||
pub async fn instance_get_pack_export_candidates(
|
||||
instance_id: &str,
|
||||
) -> Result<Vec<SafeRelativeUtf8UnixPathBuf>> {
|
||||
Ok(theseus::instance::get_pack_export_candidates(instance_id).await?)
|
||||
parent: Option<SafeRelativeUtf8UnixPathBuf>,
|
||||
) -> Result<Vec<theseus::instance::PackExportCandidate>> {
|
||||
Ok(theseus::instance::get_pack_export_candidates_for_parent(
|
||||
instance_id,
|
||||
parent,
|
||||
)
|
||||
.await?)
|
||||
}
|
||||
|
||||
#[tauri::command]
|
||||
|
||||
Reference in New Issue
Block a user