summarylogtreecommitdiffstats
path: root/craze.sh
diff options
context:
space:
mode:
authorzxp198210052023-10-17 11:23:04 +0800
committerzxp198210052023-10-17 11:23:04 +0800
commit4814e3573cfc154577e7191550bf6a40b6012952 (patch)
tree736bd059ee0f4cab5a394c355ea65a5ed05bdb30 /craze.sh
downloadaur-4814e3573cfc154577e7191550bf6a40b6012952.tar.gz
update to 0.1.4
Diffstat (limited to 'craze.sh')
-rw-r--r--craze.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/craze.sh b/craze.sh
new file mode 100644
index 000000000000..837bb9cf6eac
--- /dev/null
+++ b/craze.sh
@@ -0,0 +1,8 @@
+#!/bin/bash
+_ELECTRON=/usr/bin/electron22
+_ASAR="/opt/craze/resources/app.asar"
+if [[ $EUID -ne 0 ]] || [[ $ELECTRON_RUN_AS_NODE ]]; then
+ exec ${_ELECTRON} ${_ASAR} "$@"
+else
+ exec ${_ELECTRON} ${_ASAR} --no-sandbox "$@"
+fi \ No newline at end of file