Skip to content

Commit 719dd95

Browse files
authored
Merge pull request #14 from jkoelker/update-claude-0.12.49
Update Claude Desktop to 0.12.49
2 parents cf99f8b + 8e0c01f commit 719dd95

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

PKGBUILD

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Maintainer: AstroSteveO <stevengmjr at gmail dot com>
22

33
pkgname=claude-desktop-native
4-
pkgver=0.12.28
4+
pkgver=0.12.49
55
pkgrel=1
66
pkgdesc="Unofficial Claude Desktop for Linux"
77
arch=('x86_64')
@@ -12,7 +12,7 @@ makedepends=('p7zip' 'npm' 'nodejs' 'rust' 'cargo' 'imagemagick' 'icoutils' 'tar
1212
optdepends=('docker: for running MCP servers')
1313
source=("Claude-Setup-x64.exe::https://storage.googleapis.com/osprey-downloads-c02f6a0d-347c-492b-a752-3e0651722e97/nest-win-x64/Claude-Setup-x64.exe"
1414
"patchy-cnb-1.0.0.tar.gz::https://github.com/claude-desktop-native/patchy-cnb/archive/refs/tags/v1.0.0.tar.gz")
15-
sha256sums=('e6932fe8bac63af4171009d612d1ddf7ff616736749808b4fd8519364c3f01b6'
15+
sha256sums=('b900c76b1976aa5b9f2f128df3770e6dac2d1ba0fcc7ff87fa10e0625bfe0ef7'
1616
'c5bba36cf5d076f61dec3ade072eb61a62818fa2f1584e88cbe8ef775776ca83')
1717

1818
prepare() {
@@ -61,9 +61,10 @@ build() {
6161

6262
cd electron-app
6363
npx asar extract app.asar app.asar.contents
64-
sed -i 's|return ..app.isPackaged?.*resolve(__dirname,"..","..","resources")|return "/usr/lib/'"${pkgname}"'/resources"|' app.asar.contents/.vite/build/index*.js
65-
# note that the below is replacing i18n with the standard resources directory as that's where the i18n json files wind up
66-
sed -i 's|return ..app.isPackaged?.*resolve(__dirname,"..","..","resources","i18n")|return "/usr/lib/'"${pkgname}"'/resources"|' app.asar.contents/.vite/build/index*.js
64+
# Fix resource paths - handle different variable names for app object
65+
sed -i 's|return[[:space:]]\+[a-zA-Z_][a-zA-Z0-9_]*\.app\.isPackaged[[:space:]]*?[^:]*:[[:space:]]*[a-zA-Z_][a-zA-Z0-9_]*\.resolve([^,]*,[[:space:]]*"\.\.","\.\.","resources")|return "/usr/lib/'"${pkgname}"'/resources"|g' app.asar.contents/.vite/build/index*.js
66+
# Fix i18n resource paths specifically
67+
sed -i 's|return[[:space:]]\+[a-zA-Z_][a-zA-Z0-9_]*\.app\.isPackaged[[:space:]]*?[^:]*:[[:space:]]*[a-zA-Z_][a-zA-Z0-9_]*\.resolve([^,]*,[[:space:]]*"\.\.","\.\.","resources","i18n")|return "/usr/lib/'"${pkgname}"'/resources"|g' app.asar.contents/.vite/build/index*.js
6768
# fix negation operator to show menubar
6869
sed -i -E 's/if\(!([a-zA-Z]+)[[:space:]]*&&[[:space:]]*([a-zA-Z]+)\)/if(\1 \&\& \2)/g' app.asar.contents/.vite/renderer/main_window/assets/MainWindowPage-*.js
6970

0 commit comments

Comments
 (0)