diff options
author | yukiiawa | 2023-10-18 00:38:51 +0800 |
---|---|---|
committer | yukiiawa | 2023-10-18 00:38:51 +0800 |
commit | 031f8fc227ee32133244cca8e1b8ded80d51a587 (patch) | |
tree | e1d6c27b782f2038fdf39165a604808e2bf373a8 /postcat.sh | |
parent | 328d29dafd6f44616c62e55910d4ffb8e18e6fed (diff) | |
download | aur-postcat-appimage.tar.gz |
修改asar路径至pkgname/resources/
Diffstat (limited to 'postcat.sh')
-rw-r--r-- | postcat.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/postcat.sh b/postcat.sh new file mode 100644 index 000000000000..f1f61ce50125 --- /dev/null +++ b/postcat.sh @@ -0,0 +1,8 @@ +#!/bin/bash +_ELECTRON=/usr/bin/electron22 +_ASAR="/opt/postcat/resources/app.asar" +if [[ $EUID -ne 0 ]] || [[ $ELECTRON_RUN_AS_NODE ]]; then + exec ${_ELECTRON} ${_ASAR} "$@" +else + exec ${_ELECTRON} ${_ASAR} --no-sandbox "$@" +fi |