Major additions:
Frontend — v1 renderer/app.js and renderer/index.html copied 1:1. A
new tauri-shim.js reconstructs window.api with all 54 methods v1 used,
each mapped to a matching Rust #[tauri::command] so the existing
renderer works unchanged. Drag-drop paths are bridged via the Tauri
tauri://drag-drop event.
Backend modules:
- folder_monitor.rs: notify-debouncer-full based recursive/
non-recursive watch, include/exclude extension filter, skip-dupes,
initial baseline scan, emits 'folder-monitor-new-files' to frontend.
Auto-restarts on launch if persisted settings have enabled=true.
- remote_server.rs: axum HTTP server with bearer-token auth exposing
/api/status, /api/control/cancel, /api/control/finish-after.
Auto-restarts on launch if enabled + token set.
- updater.rs: Gitea releases polling + semver compare, returns
download URL for current platform. install_update opens the URL
externally (true in-app update needs signing cert later).
- upload_log.rs: full fallback ladder (primary → Desktop → AppData),
daily-log suffix handling, auto-persists working fallback path into
globalSettings.logFilePath so next session writes there directly,
emits 'upload-log-fallback' to the renderer once per session.
Commands added (all wired into tauri::generate_handler!):
get_hoster_settings, save_hoster_settings, get_global_settings,
save_global_settings, set_always_on_top, get_always_on_top,
set_shutdown_after_finish, get_shutdown_after_finish, cancel_shutdown,
resolve_folder_files, copy_to_clipboard (Windows clipboard via
PowerShell pipe), start_upload, add_jobs_to_batch,
finish_after_active, run_health_check, export_backup, import_backup,
import_backup_saved (legacy-password path), read_own_upload_log,
import_upload_log, save_text_file, open_log_folder,
read_rotation_log, get_version, check_for_update, install_update,
folder_monitor_start/stop/status, remote_get_settings,
remote_save_settings, remote_generate_token, remote_status,
show_drop_target, hide_drop_target, debug_log.
Release build: exe 7.5 MB, NSIS 2.7 MB, MSI 3.7 MB.
79 lines
1.8 KiB
TOML
79 lines
1.8 KiB
TOML
[package]
|
|
name = "multi-hoster-upload"
|
|
version = "2.0.0"
|
|
description = "Multi-hoster file uploader"
|
|
edition = "2021"
|
|
default-run = "multi-hoster-upload"
|
|
rust-version = "1.77"
|
|
|
|
[build-dependencies]
|
|
tauri-build = { version = "2", features = [] }
|
|
|
|
[dependencies]
|
|
tauri = { version = "2", features = [] }
|
|
tauri-plugin-shell = "2"
|
|
tauri-plugin-dialog = "2"
|
|
tauri-plugin-opener = "2"
|
|
tauri-plugin-fs = "2"
|
|
|
|
tokio = { version = "1", features = ["full"] }
|
|
tokio-util = { version = "0.7", features = ["io", "io-util"] }
|
|
futures = "0.3"
|
|
futures-util = "0.3"
|
|
async-stream = "0.3"
|
|
|
|
reqwest = { version = "0.12", default-features = false, features = ["rustls-tls", "json", "multipart", "stream", "gzip", "cookies"] }
|
|
|
|
serde = { version = "1", features = ["derive"] }
|
|
serde_json = "1"
|
|
serde_with = "3"
|
|
|
|
thiserror = "2"
|
|
anyhow = "1"
|
|
|
|
aes-gcm = { version = "0.10", features = ["std"] }
|
|
pbkdf2 = { version = "0.12", features = ["simple"] }
|
|
sha2 = "0.10"
|
|
hmac = "0.12"
|
|
rand = "0.8"
|
|
base64 = "0.22"
|
|
|
|
uuid = { version = "1", features = ["v4", "serde"] }
|
|
chrono = { version = "0.4", features = ["serde"] }
|
|
|
|
regex = "1"
|
|
once_cell = "1"
|
|
parking_lot = "0.12"
|
|
dashmap = "6"
|
|
|
|
bytes = "1"
|
|
mime_guess = "2"
|
|
urlencoding = "2"
|
|
percent-encoding = "2"
|
|
serde_urlencoded = "0.7"
|
|
|
|
tracing = "0.1"
|
|
tracing-subscriber = { version = "0.3", features = ["env-filter", "fmt"] }
|
|
tracing-appender = "0.2"
|
|
|
|
scraper = "0.20"
|
|
|
|
notify = "7"
|
|
notify-debouncer-full = "0.4"
|
|
axum = "0.7"
|
|
tower = "0.5"
|
|
tower-http = { version = "0.6", features = ["cors", "fs"] }
|
|
self_update = { version = "0.41", default-features = false, features = ["rustls"] }
|
|
semver = "1"
|
|
zip = "2"
|
|
|
|
[target.'cfg(windows)'.dependencies]
|
|
windows = { version = "0.58", features = ["Win32_Foundation", "Win32_Security_Cryptography", "Win32_System_Memory"] }
|
|
|
|
[profile.release]
|
|
panic = "abort"
|
|
codegen-units = 1
|
|
lto = true
|
|
opt-level = "s"
|
|
strip = true
|