update to 1.4.0

This commit is contained in:
zxp19821005 2024-11-11 17:40:33 +08:00
parent a5f8e15040
commit a2761fe056
2 changed files with 8 additions and 7 deletions

View file

@ -1,6 +1,6 @@
pkgbase = text-diff-view-bin
pkgdesc = Multi-platform text diff (text comparison) view electron app and web. Text-only.(Prebuilt version.Use system-wide electron)
pkgver = 1.3.2
pkgver = 1.4.0
pkgrel = 1
url = https://sandbox.saino.me/text-diff-view/
arch = x86_64
@ -8,10 +8,10 @@ pkgbase = text-diff-view-bin
makedepends = fuse2
depends = electron31
conflicts = text-diff-view
source = text-diff-view-1.3.2.AppImage::https://github.com/kaishuu0123/text-diff-view/releases/download/v1.3.2/text-diff-view-1.3.2.AppImage
source = LICENSE-1.3.2::https://raw.githubusercontent.com/kaishuu0123/text-diff-view/v1.3.2/LICENSE
source = text-diff-view-1.4.0.AppImage::https://github.com/kaishuu0123/text-diff-view/releases/download/v1.4.0/text-diff-view-1.4.0.AppImage
source = LICENSE-1.4.0::https://raw.githubusercontent.com/kaishuu0123/text-diff-view/v1.4.0/LICENSE
source = text-diff-view.sh
sha256sums = e76287acf7017cd605952de6564f1407fd68c28e1a1815075b2141e5f6b98d38
sha256sums = 7af6aaac0ce0a4931f5119f8dac4c9c763a805e7964cbcb2f7487e54a898696c
sha256sums = 2db6d2f8319742e183737299159ca2a72096629542c080492f13770b7d305c3b
sha256sums = 291f50480f5a61bc9c68db7d44cd0412071128706baa868a9cb854f8779a1980

View file

@ -1,7 +1,7 @@
# Maintainer: zxp19821005 <zxp19821005 at 163 dot com>
pkgname=text-diff-view-bin
_pkgname="Text Diff View"
pkgver=1.3.2
pkgver=1.4.0
_electronversion=31
pkgrel=1
pkgdesc="Multi-platform text diff (text comparison) view electron app and web. Text-only.(Prebuilt version.Use system-wide electron)"
@ -22,7 +22,7 @@ source=(
"LICENSE-${pkgver}::https://raw.githubusercontent.com/kaishuu0123/text-diff-view/v${pkgver}/LICENSE"
"${pkgname%-bin}.sh"
)
sha256sums=('e76287acf7017cd605952de6564f1407fd68c28e1a1815075b2141e5f6b98d38'
sha256sums=('7af6aaac0ce0a4931f5119f8dac4c9c763a805e7964cbcb2f7487e54a898696c'
'2db6d2f8319742e183737299159ca2a72096629542c080492f13770b7d305c3b'
'291f50480f5a61bc9c68db7d44cd0412071128706baa868a9cb854f8779a1980')
build() {
@ -36,6 +36,7 @@ build() {
chmod a+x "${srcdir}/${pkgname%-bin}-${pkgver}.AppImage"
"${srcdir}/${pkgname%-bin}-${pkgver}.AppImage" --appimage-extract > /dev/null
sed -i "s/AppRun --no-sandbox/${pkgname%-bin}/g" "${srcdir}/squashfs-root/${pkgname%-bin}.desktop"
find "${srcdir}/squashfs-root/resources" -type d -exec chmod 755 {} +
}
package() {
install -Dm755 "${srcdir}/${pkgname%-bin}.sh" "${pkgdir}/usr/bin/${pkgname%-bin}"
@ -44,4 +45,4 @@ package() {
install -Dm644 "${srcdir}/squashfs-root/usr/share/icons/hicolor/0x0/apps/${pkgname%-bin}.png" "${pkgdir}/usr/share/pixmaps/${pkgname%-bin}.png"
install -Dm644 "${srcdir}/squashfs-root/${pkgname%-bin}.desktop" "${pkgdir}/usr/share/applications/${pkgname%-bin}.desktop"
install -Dm644 "${srcdir}/LICENSE-${pkgver}" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
}