Ensure updates are done through package manager
This commit is contained in:
1 parent
ee077b2c0e
commit
7fd3bd88ad
2 files changed
+4
-2
No files matched your search
@@ -1,7 +1,7 @@
|
|||||||
pkgbase = cursor-bin
|
pkgbase = cursor-bin
|
||||||
pkgdesc = AI-first coding environment
|
pkgdesc = AI-first coding environment
|
||||||
pkgver = 3.2.16
|
pkgver = 3.2.16
|
||||||
pkgrel = 1
|
pkgrel = 2
|
||||||
url = https://www.cursor.com
|
url = https://www.cursor.com
|
||||||
arch = x86_64
|
arch = x86_64
|
||||||
license = LicenseRef-Cursor_EULA
|
license = LicenseRef-Cursor_EULA
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
pkgname=cursor-bin
|
pkgname=cursor-bin
|
||||||
pkgver=3.2.16
|
pkgver=3.2.16
|
||||||
pkgrel=1
|
pkgrel=2
|
||||||
pkgdesc='AI-first coding environment'
|
pkgdesc='AI-first coding environment'
|
||||||
arch=('x86_64')
|
arch=('x86_64')
|
||||||
url="https://www.cursor.com"
|
url="https://www.cursor.com"
|
||||||
@@ -28,6 +28,8 @@ package() {
|
|||||||
bsdtar -xOf ${noextract[0]} data.tar.xz | tar -xJf - -C "$pkgdir" \
|
bsdtar -xOf ${noextract[0]} data.tar.xz | tar -xJf - -C "$pkgdir" \
|
||||||
--exclude 'usr/share/cursor/[^r]*' --exclude 'usr/share/cursor/*.pak'
|
--exclude 'usr/share/cursor/[^r]*' --exclude 'usr/share/cursor/*.pak'
|
||||||
cd "$pkgdir"
|
cd "$pkgdir"
|
||||||
|
# Updates are handled by pacman, not Cursor's bundled updater.
|
||||||
|
sed -i '/^[[:space:]]*"\(backupUpdateUrl\|updateUrl\)":/d' "${_app}/product.json"
|
||||||
mv usr/share/zsh/{vendor-completions,site-functions}
|
mv usr/share/zsh/{vendor-completions,site-functions}
|
||||||
ln -sf /usr/bin/node ${_app}/resources/helpers/node
|
ln -sf /usr/bin/node ${_app}/resources/helpers/node
|
||||||
install -Dm755 "${srcdir}/rg.sh" ${_app}/node_modules/@vscode/ripgrep/bin/rg
|
install -Dm755 "${srcdir}/rg.sh" ${_app}/node_modules/@vscode/ripgrep/bin/rg
|
||||||
|
|||||||
Reference in new issue
Block a user