diff options
author | zxp19821005 | 2024-01-19 16:04:38 +0800 |
---|---|---|
committer | zxp19821005 | 2024-01-19 16:04:38 +0800 |
commit | f58fb4616c69f8de4ae12ac0160372bfc7392655 (patch) | |
tree | c6f3d2ae125f43914464f489318cd002f61cbe09 | |
parent | c1728ffcabfba449d1cc91dbae8fd661fb2abaa8 (diff) | |
download | aur-f58fb4616c69f8de4ae12ac0160372bfc7392655.tar.gz |
fix errors
-rw-r--r-- | .SRCINFO | 4 | ||||
-rw-r--r-- | PKGBUILD | 6 | ||||
-rw-r--r-- | swifty.sh | 13 |
3 files changed, 12 insertions, 11 deletions
@@ -1,7 +1,7 @@ pkgbase = swifty-bin pkgdesc = Free Offline-first Password Manager for MacOS, Windows and Linux. pkgver = 0.6.13 - pkgrel = 7 + pkgrel = 8 url = https://getswifty.pro/ arch = x86_64 license = GPL3 @@ -11,6 +11,6 @@ pkgbase = swifty-bin 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 = 8915ca75d453698df81f7f3305cce6869f4261d754d90f0c3724b73c7b24ca84 + sha256sums = d4272fed78cdcacd9edfb019134ac485d65b43f4d8c7a4179edbaed56af9b231 pkgname = swifty-bin @@ -3,7 +3,7 @@ pkgname=swifty-bin _pkgname=Swifty pkgver=0.6.13 _electronversion=23 -pkgrel=7 +pkgrel=8 pkgdesc="Free Offline-first Password Manager for MacOS, Windows and Linux." arch=("x86_64") url="https://getswifty.pro/" @@ -19,14 +19,14 @@ source=( "${pkgname%-bin}.sh" ) sha256sums=('daa037c75ebc4e6a7b0b835f0efef2d5b1fa7bf4c2c728badbeb16d5f61a3b6a' - '8915ca75d453698df81f7f3305cce6869f4261d754d90f0c3724b73c7b24ca84') + 'd4272fed78cdcacd9edfb019134ac485d65b43f4d8c7a4179edbaed56af9b231') build() { sed -e "s|@electronversion@|${_electronversion}|" \ -e "s|@appname@|${pkgname%-bin}|g" \ -e "s|@appasar@|app.asar|g" \ -i "${srcdir}/${pkgname%-bin}.sh" bsdtar -xf "${srcdir}/data.tar.xz" - sed "s|/opt/${_pkgname}/${pkgname%-bin} %U|${pkgname%-bin}|g" -i "${srcdir}/usr/share/applications/${pkgname%-bin}.desktop" + sed "s|/opt/${_pkgname}/${pkgname%-bin}|${pkgname%-bin}|g" -i "${srcdir}/usr/share/applications/${pkgname%-bin}.desktop" } package() { install -Dm755 "${srcdir}/${pkgname%-bin}.sh" "${pkgdir}/usr/bin/${pkgname%-bin}" diff --git a/swifty.sh b/swifty.sh index 2ec4412e5c4f..aacd8f895847 100644 --- a/swifty.sh +++ b/swifty.sh @@ -1,14 +1,15 @@ -#!/bin/bash +#!/bin/sh set -e _APPDIR="/usr/lib/@appname@" +_ASAR="${_APPDIR}/@appasar@" export PATH="${_APPDIR}:${PATH}" -export ELECTRON_IS_DEV=0 export LD_LIBRARY_PATH="${_APPDIR}/swiftshader:${_APPDIR}/lib:${LD_LIBRARY_PATH}" -_ASAR="${_APPDIR}/@appasar@" +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}" "$@" else - cd "${_APPDIR}" exec electron@electronversion@ "${_ASAR}" --no-sandbox "$@" -fi
\ No newline at end of file +fi +exit
\ No newline at end of file |