diff options
author | zxp19821005 | 2024-03-18 19:23:53 +0800 |
---|---|---|
committer | zxp19821005 | 2024-03-18 19:23:53 +0800 |
commit | 6ad596b33423f95465b0416fa572e821967c3204 (patch) | |
tree | a645a127372b55d8a3adf06c3773cadef4c1d8d4 | |
parent | a7bf808c96ee809d354a80757d5303f11ba651d7 (diff) | |
download | aur-6ad596b33423f95465b0416fa572e821967c3204.tar.gz |
fix errors
-rw-r--r-- | .SRCINFO | 6 | ||||
-rw-r--r-- | PKGBUILD | 7 | ||||
-rw-r--r-- | swifty.sh | 8 |
3 files changed, 12 insertions, 9 deletions
@@ -1,16 +1,16 @@ pkgbase = swifty-bin pkgdesc = Free Offline-first Password Manager for MacOS, Windows and Linux. pkgver = 0.6.13 - pkgrel = 9 + pkgrel = 10 url = https://getswifty.pro/ arch = x86_64 license = GPL-3.0-only - depends = electron23 + depends = electron23-bin provides = swifty=0.6.13 conflicts = swifty source = swifty-0.6.13_amd64.deb::https://github.com/swiftyapp/swifty/releases/download/v0.6.13/Swifty_0.6.13_amd64.deb source = swifty.sh sha256sums = daa037c75ebc4e6a7b0b835f0efef2d5b1fa7bf4c2c728badbeb16d5f61a3b6a - sha256sums = 0fb7b939a071f4a08476bdd5aa143d2aa8cd335c83309f9919be16cd5c3e2014 + sha256sums = dc0c5ca385ad81a08315a91655c7c064b5bf110eada55e61265633ae198b39f8 pkgname = swifty-bin @@ -3,7 +3,7 @@ pkgname=swifty-bin _pkgname=Swifty pkgver=0.6.13 _electronversion=23 -pkgrel=9 +pkgrel=10 pkgdesc="Free Offline-first Password Manager for MacOS, Windows and Linux." arch=("x86_64") url="https://getswifty.pro/" @@ -12,18 +12,19 @@ license=('GPL-3.0-only') provides=("${pkgname%-bin}=${pkgver}") conflicts=("${pkgname%-bin}") depends=( - "electron${_electronversion}" + "electron${_electronversion}-bin" ) source=( "${pkgname%-bin}-${pkgver}_amd64.deb::${_ghurl}/releases/download/v${pkgver}/${_pkgname}_${pkgver}_amd64.deb" "${pkgname%-bin}.sh" ) sha256sums=('daa037c75ebc4e6a7b0b835f0efef2d5b1fa7bf4c2c728badbeb16d5f61a3b6a' - '0fb7b939a071f4a08476bdd5aa143d2aa8cd335c83309f9919be16cd5c3e2014') + 'dc0c5ca385ad81a08315a91655c7c064b5bf110eada55e61265633ae198b39f8') build() { sed -e "s|@electronversion@|${_electronversion}|" \ -e "s|@appname@|${pkgname%-bin}|g" \ -e "s|@runname@|app.asar|g" \ + -e "s|@options@||g" \ -i "${srcdir}/${pkgname%-bin}.sh" bsdtar -xf "${srcdir}/data."* sed "s|/opt/${_pkgname}/${pkgname%-bin}|${pkgname%-bin}|g" -i "${srcdir}/usr/share/applications/${pkgname%-bin}.desktop" diff --git a/swifty.sh b/swifty.sh index f9ced1432cfc..7ddcaab8d734 100644 --- a/swifty.sh +++ b/swifty.sh @@ -1,14 +1,16 @@ -#!/bin/sh +#!/bin/bash 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 +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 |