diff options
-rw-r--r-- | .SRCINFO | 6 | ||||
-rw-r--r-- | PKGBUILD | 6 | ||||
-rw-r--r-- | electron-widgets.sh | 9 |
3 files changed, 13 insertions, 8 deletions
@@ -1,6 +1,6 @@ pkgbase = electron-widgets-git pkgdesc = A desktop application developed using Electron.js and Node.js. The application allows users to create and manage widgets on their desktops. - pkgver = 2.0.2.r2.g5280c33 + pkgver = 2.0.3.r0.gbccec92 pkgrel = 1 url = https://electron-widgets.vercel.app/ arch = any @@ -10,11 +10,11 @@ pkgbase = electron-widgets-git makedepends = nvm makedepends = gendesk depends = electron30 - provides = electron-widgets=2.0.2 + provides = electron-widgets=2.0.3 conflicts = electron-widgets source = electron-widgets.git::git+https://github.com/sametcn99/electron-widgets.git source = electron-widgets.sh sha256sums = SKIP - sha256sums = dc0c5ca385ad81a08315a91655c7c064b5bf110eada55e61265633ae198b39f8 + sha256sums = 61d56055897e9d71d68e185ac2de7c4cb2fbca16eb3fb0091703612c113441f3 pkgname = electron-widgets-git @@ -1,7 +1,7 @@ # Maintainer: zxp19821005 <zxp19821005 at 163 dot com> pkgname=electron-widgets-git _pkgname="Electron-Widgets" -pkgver=2.0.2.r2.g5280c33 +pkgver=2.0.3.r0.gbccec92 _electronversion=30 _nodeversion=20 pkgrel=1 @@ -25,7 +25,7 @@ source=( "${pkgname%-git}.git::git+${_ghurl}.git" "${pkgname%-git}.sh") sha256sums=('SKIP' - 'dc0c5ca385ad81a08315a91655c7c064b5bf110eada55e61265633ae198b39f8') + '61d56055897e9d71d68e185ac2de7c4cb2fbca16eb3fb0091703612c113441f3') pkgver() { cd "${srcdir}/${pkgname%-git}.git" git describe --long --tags --exclude='*[a-z][a-z]*' | sed -E 's/^v//;s/([^-]*-g)/r\1/;s/-/./g' @@ -51,7 +51,7 @@ build() { export SYSTEM_ELECTRON_VERSION="$(electron${_electronversion} -v | sed 's/v//g')" export npm_config_target="${SYSTEM_ELECTRON_VERSION}" export ELECTRONVERSION="${_electronversion}" - export npm_config_disturl=https://electronjs.org/headers + export npm_config_disturl=https://registry.npmmirror.com/-/binary/node/ HOME="${srcdir}/.electron-gyp" if [ `curl -s ipinfo.io/country | grep CN | wc -l ` -ge 1 ];then export npm_config_registry=https://registry.npmmirror.com diff --git a/electron-widgets.sh b/electron-widgets.sh index 7ddcaab8d734..842c77e19b1d 100644 --- a/electron-widgets.sh +++ b/electron-widgets.sh @@ -8,9 +8,14 @@ export LD_LIBRARY_PATH="${_APPDIR}/swiftshader:${_APPDIR}/lib:${LD_LIBRARY_PATH} export ELECTRON_IS_DEV=0 export ELECTRON_FORCE_IS_PACKAGED=true export NODE_ENV=production +export XDG_CONFIG_HOME="${XDG_CONFIG_HOME:-$HOME/.config}" +_FLAGS_FILE="${XDG_CONFIG_HOME}/@appname@-flags.conf" +if [ -r "${_FLAGS_FILE}" ]; then + _USER_FLAGS="$(cat "${_FLAGS_FILE}")" +fi cd "${_APPDIR}" if [[ $EUID -ne 0 ]] || [[ $ELECTRON_RUN_AS_NODE ]]; then - exec electron@electronversion@ "${_RUNNAME}" "${_OPTIONS}" "$@" || exit $? + exec electron@electronversion@ "${_RUNNAME}" "${_OPTIONS}" "${_USER_FLAGS}" "$@" || exit $? else - exec electron@electronversion@ "${_RUNNAME}" "${_OPTIONS}" --no-sandbox "$@" || exit $? + exec electron@electronversion@ "${_RUNNAME}" "${_OPTIONS}" --no-sandbox "${_USER_FLAGS}" "$@" || exit $? fi
\ No newline at end of file |