bump to 1.0.3
fix for linux fs
This commit is contained in:
@@ -193,10 +193,6 @@ export async function provisionRclone() {
|
||||
const appLocalDataDirPath = await appLocalDataDir()
|
||||
console.log('appLocalDataDirPath', appLocalDataDirPath)
|
||||
|
||||
await invoke('allow_dir', {
|
||||
path: appLocalDataDirPath,
|
||||
})
|
||||
|
||||
const appLocalDataDirPathExists = await exists(appLocalDataDirPath)
|
||||
console.log('appLocalDataDirPathExists', appLocalDataDirPathExists)
|
||||
|
||||
|
||||
Generated
+2
-2
@@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "s-tray",
|
||||
"version": "1.0.2",
|
||||
"version": "1.0.3",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "s-tray",
|
||||
"version": "1.0.2",
|
||||
"version": "1.0.3",
|
||||
"dependencies": {
|
||||
"@nextui-org/react": "^2.6.11",
|
||||
"@tauri-apps/api": "~2.2.0",
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "s-tray",
|
||||
"private": true,
|
||||
"version": "1.0.2",
|
||||
"version": "1.0.3",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"dev": "node scripts/buildExternal.js && vite",
|
||||
|
||||
Generated
+1
-1
@@ -103,7 +103,7 @@ checksum = "34ac096ce696dc2fcabef30516bb13c0a68a11d30131d3df6f04711467681b04"
|
||||
|
||||
[[package]]
|
||||
name = "app"
|
||||
version = "1.0.2"
|
||||
version = "1.0.3"
|
||||
dependencies = [
|
||||
"cocoa",
|
||||
"fix-path-env",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "app"
|
||||
version = "1.0.2"
|
||||
version = "1.0.3"
|
||||
description = "A Tauri App"
|
||||
authors = ["you"]
|
||||
license = ""
|
||||
|
||||
+1
-18
@@ -12,23 +12,6 @@ use std::path::Path;
|
||||
use zip::ZipArchive;
|
||||
use tauri_plugin_sentry::{minidump, sentry};
|
||||
|
||||
use tauri::{AppHandle, Runtime};
|
||||
use tauri_plugin_fs::FsExt;
|
||||
|
||||
#[tauri::command]
|
||||
fn allow_file<R: Runtime>(
|
||||
app: AppHandle<R>,
|
||||
path: &str) -> () {
|
||||
app.fs_scope().allow_file(path);
|
||||
}
|
||||
|
||||
#[tauri::command]
|
||||
fn allow_dir<R: Runtime>(
|
||||
app: AppHandle<R>,
|
||||
path: &str) -> () {
|
||||
app.fs_scope().allow_directory(path, true);
|
||||
}
|
||||
|
||||
#[tauri::command]
|
||||
fn unzip_file(zip_path: &str, output_folder: &str) -> Result<(), String> {
|
||||
// Open the zip file
|
||||
@@ -121,7 +104,7 @@ pub fn run() {
|
||||
.plugin(tauri_plugin_log::Builder::new().build())
|
||||
.plugin(tauri_plugin_shell::init())
|
||||
.plugin(tauri_plugin_opener::init())
|
||||
.invoke_handler(tauri::generate_handler![unzip_file, get_arch, get_uid, allow_file, allow_dir])
|
||||
.invoke_handler(tauri::generate_handler![unzip_file, get_arch, get_uid])
|
||||
.setup(|_app| Ok(()))
|
||||
// .setup(|app| {
|
||||
// if cfg!(debug_assertions) {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"$schema": "https://schema.tauri.app/config/2",
|
||||
"productName": "Rclone UI",
|
||||
"version": "1.0.2",
|
||||
"version": "1.0.3",
|
||||
"identifier": "com.stray.app",
|
||||
"build": {
|
||||
"frontendDist": "../dist",
|
||||
@@ -93,6 +93,9 @@
|
||||
"updater": {
|
||||
"pubkey": "dW50cnVzdGVkIGNvbW1lbnQ6IG1pbmlzaWduIHB1YmxpYyBrZXk6IDIyNDFENEZGNjFDNTBGOEYKUldTUEQ4VmgvOVJCSWhVZmw0enhmcW1kWFk3TS9mMzBDRjVEZWdxKzQ5ZmRhTlYvT2gvdFNMbE8K",
|
||||
"endpoints": ["https://github.com/FTCHD/rclone-ui/releases/latest/download/latest.json"]
|
||||
},
|
||||
"fs": {
|
||||
"requireLiteralLeadingDot": false
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user