automatically disable autoupdater
This commit is contained in:
2
.SRCINFO
2
.SRCINFO
@@ -1,7 +1,7 @@
|
|||||||
pkgbase = claude-code
|
pkgbase = claude-code
|
||||||
pkgdesc = An agentic coding tool that lives in your terminal
|
pkgdesc = An agentic coding tool that lives in your terminal
|
||||||
pkgver = 2.0.33
|
pkgver = 2.0.33
|
||||||
pkgrel = 2
|
pkgrel = 3
|
||||||
url = https://github.com/anthropics/claude-code
|
url = https://github.com/anthropics/claude-code
|
||||||
arch = x86_64
|
arch = x86_64
|
||||||
arch = aarch64
|
arch = aarch64
|
||||||
|
|||||||
4
PKGBUILD
4
PKGBUILD
@@ -2,7 +2,7 @@
|
|||||||
# Maintainer: Jérôme Poulin <jeromepoulin@gmail.com>
|
# Maintainer: Jérôme Poulin <jeromepoulin@gmail.com>
|
||||||
pkgname=claude-code
|
pkgname=claude-code
|
||||||
pkgver=2.0.33
|
pkgver=2.0.33
|
||||||
pkgrel=2
|
pkgrel=3
|
||||||
pkgdesc="An agentic coding tool that lives in your terminal"
|
pkgdesc="An agentic coding tool that lives in your terminal"
|
||||||
arch=('x86_64' 'aarch64')
|
arch=('x86_64' 'aarch64')
|
||||||
url="https://github.com/anthropics/claude-code"
|
url="https://github.com/anthropics/claude-code"
|
||||||
@@ -35,6 +35,8 @@ package() {
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
# Wrapper to prevent claude from detecting /usr/bin/claude as npm-global installation
|
# Wrapper to prevent claude from detecting /usr/bin/claude as npm-global installation
|
||||||
export NPM_CONFIG_PREFIX="${NPM_CONFIG_PREFIX:-/nonexistent}"
|
export NPM_CONFIG_PREFIX="${NPM_CONFIG_PREFIX:-/nonexistent}"
|
||||||
|
# Disable autoupdater
|
||||||
|
export DISABLE_AUTOUPDATER=1
|
||||||
exec /opt/claude-code/bin/claude "$@"
|
exec /opt/claude-code/bin/claude "$@"
|
||||||
EOF
|
EOF
|
||||||
chmod 755 "${pkgdir}/usr/bin/claude"
|
chmod 755 "${pkgdir}/usr/bin/claude"
|
||||||
|
|||||||
Reference in New Issue
Block a user