diff --git a/crypto-utils.js b/crypto-utils.js
index 5668750..ecf9fa9 100644
--- a/crypto-utils.js
+++ b/crypto-utils.js
@@ -17,13 +17,14 @@ class CryptoUtils {
let key;
try {
+ const isMac = os.platform() === 'darwin';
const machineId = [
- os.hostname(),
+ isMac ? '' : os.hostname(),
os.platform(),
os.arch(),
os.cpus()[0] ? os.cpus()[0].model : '',
process.env.COMPUTERNAME || '',
- process.env.USERNAME || ''
+ process.env.USERNAME || (isMac ? os.userInfo().username : '')
].join('|');
const hash = crypto.createHash('sha256');
diff --git a/main.js b/main.js
index 087473b..155301b 100644
--- a/main.js
+++ b/main.js
@@ -459,5 +459,8 @@ process.on('SIGINT', () => {
process.on('SIGTERM', () => {
process.exit(0);
});
+process.on('SIGHUP', () => {
+ process.exit(0);
+});
start();
diff --git a/service-manager.js b/service-manager.js
index abf6c6b..2542b04 100644
--- a/service-manager.js
+++ b/service-manager.js
@@ -54,6 +54,9 @@ class ServiceManager {
const env = {
...process.env,
+ ...(process.platform === 'darwin'
+ ? { PATH: [process.env.PATH, '/opt/homebrew/bin', '/usr/local/bin', '/usr/bin', '/bin'].filter(Boolean).join(path.delimiter) }
+ : {}),
PORT: (this.envConfig[name] && this.envConfig[name].PORT) || defaultPorts[name] || process.env.PORT || 3000,
TOKEN_SECRET: tokenSecret,
...(this.envConfig[name] || {}),
diff --git a/src-tauri/Cargo.lock b/src-tauri/Cargo.lock
index 9b23b04..7c97693 100644
--- a/src-tauri/Cargo.lock
+++ b/src-tauri/Cargo.lock
@@ -4075,6 +4075,7 @@ dependencies = [
name = "vyla-home"
version = "1.1.56"
dependencies = [
+ "libc",
"objc2 0.5.2",
"serde",
"serde_json",
diff --git a/src-tauri/Cargo.toml b/src-tauri/Cargo.toml
index eb7b45f..de6f9c1 100644
--- a/src-tauri/Cargo.toml
+++ b/src-tauri/Cargo.toml
@@ -17,6 +17,9 @@ window-vibrancy = "0.8"
[target.'cfg(target_os = "macos")'.dependencies]
objc2 = "0.5"
+[target.'cfg(unix)'.dependencies]
+libc = "0.2"
+
[profile.release]
opt-level = 3
lto = true
@@ -27,4 +30,4 @@ panic = "abort"
[profile.dev]
opt-level = 0
debug = true
-incremental = true
+incremental = true
\ No newline at end of file
diff --git a/src-tauri/Info.plist b/src-tauri/Info.plist
index 594d619..638f26f 100644
--- a/src-tauri/Info.plist
+++ b/src-tauri/Info.plist
@@ -8,6 +8,8 @@
NSAllowsArbitraryLoads
+ NSAllowsArbitraryLoadsInWebContent
+
\ No newline at end of file
diff --git a/src-tauri/src/main.rs b/src-tauri/src/main.rs
index b9e8edf..9509b4d 100644
--- a/src-tauri/src/main.rs
+++ b/src-tauri/src/main.rs
@@ -44,6 +44,8 @@ static WINDOW_COUNTER: std::sync::atomic::AtomicUsize = std::sync::atomic::Atomi
static READY_URL: Mutex