mirror of
https://github.com/ggerganov/llama.cpp.git
synced 2024-12-27 11:54:35 +00:00
5cf5e7d490
* `build`: generate hex dumps of server assets on the fly * build: workaround lack of -n on gnu xxd * build: don't use xxd in cmake * build: don't call xxd from build.zig * build: more idiomatic hexing * build: don't use xxd in Makefile (od hackery instead) * build: avoid exceeding max cmd line limit in makefile hex dump * build: hex dump assets at cmake build time (not config time)
11 lines
374 B
Bash
Executable File
11 lines
374 B
Bash
Executable File
#!/bin/bash
|
|
# Download and update deps for binary
|
|
|
|
# get the directory of this script file
|
|
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
|
|
PUBLIC=$DIR/public
|
|
|
|
echo "download js bundle files"
|
|
curl https://npm.reversehttp.com/@preact/signals-core,@preact/signals,htm/preact,preact,preact/hooks > $PUBLIC/index.js
|
|
echo >> $PUBLIC/index.js # add newline
|