diff --git a/lib/rclone/api.ts b/lib/rclone/api.ts index d20e483..0418253 100644 --- a/lib/rclone/api.ts +++ b/lib/rclone/api.ts @@ -6,6 +6,8 @@ import { useStore } from '../store' const SUPPORRTED_BACKENDS = ['sftp', 's3', 'b2', 'drive'] function getAuthHeader() { + return + if (platform() === 'macos') { return } diff --git a/main.ts b/main.ts index 1a96dd7..e1964b7 100644 --- a/main.ts +++ b/main.ts @@ -1,7 +1,6 @@ import { getCurrentWindow } from '@tauri-apps/api/window' import { ask, message } from '@tauri-apps/plugin-dialog' import { debug, error, info, trace, warn } from '@tauri-apps/plugin-log' -import { platform } from '@tauri-apps/plugin-os' import { exit } from '@tauri-apps/plugin-process' import type { Command } from '@tauri-apps/plugin-shell' import { validateLicense } from './lib/license' @@ -116,9 +115,10 @@ async function startRclone() { const command = (await rcloneCommandFn([ 'rcd', - ...(platform() === 'macos' - ? ['--rc-no-auth'] // webkit doesn't allow for credentials in the url - : ['--rc-user', 'admin', '--rc-pass', sessionPassword]), + // ...(platform() === 'macos' + // ? ['--rc-no-auth'] // webkit doesn't allow for credentials in the url + // : ['--rc-user', 'admin', '--rc-pass', sessionPassword]), + '--rc-no-auth', '--rc-serve', // defaults // '-rc-addr',