summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorzxp198210052024-01-29 13:33:04 +0800
committerzxp198210052024-01-29 13:33:04 +0800
commitc84b09559646b30a03c0e8e79b183d7d741b0fb3 (patch)
treec0cc8940ec81a3a7ed7d1016703a24648f1cde9e
parentedd401910b8b8bc3c0b6b54a865baead589ec749 (diff)
downloadaur-c84b09559646b30a03c0e8e79b183d7d741b0fb3.tar.gz
fix errors
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD4
-rw-r--r--flawless-cut.sh9
3 files changed, 7 insertions, 10 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 43ca8f6f0310..c381256aa395 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = flawless-cut-bin
pkgdesc = Fast and lossless video cutter and merger based on Electron.
pkgver = 1.0.1
- pkgrel = 6
+ pkgrel = 7
url = https://github.com/metadream/app-flawless-cut
arch = x86_64
license = MIT
@@ -15,6 +15,6 @@ pkgbase = flawless-cut-bin
source = flawless-cut.sh
sha256sums = 28debe0ea79488000337f8da5d12cad51ce9e965dfff9dc63da031d28c38d328
sha256sums = f3eac6adfa3dd9332b033a4aa8f565d05947b371fa729ceb6712a0123c5dcc46
- sha256sums = 5ce46265f0335b03568aa06f7b4c57c5f8ffade7a226489ea39796be91a511bf
+ sha256sums = 1d3f21d54a2d9d1a53661bd91c2afd00df79b0ce4057a66b4c953febfc464cd8
pkgname = flawless-cut-bin
diff --git a/PKGBUILD b/PKGBUILD
index e7ec9392fba2..41a144d50025 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@
pkgname=flawless-cut-bin
pkgver=1.0.1
_electronversion=23
-pkgrel=6
+pkgrel=7
pkgdesc="Fast and lossless video cutter and merger based on Electron."
arch=('x86_64')
url="https://github.com/metadream/app-flawless-cut"
@@ -21,7 +21,7 @@ source=(
)
sha256sums=('28debe0ea79488000337f8da5d12cad51ce9e965dfff9dc63da031d28c38d328'
'f3eac6adfa3dd9332b033a4aa8f565d05947b371fa729ceb6712a0123c5dcc46'
- '5ce46265f0335b03568aa06f7b4c57c5f8ffade7a226489ea39796be91a511bf')
+ '1d3f21d54a2d9d1a53661bd91c2afd00df79b0ce4057a66b4c953febfc464cd8')
build() {
sed -e "s|@electronversion@|${_electronversion}|g" \
-e "s|@appname@|${pkgname%-bin}|g" \
diff --git a/flawless-cut.sh b/flawless-cut.sh
index c77c53567639..0d20cddc70ca 100644
--- a/flawless-cut.sh
+++ b/flawless-cut.sh
@@ -6,12 +6,9 @@ export PATH="${_APPDIR}:${PATH}"
export LD_LIBRARY_PATH="${_APPDIR}/swiftshader:${_APPDIR}/lib:${LD_LIBRARY_PATH}"
export ELECTRON_IS_DEV=0
export NODE_ENV=production
+cd "${_APPDIR}"
if [[ $EUID -ne 0 ]] || [[ $ELECTRON_RUN_AS_NODE ]]; then
- cd "${_APPDIR}"
- exec electron@electronversion@ "${_ASAR}" "$@"
- exit
+ exec electron@electronversion@ "${_ASAR}" "$@" || exit $?
else
- cd "${_APPDIR}"
- exec electron@electronversion@ "${_ASAR}" --no-sandbox "$@"
- exit
+ exec electron@electronversion@ "${_ASAR}" --no-sandbox "$@" || exit $?
fi \ No newline at end of file