mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-06-20 13:32:04 +08:00
6adb63b915
date: 2026-06-04T09:49:56 master commit: c0ab3550eca2e9daf197c46b7e4b24aa9637cf2e
11 lines
370 B
Bash
Executable File
11 lines
370 B
Bash
Executable File
#!/usr/bin/env bash
|
|
cd "$(dirname "$0")"
|
|
npm init -y && \
|
|
npm install --save-dev webpack webpack-cli && \
|
|
npm install tiktoken && \
|
|
jq '.scripts.build = "webpack"' package.json > package.tmp.json && \
|
|
mv package.tmp.json package.json && \
|
|
npm run build && \
|
|
mv dist/*.wasm ./tiktoken_bg.wasm && \
|
|
mv dist/* ./ && \
|
|
rm -rf dist node_modules package-lock.json package.json |