Skip to content

Commit 1e6a949

Browse files
1 parent 3ab8ea8 commit 1e6a949

10 files changed

Lines changed: 41 additions & 142 deletions

Cargo.toml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,9 @@ tauri = { workspace = true, features = [
2323
tauri-plugin-dialog = { workspace = true }
2424
tauri-plugin-fs = { workspace = true }
2525

26-
[target.'cfg(not(any(target_os = "android", target_os = "ios")))'.dependencies]
27-
tauri-plugin-updater = { workspace = true }
26+
# TEMPORARY DISABLE
27+
# [target.'cfg(not(any(target_os = "android", target_os = "ios")))'.dependencies]
28+
# tauri-plugin-updater = { workspace = true }
2829

2930
async-trait = { workspace = true }
3031
base64 = { workspace = true }

Source/Binary.rs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -228,10 +228,11 @@ pub fn Fn() {
228228
info!("[SetupTask] Post-setup initializations complete.");
229229
});
230230

231-
#[cfg(desktop)]
232-
{
233-
ApplicationHandle.plugin(tauri_plugin_updater::Builder::new().build()).expect("");
234-
}
231+
// TEMPORARY DISABLE
232+
// #[cfg(desktop)]
233+
// {
234+
// ApplicationHandle.plugin(tauri_plugin_updater::Builder::new().build()).expect("");
235+
// }
235236

236237
Ok(())
237238
})

Source/Command/Bootstrap.rs

Lines changed: 23 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ use crate::{
3333
Environment::CommandProvider::CommandHandler,
3434
FileSystem::FileExplorerViewProvider::FileExplorerViewProvider,
3535
RunTime::ApplicationRunTime::ApplicationRunTime,
36-
Update::UpdateService,
36+
// TEMPORARY DISABLE
37+
// Update::UpdateService,
3738
};
3839

3940
// --- Command Implementations ---
@@ -75,21 +76,22 @@ fn CommandOpenFile(
7576
})
7677
}
7778

78-
/// A native command that triggers the application update check.
79-
fn CommandCheckForUpdates(
80-
ApplicationHandle:AppHandle,
81-
_Window:WebviewWindow,
82-
RunTime:Arc<ApplicationRunTime>,
83-
_Argument:Value,
84-
) -> Pin<Box<dyn Future<Output = Result<Value, String>> + Send>> {
85-
Box::pin(async move {
86-
// The `true` here means we will notify the user even if there's no update.
87-
UpdateService::CheckForUpdates(ApplicationHandle, RunTime, true)
88-
.await
89-
.map_err(|e| e.to_string())?;
90-
Ok(Value::Null)
91-
})
92-
}
79+
// TEMPORARY DISABLE
80+
// /// A native command that triggers the application update check.
81+
// fn CommandCheckForUpdates(
82+
// ApplicationHandle:AppHandle,
83+
// _Window:WebviewWindow,
84+
// RunTime:Arc<ApplicationRunTime>,
85+
// _Argument:Value,
86+
// ) -> Pin<Box<dyn Future<Output = Result<Value, String>> + Send>> {
87+
// Box::pin(async move {
88+
// // The `true` here means we will notify the user even if there's no update.
89+
// UpdateService::CheckForUpdates(ApplicationHandle, RunTime, true)
90+
// .await
91+
// .map_err(|e| e.to_string())?;
92+
// Ok(Value::Null)
93+
// })
94+
// }
9395

