shithub: moonfish

Download patch

ref: 047ae3979141eaac082e8fd77797c8c0fabe0380
parent: 4aa32a0cdf8a7335da637abf8daa1fcd67e4623b
author: zamfofex <zamfofex@twdb.moe>
date: Mon Jul 29 05:18:59 EDT 2024

make minified executable slightly more portable

--- a/minify.sh
+++ b/minify.sh
@@ -89,7 +89,7 @@
 cat - moonfish.c.xz > moonfish.sh << END
 #!/bin/sh
 t=\`mktemp\`
-${CC:-cc} -O3 -o \$t -xc <(tail -n+5 "\$0"|unxz -Fraw) -pthread
+tail -n+5 "\$0"|unxz -Fraw|${CC:-cc} -O3 -o \$t -xc - -pthread
 (sleep 3;rm \$t)&exec \$t
 END
 chmod +x moonfish.sh
--