mirror of
https://github.com/pompurin404/mihomo-party.git
synced 2024-11-16 03:32:17 +08:00
update pkgbuild
This commit is contained in:
parent
d9b9977fe9
commit
6564b2bc58
|
@ -11,10 +11,13 @@ depends=('electron' 'gtk3' 'libnotify' 'nss' 'libxss' 'libxtst' 'xdg-utils' 'at-
|
|||
optdepends=('libappindicator-gtk3: Allow mihomo-party to extend a menu via Ayatana indicators in Unity, KDE or Systray (GTK+ 3 library).')
|
||||
makedepends=('asar')
|
||||
install=$_pkgname.install
|
||||
source=("${_pkgname}.sh")
|
||||
source=("${_pkgname}.desktop" "${_pkgname}.sh")
|
||||
source_x86_64=("${_pkgname}-${pkgver}-x86_64.deb::${url}/releases/download/v${pkgver}/mihomo-party-linux-${pkgver}-amd64.deb")
|
||||
source_aarch64=("${_pkgname}-${pkgver}-aarch64.deb::${url}/releases/download/v${pkgver}/mihomo-party-linux-${pkgver}-arm64.deb")
|
||||
sha256sums=("560733f0e5bd9b47ff50c849301c8a22ae17a5df26830d8c97033dfcbd392382")
|
||||
sha256sums=(
|
||||
"96a6250f67517493f839f964c024434dbcf784b25a73f074bb505f1521f52844"
|
||||
"560733f0e5bd9b47ff50c849301c8a22ae17a5df26830d8c97033dfcbd392382"
|
||||
)
|
||||
sha256sums_x86_64=("43f8b9a5818a722cdb8e5044d2a90993274860b0da96961e1a2652169539ce39")
|
||||
sha256sums_aarch64=("18574fdeb01877a629aa52ac0175335ce27c83103db4fcb2f1ad69e3e42ee10f")
|
||||
options=('!lto')
|
||||
|
@ -22,6 +25,8 @@ options=('!lto')
|
|||
package() {
|
||||
bsdtar -xf data.tar.xz -C $srcdir
|
||||
asar extract $srcdir/opt/mihomo-party/resources/app.asar ${pkgdir}/opt/mihomo-party
|
||||
cp -r $srcdir/${_pkgname}-${pkgver}/extra/sidecar ${pkgdir}/opt/mihomo-party/resources/
|
||||
cp -r $srcdir/${_pkgname}-${pkgver}/extra/files ${pkgdir}/opt/mihomo-party/resources/
|
||||
chmod +x ${pkgdir}/opt/mihomo-party/resources/sidecar/mihomo
|
||||
chmod +x ${pkgdir}/opt/mihomo-party/resources/sidecar/mihomo-alpha
|
||||
cd ${pkgdir}/../..
|
||||
|
|
|
@ -13,9 +13,11 @@ makedepends=('nodejs' 'pnpm' 'libxcrypt-compat' 'asar')
|
|||
install=$_pkgname.install
|
||||
source=(
|
||||
"${_pkgname}-${pkgver}.tar.gz::${url}/archive/refs/tags/v${pkgver}.tar.gz"
|
||||
"${_pkgname}.desktop"
|
||||
"${_pkgname}.sh"
|
||||
)
|
||||
sha256sums=("52d761e9432e17477acb8adb5744676df946476e0eb5210fee2b6d45f497f218"
|
||||
"96a6250f67517493f839f964c024434dbcf784b25a73f074bb505f1521f52844"
|
||||
"560733f0e5bd9b47ff50c849301c8a22ae17a5df26830d8c97033dfcbd392382"
|
||||
)
|
||||
options=('!lto')
|
||||
|
@ -32,6 +34,8 @@ build(){
|
|||
|
||||
package() {
|
||||
asar extract $srcdir/${_pkgname}-${pkgver}/dist/linux-unpacked/resources/app.asar ${pkgdir}/opt/mihomo-party
|
||||
cp -r $srcdir/${_pkgname}-${pkgver}/extra/sidecar ${pkgdir}/opt/mihomo-party/resources/
|
||||
cp -r $srcdir/${_pkgname}-${pkgver}/extra/files ${pkgdir}/opt/mihomo-party/resources/
|
||||
chmod +x ${pkgdir}/opt/mihomo-party/resources/sidecar/mihomo
|
||||
chmod +x ${pkgdir}/opt/mihomo-party/resources/sidecar/mihomo-alpha
|
||||
cd ${pkgdir}/../..
|
||||
|
|
Loading…
Reference in New Issue
Block a user