9496
/// A native command that orchestrates the "Format Document" action.
9597
fn CommandFormatDocument(
@@ -164,10 +166,11 @@ pub fn RegisterNativeCommands(AppHandle:&AppHandle, ApplicationState:&Arc<Applic
164166
"workbench.action.files.openFile".to_string(),
165167
CommandHandler::Native(CommandOpenFile),
166168
);
167-
CommandRegistry.insert(
168-
"mountain.checkForUpdates".to_string(),
169-
CommandHandler::Native(CommandCheckForUpdates),
170-
);
169+
// TEMPORARY DISABLE
170+
// CommandRegistry.insert(
171+
// "mountain.checkForUpdates".to_string(),
172+
// CommandHandler::Native(CommandCheckForUpdates),
173+
// );
171174
CommandRegistry.insert(
172175
"editor.action.formatDocument".to_string(),
173176
CommandHandler::Native(CommandFormatDocument),

Source/Library.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,12 @@ pub mod FileSystem;
1616
pub mod ProcessManagement;
1717
pub mod RunTime;
1818
pub mod Track;
19-
pub mod Update;
2019
pub mod Vine;
2120
pub mod WorkSpace;
2221

22+
// TEMPORARY DISABLE
23+
// pub mod Update;
24+
2325
// The main binary entry point is defined in its own module.
2426
pub mod Binary;
2527

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
version https://git-lfs.github.com/spec/v1
2-
oid sha256:38bcde7b26199f69f0b6c7099be0c9c0c335e68ee919b054102aeb079a1cfc2c
3-
size 75036672
2+
oid sha256:7dc952329292006755859f5ff816835cae162dd338690e8666b0335ebafd8d69
3+
size 85211648
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
version https://git-lfs.github.com/spec/v1
2-
oid sha256:ba9935cb194ae7553865aee73c25f22101db933370599ec6969ad56bfd1dae99
3-
size 56561664
2+
oid sha256:29dcff58d854177350992c30861e0cad16c3193425c466734b14722e0f7e5c26
3+
size 59568128
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
version https://git-lfs.github.com/spec/v1
2-
oid sha256:bb83362a5d6041ef4f45a3af30860246e5707b429826587c1bbb5b7029143ab8
3-
size 53533116
2+
oid sha256:bbe77992e5a874cda406a4019bad99a602b147a93bc74ba5a5ef0d217d9586da
3+
size 55307062

gen/schemas/acl-manifests.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

gen/schemas/desktop-schema.json

Lines changed: 0 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -5665,60 +5665,6 @@
56655665
"type": "string",
56665666
"const": "fs:write-files",
56675667
"markdownDescription": "This enables all file write related commands without any pre-configured accessible paths."
5668-
},
5669-
{
5670-
"description": "This permission set configures which kind of\nupdater functions are exposed to the frontend.\n\n#### Granted Permissions\n\nThe full workflow from checking for updates to installing them\nis enabled.\n\n\n#### This default permission set includes:\n\n- `allow-check`\n- `allow-download`\n- `allow-install`\n- `allow-download-and-install`",
5671-
"type": "string",
5672-
"const": "updater:default",
5673-
"markdownDescription": "This permission set configures which kind of\nupdater functions are exposed to the frontend.\n\n#### Granted Permissions\n\nThe full workflow from checking for updates to installing them\nis enabled.\n\n\n#### This default permission set includes:\n\n- `allow-check`\n- `allow-download`\n- `allow-install`\n- `allow-download-and-install`"
5674-
},
5675-
{
5676-
"description": "Enables the check command without any pre-configured scope.",
5677-
"type": "string",
5678-
"const": "updater:allow-check",
5679-
"markdownDescription": "Enables the check command without any pre-configured scope."
5680-
},
5681-
{
5682-
"description": "Enables the download command without any pre-configured scope.",
5683-
"type": "string",
5684-
"const": "updater:allow-download",
5685-
"markdownDescription": "Enables the download command without any pre-configured scope."
5686-
},
5687-
{
5688-
"description": "Enables the download_and_install command without any pre-configured scope.",
5689-
"type": "string",
5690-
"const": "updater:allow-download-and-install",
5691-
"markdownDescription": "Enables the download_and_install command without any pre-configured scope."
5692-
},
5693-
{
5694-
"description": "Enables the install command without any pre-configured scope.",
5695-
"type": "string",
5696-
"const": "updater:allow-install",
5697-
"markdownDescription": "Enables the install command without any pre-configured scope."
5698-
},
5699-
{
5700-
"description": "Denies the check command without any pre-configured scope.",
5701-
"type": "string",
5702-
"const": "updater:deny-check",
5703-
"markdownDescription": "Denies the check command without any pre-configured scope."
5704-
},
5705-
{
5706-
"description": "Denies the download command without any pre-configured scope.",
5707-
"type": "string",
5708-
"const": "updater:deny-download",
5709-
"markdownDescription": "Denies the download command without any pre-configured scope."
5710-
},
5711-
{
5712-
"description": "Denies the download_and_install command without any pre-configured scope.",
5713-
"type": "string",
5714-
"const": "updater:deny-download-and-install",
5715-
"markdownDescription": "Denies the download_and_install command without any pre-configured scope."
5716-
},
5717-
{
5718-
"description": "Denies the install command without any pre-configured scope.",
5719-
"type": "string",
5720-
"const": "updater:deny-install",
5721-
"markdownDescription": "Denies the install command without any pre-configured scope."
57225668
}
57235669
]
57245670
},

