diff options
author | zxp19821005 | 2024-03-14 17:53:50 +0800 |
---|---|---|
committer | zxp19821005 | 2024-03-14 17:53:50 +0800 |
commit | 221d53e8b03bf55bf35f2c6c5c4c9a762f7df31b (patch) | |
tree | b4ad9b63b7baa7a3445894f23b6e3c2cbf7f141a | |
parent | aed9d1e97e8312b299d8ff0ea653dc0b83869cd6 (diff) | |
download | packages-221d53e8b03bf55bf35f2c6c5c4c9a762f7df31b.tar.gz packages-221d53e8b03bf55bf35f2c6c5c4c9a762f7df31b.tar.bz2 packages-221d53e8b03bf55bf35f2c6c5c4c9a762f7df31b.zip |
fix errors
-rw-r--r-- | .SRCINFO | 6 | ||||
-rw-r--r-- | PKGBUILD | 7 | ||||
-rw-r--r-- | thorium-reader.sh | 8 |
3 files changed, 12 insertions, 9 deletions
@@ -1,11 +1,11 @@ | |||
1 | pkgbase = thorium-reader-bin | 1 | pkgbase = thorium-reader-bin |
2 | pkgdesc = Cross-platform desktop reading app based on the Readium Desktop toolkit | 2 | pkgdesc = Cross-platform desktop reading app based on the Readium Desktop toolkit |
3 | pkgver = 2.3.0 | 3 | pkgver = 2.3.0 |
4 | pkgrel = 4 | 4 | pkgrel = 5 |
5 | url = https://www.edrlab.org/software/thorium-reader/ | 5 | url = https://www.edrlab.org/software/thorium-reader/ |
6 | arch = x86_64 | 6 | arch = x86_64 |
7 | license = BSD-3-Clause | 7 | license = BSD-3-Clause |
8 | depends = electron25 | 8 | depends = electron25-bin |
9 | depends = hicolor-icon-theme | 9 | depends = hicolor-icon-theme |
10 | provides = thorium-reader=2.3.0 | 10 | provides = thorium-reader=2.3.0 |
11 | conflicts = thorium-reader | 11 | conflicts = thorium-reader |
@@ -14,6 +14,6 @@ pkgbase = thorium-reader-bin | |||
14 | source = thorium-reader.sh | 14 | source = thorium-reader.sh |
15 | sha256sums = 1007cd9083715d32427e4d39f8a4cac69cf428cfc4521950571dc2290a308f23 | 15 | sha256sums = 1007cd9083715d32427e4d39f8a4cac69cf428cfc4521950571dc2290a308f23 |
16 | sha256sums = e95e504f42685015445b4a0a80dfdaa86e5b2b2c0e317bca2bcbb51330ec61e5 | 16 | sha256sums = e95e504f42685015445b4a0a80dfdaa86e5b2b2c0e317bca2bcbb51330ec61e5 |
17 | sha256sums = 0fb7b939a071f4a08476bdd5aa143d2aa8cd335c83309f9919be16cd5c3e2014 | 17 | sha256sums = dc0c5ca385ad81a08315a91655c7c064b5bf110eada55e61265633ae198b39f8 |
18 | 18 | ||
19 | pkgname = thorium-reader-bin | 19 | pkgname = thorium-reader-bin |
@@ -5,7 +5,7 @@ _appname=Thorium | |||
5 | _fullname="${_appname}Reader" | 5 | _fullname="${_appname}Reader" |
6 | pkgver=2.3.0 | 6 | pkgver=2.3.0 |
7 | _electronversion=25 | 7 | _electronversion=25 |
8 | pkgrel=4 | 8 | pkgrel=5 |
9 | pkgdesc="Cross-platform desktop reading app based on the Readium Desktop toolkit" | 9 | pkgdesc="Cross-platform desktop reading app based on the Readium Desktop toolkit" |
10 | arch=('x86_64') | 10 | arch=('x86_64') |
11 | url="https://www.edrlab.org/software/thorium-reader/" | 11 | url="https://www.edrlab.org/software/thorium-reader/" |
@@ -14,7 +14,7 @@ license=('BSD-3-Clause') | |||
14 | conflicts=("${pkgname%-bin}") | 14 | conflicts=("${pkgname%-bin}") |
15 | provides=("${pkgname%-bin}=${pkgver}") | 15 | provides=("${pkgname%-bin}=${pkgver}") |
16 | depends=( | 16 | depends=( |
17 | "electron${_electronversion}" | 17 | "electron${_electronversion}-bin" |
18 | 'hicolor-icon-theme' | 18 | 'hicolor-icon-theme' |
19 | ) | 19 | ) |
20 | source=( | 20 | source=( |
@@ -24,11 +24,12 @@ source=( | |||
24 | ) | 24 | ) |
25 | sha256sums=('1007cd9083715d32427e4d39f8a4cac69cf428cfc4521950571dc2290a308f23' | 25 | sha256sums=('1007cd9083715d32427e4d39f8a4cac69cf428cfc4521950571dc2290a308f23' |
26 | 'e95e504f42685015445b4a0a80dfdaa86e5b2b2c0e317bca2bcbb51330ec61e5' | 26 | 'e95e504f42685015445b4a0a80dfdaa86e5b2b2c0e317bca2bcbb51330ec61e5' |
27 | '0fb7b939a071f4a08476bdd5aa143d2aa8cd335c83309f9919be16cd5c3e2014') | 27 | 'dc0c5ca385ad81a08315a91655c7c064b5bf110eada55e61265633ae198b39f8') |
28 | build() { | 28 | build() { |
29 | sed -e "s|@electronversion@|${_electronversion}|" \ | 29 | sed -e "s|@electronversion@|${_electronversion}|" \ |
30 | -e "s|@appname@|${pkgname%-bin}|g" \ | 30 | -e "s|@appname@|${pkgname%-bin}|g" \ |
31 | -e "s|@runname@|app.asar|g" \ | 31 | -e "s|@runname@|app.asar|g" \ |
32 | -e "s|@options@||g" \ | ||
32 | -i "${srcdir}/${pkgname%-bin}.sh" | 33 | -i "${srcdir}/${pkgname%-bin}.sh" |
33 | bsdtar -xf "${srcdir}/data."* | 34 | bsdtar -xf "${srcdir}/data."* |
34 | sed -e "s|Name=${_appname}|Name=${_fullname}|g" \ | 35 | sed -e "s|Name=${_appname}|Name=${_fullname}|g" \ |
diff --git a/thorium-reader.sh b/thorium-reader.sh index f9ced14..7ddcaab 100644 --- a/thorium-reader.sh +++ b/thorium-reader.sh | |||
@@ -1,14 +1,16 @@ | |||
1 | #!/bin/sh | 1 | #!/bin/bash |
2 | set -e | 2 | set -e |
3 | _APPDIR="/usr/lib/@appname@" | 3 | _APPDIR="/usr/lib/@appname@" |
4 | _RUNNAME="${_APPDIR}/@runname@" | 4 | _RUNNAME="${_APPDIR}/@runname@" |
5 | _OPTIONS="@options@" | ||
5 | export PATH="${_APPDIR}:${PATH}" | 6 | export PATH="${_APPDIR}:${PATH}" |
6 | export LD_LIBRARY_PATH="${_APPDIR}/swiftshader:${_APPDIR}/lib:${LD_LIBRARY_PATH}" | 7 | export LD_LIBRARY_PATH="${_APPDIR}/swiftshader:${_APPDIR}/lib:${LD_LIBRARY_PATH}" |
7 | export ELECTRON_IS_DEV=0 | 8 | export ELECTRON_IS_DEV=0 |
9 | export ELECTRON_FORCE_IS_PACKAGED=true | ||
8 | export NODE_ENV=production | 10 | export NODE_ENV=production |
9 | cd "${_APPDIR}" | 11 | cd "${_APPDIR}" |
10 | if [[ $EUID -ne 0 ]] || [[ $ELECTRON_RUN_AS_NODE ]]; then | 12 | if [[ $EUID -ne 0 ]] || [[ $ELECTRON_RUN_AS_NODE ]]; then |
11 | exec electron@electronversion@ "${_RUNNAME}" "$@" || exit $? | 13 | exec electron@electronversion@ "${_RUNNAME}" "${_OPTIONS}" "$@" || exit $? |
12 | else | 14 | else |
13 | exec electron@electronversion@ "${_RUNNAME}" --no-sandbox "$@" || exit $? | 15 | exec electron@electronversion@ "${_RUNNAME}" "${_OPTIONS}" --no-sandbox "$@" || exit $? |
14 | fi \ No newline at end of file | 16 | fi \ No newline at end of file |