改改版本号,勉强能用.
pkgname=bilibili-bin
_pkgname=bilibili
pkgver=1.6.1
pkgrel=3
pkgdesc='哔哩哔哩官方客户端linux移植版。Bilibili official desktop client'
license=('custom')
depends=('ffmpeg' 'electron17' 'libappindicator-gtk3')
arch=('x86_64')
url='https://github.com/msojocs/bilibili-linux'
install="${pkgname}.install"
source=("https://github.com/msojocs/bilibili-linux/releases/download/v${pkgver}-${pkgrel}/bilibili-v${pkgver}-${pkgrel}-${arch}.tar.gz"
"${_pkgname}"
"${_pkgname}.png"
"${_pkgname}.desktop")
sha256sums=('7617189b6433129e021b93ee29e6d3a9d1c6b382b92891a0b0738b2dfe52cc34'
'cd7961420bae8fb54b8523bb8b3190ce1cfb584b73f391bad52ca7a354b1b76f'
'33cba5d0271d5783f353e60dacc01d2edc6629ca760d35427189e316a48f911f'
'e8b7502721d837ee056eeb47fe38cbe23d6a9d6fff8228b976543e33d74ea2e5')
prepare(){
cd ${srcdir}
rm -rf bin
rm -rf electron
}
package() {
install -Dm644 "${_pkgname}.desktop" "${pkgdir}/usr/share/applications/${_pkgname}.desktop"
install -Dm644 "${_pkgname}.png" "$pkgdir/usr/share/icons/hicolor/512x512/apps/${_pkgname}.png"
install -Dm644 "${srcdir}/app/app.asar" "${pkgdir}/usr/share/${_pkgname}/${_pkgname}.asar"
install -Dm644 "${srcdir}/app/app-update.yml" "${pkgdir}/usr/share/${_pkgname}/app-update.yml"
install -Dm755 "${_pkgname}" "${pkgdir}/usr/bin/${_pkgname}"
cp -r "${srcdir}/app/extensions" "${pkgdir}/usr/share/${_pkgname}/extensions"
#xdg-icon-resource install --noupdate --context apps --size 256 "bilibili.png" "bilibili"
}
Pinned Comments
zxp19821005 commented on 2024-09-29 20:38 (UTC) (edited on 2024-09-29 20:41 (UTC) by zxp19821005)
$ strings src/opt/apps/io.github.msojocs.bilibili/files/bin/electron/electron | grep '^Chrome/[0-9.]* Electron/[0-9]'
上游作者打包时使用的是electron21
,为避免出现不可预知的问题,目前已经回滚到此版本。如果需要更换electron
版本,请自行修改/usr/bin/bilibili
中的electron**
,或者联系上游作者进行更新。同时,建议安装electron21-bin
,避免自己花几个小时下载几十G的文件来编译electron21
。