gen/schemas/windows-schema.json

Lines changed: 0 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -5665,60 +5665,6 @@
56655665
"type": "string",
56665666
"const": "fs:write-files",
56675667
"markdownDescription": "This enables all file write related commands without any pre-configured accessible paths."
5668-
},
5669-
{
5670-
"description": "This permission set configures which kind of\nupdater functions are exposed to the frontend.\n\n#### Granted Permissions\n\nThe full workflow from checking for updates to installing them\nis enabled.\n\n\n#### This default permission set includes:\n\n- `allow-check`\n- `allow-download`\n- `allow-install`\n- `allow-download-and-install`",
5671-
"type": "string",
5672-
"const": "updater:default",
5673-
"markdownDescription": "This permission set configures which kind of\nupdater functions are exposed to the frontend.\n\n#### Granted Permissions\n\nThe full workflow from checking for updates to installing them\nis enabled.\n\n\n#### This default permission set includes:\n\n- `allow-check`\n- `allow-download`\n- `allow-install`\n- `allow-download-and-install`"
5674-
},
5675-
{
5676-
"description": "Enables the check command without any pre-configured scope.",
5677-
"type": "string",
5678-
"const": "updater:allow-check",
5679-
"markdownDescription": "Enables the check command without any pre-configured scope."
5680-
},
5681-
{
5682-
"description": "Enables the download command without any pre-configured scope.",
5683-
"type": "string",
5684-
"const": "updater:allow-download",
5685-
"markdownDescription": "Enables the download command without any pre-configured scope."
5686-
},
5687-
{
5688-
"description": "Enables the download_and_install command without any pre-configured scope.",
5689-
"type": "string",
5690-
"const": "updater:allow-download-and-install",
5691-
"markdownDescription": "Enables the download_and_install command without any pre-configured scope."
5692-
},
5693-
{
5694-
"description": "Enables the install command without any pre-configured scope.",
5695-
"type": "string",
5696-
"const": "updater:allow-install",
5697-
"markdownDescription": "Enables the install command without any pre-configured scope."
5698-
},
5699-
{
5700-
"description": "Denies the check command without any pre-configured scope.",
5701-
"type": "string",
5702-
"const": "updater:deny-check",
5703-
"markdownDescription": "Denies the check command without any pre-configured scope."
5704-
},
5705-
{
5706-
"description": "Denies the download command without any pre-configured scope.",
5707-
"type": "string",
5708-
"const": "updater:deny-download",
5709-
"markdownDescription": "Denies the download command without any pre-configured scope."
5710-
},
5711-
{
5712-
"description": "Denies the download_and_install command without any pre-configured scope.",
5713-
"type": "string",
5714-
"const": "updater:deny-download-and-install",
5715-
"markdownDescription": "Denies the download_and_install command without any pre-configured scope."
5716-
},
5717-
{
5718-
"description": "Denies the install command without any pre-configured scope.",
5719-
"type": "string",
5720-
"const": "updater:deny-install",
5721-
"markdownDescription": "Denies the install command without any pre-configured scope."
57225668
}
57235669
]
57245670
},

0 commit comments

Comments
 (0)