update to 1.3.0
This commit is contained in:
1 parent
fb3aa56f01
commit
4c2ea7d515
2 files changed
+17
-16
No files matched your search
@@ -1,7 +1,7 @@
|
|||||||
pkgbase = stoat-desktop-bin
|
pkgbase = stoat-desktop-bin
|
||||||
pkgdesc = Stoat for Desktop.(Prebuilt version.Use system-wide electron)
|
pkgdesc = Stoat for Desktop.(Prebuilt version.Use system-wide electron)
|
||||||
pkgver = 1.2.0
|
pkgver = 1.3.0
|
||||||
pkgrel = 2
|
pkgrel = 1
|
||||||
url = https://stoat.chat/
|
url = https://stoat.chat/
|
||||||
arch = aarch64
|
arch = aarch64
|
||||||
arch = x86_64
|
arch = x86_64
|
||||||
@@ -9,16 +9,16 @@ pkgbase = stoat-desktop-bin
|
|||||||
makedepends = gendesk
|
makedepends = gendesk
|
||||||
makedepends = git
|
makedepends = git
|
||||||
depends = electron38
|
depends = electron38
|
||||||
provides = stoat-desktop=1.2.0
|
provides = stoat-desktop=1.3.0
|
||||||
conflicts = stoat-desktop
|
conflicts = stoat-desktop
|
||||||
options = !emptydirs
|
options = !emptydirs
|
||||||
source = stoat-desktop-assets::git+https://github.com/stoatchat/assets
|
source = stoat-desktop-assets::git+https://github.com/stoatchat/assets
|
||||||
source = stoat-desktop.sh
|
source = stoat-desktop.sh
|
||||||
sha256sums = SKIP
|
sha256sums = SKIP
|
||||||
sha256sums = 31ad33b633744f5361abd964be306cea53ae1050e760c787115f7eca60045ae6
|
sha256sums = 31ad33b633744f5361abd964be306cea53ae1050e760c787115f7eca60045ae6
|
||||||
source_aarch64 = stoat-desktop-1.2.0-aarch64.zip::https://github.com/stoatchat/for-desktop/releases/download/v1.2.0/Stoat-linux-arm64-1.2.0.zip
|
source_aarch64 = stoat-desktop-1.3.0-aarch64.zip::https://github.com/stoatchat/for-desktop/releases/download/v1.3.0/Stoat-linux-arm64-1.3.0.zip
|
||||||
sha256sums_aarch64 = 8619fee1ec83a6969887814349139acedd5a8359410c4330a7eb40473711cb73
|
sha256sums_aarch64 = c1b3743cb6af56562b5d5e6a675e1e38549308fa8b18f3726e26e06922a7366b
|
||||||
source_x86_64 = stoat-desktop-1.2.0-x86_64.zip::https://github.com/stoatchat/for-desktop/releases/download/v1.2.0/Stoat-linux-x64-1.2.0.zip
|
source_x86_64 = stoat-desktop-1.3.0-x86_64.zip::https://github.com/stoatchat/for-desktop/releases/download/v1.3.0/Stoat-linux-x64-1.3.0.zip
|
||||||
sha256sums_x86_64 = 067a2dcf73c3d1669f329e46c30716573028b38822ed31c0e487eed8a020fb5f
|
sha256sums_x86_64 = 9f875f007589d93bf594abc60c650803da1a18ad48a4b23766b5f9cb7efdfd34
|
||||||
|
|
||||||
pkgname = stoat-desktop-bin
|
pkgname = stoat-desktop-bin
|
||||||
@@ -1,9 +1,9 @@
|
|||||||
# Maintainer: zxp19821005 <zxp19821005 at 163 dot com>
|
# Maintainer: zxp19821005 <zxp19821005 at 163 dot com>
|
||||||
pkgname=stoat-desktop-bin
|
pkgname=stoat-desktop-bin
|
||||||
_pkgname=Stoat
|
_pkgname=Stoat
|
||||||
pkgver=1.2.0
|
pkgver=1.3.0
|
||||||
_electronversion=38
|
_electronversion=38
|
||||||
pkgrel=2
|
pkgrel=1
|
||||||
pkgdesc="Stoat for Desktop.(Prebuilt version.Use system-wide electron)"
|
pkgdesc="Stoat for Desktop.(Prebuilt version.Use system-wide electron)"
|
||||||
arch=(
|
arch=(
|
||||||
'aarch64'
|
'aarch64'
|
||||||
@@ -32,8 +32,8 @@ source_aarch64=("${pkgname%-bin}-${pkgver}-aarch64.zip::${_ghurl}/releases/downl
|
|||||||
source_x86_64=("${pkgname%-bin}-${pkgver}-x86_64.zip::${_ghurl}/releases/download/v${pkgver}/${_pkgname}-linux-x64-${pkgver}.zip")
|
source_x86_64=("${pkgname%-bin}-${pkgver}-x86_64.zip::${_ghurl}/releases/download/v${pkgver}/${_pkgname}-linux-x64-${pkgver}.zip")
|
||||||
sha256sums=('SKIP'
|
sha256sums=('SKIP'
|
||||||
'31ad33b633744f5361abd964be306cea53ae1050e760c787115f7eca60045ae6')
|
'31ad33b633744f5361abd964be306cea53ae1050e760c787115f7eca60045ae6')
|
||||||
sha256sums_aarch64=('8619fee1ec83a6969887814349139acedd5a8359410c4330a7eb40473711cb73')
|
sha256sums_aarch64=('c1b3743cb6af56562b5d5e6a675e1e38549308fa8b18f3726e26e06922a7366b')
|
||||||
sha256sums_x86_64=('067a2dcf73c3d1669f329e46c30716573028b38822ed31c0e487eed8a020fb5f')
|
sha256sums_x86_64=('9f875f007589d93bf594abc60c650803da1a18ad48a4b23766b5f9cb7efdfd34')
|
||||||
_get_electron_version() {
|
_get_electron_version() {
|
||||||
_elec_ver="$(strings "${srcdir}/${_pkgname}-"*/"${pkgname%-bin}" | grep '^Chrome/[0-9.]* Electron/[0-9]' | cut -d'/' -f3 | cut -d'.' -f1)"
|
_elec_ver="$(strings "${srcdir}/${_pkgname}-"*/"${pkgname%-bin}" | grep '^Chrome/[0-9.]* Electron/[0-9]' | cut -d'/' -f3 | cut -d'.' -f1)"
|
||||||
echo -e "The electron version is: \033[1;31m${_elec_ver}\033[0m"
|
echo -e "The electron version is: \033[1;31m${_elec_ver}\033[0m"
|
||||||
@@ -56,11 +56,12 @@ prepare() {
|
|||||||
}
|
}
|
||||||
package() {
|
package() {
|
||||||
install -Dm755 "${srcdir}/${pkgname%-bin}.sh" "${pkgdir}/usr/bin/${pkgname%-bin}"
|
install -Dm755 "${srcdir}/${pkgname%-bin}.sh" "${pkgdir}/usr/bin/${pkgname%-bin}"
|
||||||
install -Dm644 "${srcdir}/${_pkgname}-"*/resources/app.asar -t "${pkgdir}/usr/lib/${pkgname%-bin}"
|
install -Dm755 -d "${pkgdir}/usr/lib/${pkgname%-bin}"
|
||||||
if find "${srcdir}/${_pkgname}-"* -mindepth 1 -maxdepth 1 -type d | read; then
|
find "${srcdir}/${_pkgname}-"*"/resources" -maxdepth 1 -type f -exec install -Dm644 -t "${pkgdir}/usr/lib/${pkgname%-bin}" {} +
|
||||||
for subdir in "${srcdir}/opt/${_pkgname}/${_pkgname}-"*/*; do
|
if find "${srcdir}/${_pkgname}-"*"/resources" -mindepth 1 -maxdepth 1 -type d | read; then
|
||||||
if [ -d "${subdir}" ]; then
|
for _subdir in "${srcdir}/${_pkgname}-"*"/resources/"*; do
|
||||||
cp -Pr --no-preserve=ownership "${subdir}"/* "${pkgdir}/usr/lib/${pkgname%-bin}"
|
if [ -d "${_subdir}" ]; then
|
||||||
|
cp -Pr --no-preserve=ownership "${_subdir}" "${pkgdir}/usr/lib/${pkgname%-bin}"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in new issue
Block a user