Skip to content

Commit

Permalink
mihomo-party: optimize redundant code
Browse files Browse the repository at this point in the history
- Remove pnpm add mihomo-party/sysproxy-linux-{arch}-gnu as it is optional.
- Remove pnpm prepare as it's redundant with pnpm install.
- No need to manage the distribution of automatic construction equipment.
  • Loading branch information
miwu04 committed Dec 21, 2024
1 parent e7e9491 commit 58d822d
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 19 deletions.
13 changes: 1 addition & 12 deletions app-network/mihomo-party/autobuild/build
Original file line number Diff line number Diff line change
@@ -1,19 +1,8 @@
abinfo "Fetching dependencies and prepare ..."
pnpm install
if ab_match_arch amd64; then
pnpm add @mihomo-party/sysproxy-linux-x64-gnu
pnpm prepare --x64
elif ab_match_arch arm64; then
pnpm add @mihomo-party/sysproxy-linux-arm64-gnu
pnpm prepare --arm64
fi

abinfo "Building Mihomo-Party ..."
if ab_match_arch amd64; then
pnpm build:linux --x64 --dir
elif ab_match_arch arm64; then
pnpm build:linux --arm64 --dir
fi
pnpm build:linux --dir


abinfo "Installing Mihomo Party ..."
Expand Down
4 changes: 1 addition & 3 deletions app-network/mihomo-party/autobuild/defines
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,5 @@ PKGDEP="gtk-3 mihomo nss libsecret libnotify xdg-utils at-spi2-core"
BUILDDEP="nodejs"
PKGDES="Graphical interface for managing Mihomo subscriptions, profiles, and settings"

PKGPROV="mihomo-party"

# mihomo-party/sysproxy not supported on loongson3, riscv64, loongarch64.
# electron only supported on amd64, arm64.
FAIL_ARCH="!(amd64|arm64)"
2 changes: 0 additions & 2 deletions app-network/mihomo-party/autobuild/prepare

This file was deleted.

2 changes: 0 additions & 2 deletions app-network/mihomo-party/spec
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,3 @@ REL=1
SRCS="git::commit=tags/v$VER::https://github.com/mihomo-party-org/mihomo-party.git"
CHKSUMS="SKIP"
CHKUPDATE="anitya::id=375292"
ENVREQ__ARM64="total_mem_per_core=3"
ENVREQ__AMD64="total_mem_per_core=3"

0 comments on commit 58d822d

Please sign in to comment.