From 940bed5401bac3ac7c8e13129dd9dc838686bf21 Mon Sep 17 00:00:00 2001 From: pompurin404 Date: Mon, 19 Aug 2024 12:40:05 +0800 Subject: [PATCH] fix aur package --- aur/mihomo-party-electron-bin/PKGBUILD | 6 +++--- aur/mihomo-party-electron/PKGBUILD | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/aur/mihomo-party-electron-bin/PKGBUILD b/aur/mihomo-party-electron-bin/PKGBUILD index d2bac49..f53daf5 100644 --- a/aur/mihomo-party-electron-bin/PKGBUILD +++ b/aur/mihomo-party-electron-bin/PKGBUILD @@ -25,14 +25,14 @@ 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/ + cp -r $srcdir/opt/mihomo-party/resources/sidecar ${pkgdir}/opt/mihomo-party/resources/ + cp -r $srcdir/opt/mihomo-party/resources/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}/../.. install -Dm755 "${_pkgname}.sh" "${pkgdir}/usr/bin/${_pkgname}" install -Dm644 "${_pkgname}.desktop" "${pkgdir}/usr/share/applications/${_pkgname}.desktop" - install -Dm644 "$srcdir/opt/mihomo-party/resources/icon.png" "${pkgdir}/usr/share/icons/hicolor/512x512/apps/${_pkgname}.png" + install -Dm644 "${pkgdir}/opt/mihomo-party/resources/icon.png" "${pkgdir}/usr/share/icons/hicolor/512x512/apps/${_pkgname}.png" chown -R root:root ${pkgdir} } \ No newline at end of file diff --git a/aur/mihomo-party-electron/PKGBUILD b/aur/mihomo-party-electron/PKGBUILD index ce7c222..a8773bb 100644 --- a/aur/mihomo-party-electron/PKGBUILD +++ b/aur/mihomo-party-electron/PKGBUILD @@ -41,7 +41,7 @@ package() { cd ${pkgdir}/../.. install -Dm755 "${_pkgname}.sh" "${pkgdir}/usr/bin/${_pkgname}" install -Dm644 "${_pkgname}.desktop" "${pkgdir}/usr/share/applications/${_pkgname}.desktop" - install -Dm644 "$srcdir/${_pkgname}-${pkgver}/dist/linux-unpacked/resources/icon.png" "${pkgdir}/usr/share/icons/hicolor/512x512/apps/${_pkgname}.png" + install -Dm644 "${pkgdir}/opt/mihomo-party/resources/icon.png" "${pkgdir}/usr/share/icons/hicolor/512x512/apps/${_pkgname}.png" chown -R root:root ${pkgdir} } \ No newline at end of file