diff options
author | zxp19821005 | 2024-03-19 08:00:32 +0800 |
---|---|---|
committer | zxp19821005 | 2024-03-19 08:00:32 +0800 |
commit | 83c8d7713dcc5974a6f361a93761962d923bd7a0 (patch) | |
tree | 354c7403c7b39c08f858e10ceb548ed9c92e8b85 | |
parent | 11f829b98285109ef828ca3357273972a4919c55 (diff) | |
download | aur-83c8d7713dcc5974a6f361a93761962d923bd7a0.tar.gz |
fix errors
-rw-r--r-- | .SRCINFO | 4 | ||||
-rw-r--r-- | PKGBUILD | 5 | ||||
-rw-r--r-- | electron-pdf-viewer.sh | 5 |
3 files changed, 8 insertions, 6 deletions
@@ -1,7 +1,7 @@ pkgbase = electron-pdf-viewer-bin pkgdesc = PDF viewer created using Electron framework and PDF.js pkgver = 1.0 - pkgrel = 7 + pkgrel = 8 url = https://github.com/praharshjain/Electron-PDF-Viewer arch = armv7h arch = i686 @@ -13,7 +13,7 @@ pkgbase = electron-pdf-viewer-bin source = LICENSE-1.0::https://raw.githubusercontent.com/praharshjain/Electron-PDF-Viewer/v1.0/LICENSE source = electron-pdf-viewer.sh sha256sums = 70fbb7828155cceb6b104bad95d085832731eec32b74683ff34740e2161e2e42 - sha256sums = 50b10386d13e5bec806aeb78f819c4edd0208a4d184332e53866c802731217fe + sha256sums = dc0c5ca385ad81a08315a91655c7c064b5bf110eada55e61265633ae198b39f8 source_armv7h = electron-pdf-viewer-1.0-armv7h.deb::https://github.com/praharshjain/Electron-PDF-Viewer/releases/download/v1.0/Electron-PDF-Viewer_1.0.0_armv7l.deb sha256sums_armv7h = 47ee8289ac564315538e97c8abf7e4907323f0a54120e3aa5dfdaa5af0adef59 source_i686 = electron-pdf-viewer-1.0-i686.deb::https://github.com/praharshjain/Electron-PDF-Viewer/releases/download/v1.0/Electron-PDF-Viewer_1.0.0_ia32.deb @@ -3,7 +3,7 @@ pkgname=electron-pdf-viewer-bin _appname=Electron-PDF-Viewer pkgver=1.0 _electronversion=2 -pkgrel=7 +pkgrel=8 pkgdesc="PDF viewer created using Electron framework and PDF.js" arch=( 'armv7h' @@ -25,7 +25,7 @@ source=( "${pkgname%-bin}.sh" ) sha256sums=('70fbb7828155cceb6b104bad95d085832731eec32b74683ff34740e2161e2e42' - '50b10386d13e5bec806aeb78f819c4edd0208a4d184332e53866c802731217fe') + 'dc0c5ca385ad81a08315a91655c7c064b5bf110eada55e61265633ae198b39f8') sha256sums_armv7h=('47ee8289ac564315538e97c8abf7e4907323f0a54120e3aa5dfdaa5af0adef59') sha256sums_i686=('924b9497d979f39df36b594a2d553b5e9c7f233144943ec51c51831518f33a5f') sha256sums_x86_64=('5531e0281ebf710ff5f04fb605eb314226c45ff5ecc8888387ab44423b1d9da5') @@ -33,6 +33,7 @@ build() { sed -e "s|@electronversion@|${_electronversion}|g" \ -e "s|@appname@|${pkgname%-bin}|g" \ -e "s|@runname@|app|g" \ + -e "s|@options@||g" \ -i "${srcdir}/${pkgname%-bin}.sh" bsdtar -xf "${srcdir}/data."* sed "s|Exec=${_appname}|Exec=${pkgname%-bin}|g;s|Icon=${_appname}|Icon=${pkgname%-bin}|g" \ diff --git a/electron-pdf-viewer.sh b/electron-pdf-viewer.sh index 86cb3dc6a9bf..7ddcaab8d734 100644 --- a/electron-pdf-viewer.sh +++ b/electron-pdf-viewer.sh @@ -2,6 +2,7 @@ set -e _APPDIR="/usr/lib/@appname@" _RUNNAME="${_APPDIR}/@runname@" +_OPTIONS="@options@" export PATH="${_APPDIR}:${PATH}" export LD_LIBRARY_PATH="${_APPDIR}/swiftshader:${_APPDIR}/lib:${LD_LIBRARY_PATH}" export ELECTRON_IS_DEV=0 @@ -9,7 +10,7 @@ export ELECTRON_FORCE_IS_PACKAGED=true export NODE_ENV=production cd "${_APPDIR}" if [[ $EUID -ne 0 ]] || [[ $ELECTRON_RUN_AS_NODE ]]; then - exec electron@electronversion@ "${_RUNNAME}" "$@" || exit $? + exec electron@electronversion@ "${_RUNNAME}" "${_OPTIONS}" "$@" || exit $? else - exec electron@electronversion@ "${_RUNNAME}" --no-sandbox "$@" || exit $? + exec electron@electronversion@ "${_RUNNAME}" "${_OPTIONS}" --no-sandbox "$@" || exit $? fi
\ No newline at end of file |