ref: b2480be72099183e82ca9e25c1faea6e4221d28e
parent: 8ee605dd7ec02c669cfaeaf5300867249f3e232a
author: zamfofex <zamfofex@twdb.moe>
date: Tue Jan 30 23:21:04 EST 2024
strip files before deploying
--- a/.build.yml
+++ b/.build.yml
@@ -15,6 +15,7 @@
- wasi-sdk
- clang
- lld
+ - llvm
tasks:
- build: |
cd moonfish
@@ -22,6 +23,10 @@
make LDFLAGS=-static CC=x86_64-w64-mingw32-gcc moonfish.exe
make LDFLAGS='-static -Wl,--max-memory=1073741824' CC='clang --target=wasm32-wasi-threads --sysroot=/usr/share/wasi-sysroot' moonfish.wasm
./minify.sh
+ - strip: |
+ cd moonfish
+ strip --strip-all moonfish play lichess analyse
+ llvm-strip --strip-all moonfish.wasm
- deploy: |
set +x
if test "$GIT_REF" = refs/heads/main && test -f neocities-token.txt
--
⑨