The binary was being built locally on Arch (with ICU 78) and then deployed to Debian, causing shared library errors. Now the deployment installs Bun on the server and builds the binary there, ensuring compatibility with the target system's libraries.
24 lines
392 B
Makefile
24 lines
392 B
Makefile
install:
|
|
bun install
|
|
|
|
dev:
|
|
bun run --watch src/index.tsx
|
|
|
|
build:
|
|
bun build --compile --minify --target bun --outfile ./target/sepiatones_xyz ./src/index.tsx
|
|
|
|
deploy:
|
|
ansible-playbook -i ansible/hosts.ini ansible/deploy.yml
|
|
|
|
test:
|
|
bun test
|
|
|
|
check:
|
|
bunx tsc --noEmit --skipLibCheck
|
|
|
|
clean:
|
|
rm -rf node_modules
|
|
rm -rf dist
|
|
|
|
format:
|
|
bun run prettier . --write
|