Package Details: switchhosts 4.3.0-2

Git Clone URL: https://aur.archlinux.org/switchhosts.git (read-only, click to copy)
Package Base: switchhosts
Description: An app for managing hosts file,and switch hosts quickly ! (Use system-wide electron)
Upstream URL: https://switchhosts.vercel.app/
Keywords: electron hosts hostseditor hostsfile switch-hosts switchhosts
Licenses: Apache-2.0
Conflicts: switchhosts
Submitter: Qingxu
Maintainer: zxp19821005 (witt.9099)
Last Packager: zxp19821005
Votes: 0
Popularity: 0.000000
First Submitted: 2021-08-23 17:23 (UTC)
Last Updated: 2026-04-07 10:48 (UTC)

Dependencies (7)

Required by (0)

Sources (2)

Latest Comments

shayaknyc commented on 2026-04-07 13:13 (UTC)

@zxp19821005 thank you! works!

zxp19821005 commented on 2026-04-07 10:48 (UTC)

@shayaknyc Thanks for your feedback, fixed it.

shayaknyc commented on 2026-04-06 17:52 (UTC) (edited on 2026-04-06 17:54 (UTC) by shayaknyc)

Anyone else getting build errors? Just cloned the repo, and got this:

$ makepkg -s
==> Making package: switchhosts 4.3.0-1 (Mon 06 Apr 2026 01:49:59 PM EDT)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Cloning switchhosts-4.3.0 git repo...
Cloning into bare repository '/home/shayaknyc/git/switchhosts/switchhosts/switchhosts-4.3.0'...
remote: Enumerating objects: 14982, done.
remote: Counting objects: 100% (621/621), done.
remote: Compressing objects: 100% (256/256), done.
remote: Total 14982 (delta 492), reused 365 (delta 365), pack-reused 14361 (from 4)
Receiving objects: 100% (14982/14982), 33.16 MiB | 75.63 MiB/s, done.
Resolving deltas: 100% (8305/8305), done.
  -> Found switchhosts.sh
==> Validating source files with sha256sums...
    switchhosts-4.3.0 ... Passed
    switchhosts.sh ... Passed
==> Extracting sources...
  -> Creating working copy of switchhosts-4.3.0 git repo...
Cloning into 'switchhosts-4.3.0'...
done.
Switched to a new branch 'makepkg'
==> Starting prepare()...
The electron version is: 39
mkdir: created directory '/home/shayaknyc/git/switchhosts/switchhosts/src/.nvm'
'/home/shayaknyc/git/switchhosts/switchhosts/src/.nvm/nvm.sh' -> '/usr/share/nvm/nvm.sh'
'/home/shayaknyc/git/switchhosts/switchhosts/src/.nvm/nvm-exec' -> '/usr/share/nvm/nvm-exec'
Downloading and installing node v22.22.2...
Downloading https://nodejs.org/dist/v22.22.2/node-v22.22.2-linux-x64.tar.xz...
############################################################################################################################################################################## 100.0%
Computing checksum with sha256sum
Checksums matched!
Now using node v22.22.2 (npm v10.9.7)
Creating default alias: default -> 22 (-> v22.22.2 *)
Now using node v22.22.2 (npm v10.9.7)
sed: can't read scripts/make.js: No such file or directory
==> ERROR: A failure occurred in prepare().
    Aborting...

Confirmed there is no make.js file, but there IS a make.mjs file. Updated the PKGBUILD to change the filename to make.mjs but that failed too. Any ideas?

witt.9099 commented on 2025-01-16 13:30 (UTC)

Request for joint maintenance