Skip to content

Commit 3e573bf

Browse files
use /tmp dir
Signed-off-by: Nikita Skrynnik <[email protected]>
1 parent 206dbfc commit 3e573bf

File tree

5 files changed

+6
-8
lines changed

5 files changed

+6
-8
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "huly-browser",
3-
"version": "0.3.5",
3+
"version": "0.3.6",
44
"description": "",
55
"type": "module",
66
"scripts": {

src-tauri/Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src-tauri/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "huly-browser"
3-
version = "0.3.5"
3+
version = "0.3.6"
44
description = "Huly Browser"
55
authors = ["you"]
66
edition = "2024"

src-tauri/src/cef/mod.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
use std::{
2-
fs,
3-
process::Command,
4-
sync::{Arc, Mutex},
2+
fs, path::PathBuf, process::Command, sync::{Arc, Mutex}
53
};
64

75
use tauri::Manager;
@@ -55,7 +53,7 @@ pub fn download_cef(app_handle: tauri::AppHandle) -> Result<(), String> {
5553
pub async fn launch_cef(app_handle: tauri::AppHandle) -> Result<String, String> {
5654
let (cef_dir, cef_cache) = get_cef_paths(&app_handle)?;
5755

58-
let temp_cef_dir = std::env::temp_dir().join("huly-cef");
56+
let temp_cef_dir = PathBuf::from("/tmp/huly-cef");
5957
_ = fs::remove_dir_all(&temp_cef_dir);
6058
copy_dir_all(&cef_dir, &temp_cef_dir).map_err(|e| format!("failed to copy CEF: {e}"))?;
6159

src-tauri/tauri.conf.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"$schema": "https://schema.tauri.app/config/2",
33
"productName": "Huly Browser",
4-
"version": "0.3.5",
4+
"version": "0.3.6",
55
"identifier": "huly-browser",
66
"build": {
77
"beforeDevCommand": "npm run dev",

0 commit comments

Comments
 (0)