From 82a2e445f688740cacc754c32156af3c88d0948b Mon Sep 17 00:00:00 2001 From: Sanalzio Date: Wed, 15 May 2024 19:54:43 +0300 Subject: [PATCH] 4.5.0 --- build.js | 8 + bun.lockb | Bin 0 -> 27768 bytes changelog.md | 10 + colorama.js | 61 ++++ data/languages.json | 5 +- data/wikit.1 | 2 +- index.js | 149 +++++---- package-lock.json | 784 ++++++++++++++++++++++++++++++++++++++++++++ package.json | 5 +- readme.md | 49 ++- yarn.lock | 193 ++++++----- 11 files changed, 1088 insertions(+), 178 deletions(-) create mode 100644 build.js create mode 100644 bun.lockb create mode 100644 changelog.md create mode 100644 colorama.js create mode 100644 package-lock.json diff --git a/build.js b/build.js new file mode 100644 index 0000000..6a8cf77 --- /dev/null +++ b/build.js @@ -0,0 +1,8 @@ +import { $ } from "bun"; +const platforms = ["linux-x64", "linux-arm64", "windows-x64", "darwin-x64", "darwin-arm64"]; +for await (const platform of platforms) { + console.log(`Building for ${platform}...\n`); + await $`bun build --minify --compile --outfile=../wikit_dist/wikit_${platform.replace("darwin", "macos").replace("-", "_")} --target=bun-${platform} index.js` + console.log(""); +} +console.log("Done!"); \ No newline at end of file diff --git a/bun.lockb b/bun.lockb new file mode 100644 index 0000000000000000000000000000000000000000..853c5c8a2ca546cac2f482262e9bd885a499a0f4 GIT binary patch literal 27768 zcmeHw30O_r`~N8?(IBLeXrM@^d6tmKbd9A9MZ>9%hEwO9Qn-{d7ZECogd|c3Q7J=2 zC}mED%v?!CA^z{XJFB*Psod}H|2)6n^R=F5we}i5pY^VH4STJ<_j%J$(+lGB^xQc9 zdTjq-Rkt923GggmuDg#X$Cu6Wiw*0 zmWOQ4xY;Gr7as>ZBsDzufkNQMHwTO^e+$Ee@$KV;7mWEFAC3SbYT%_AjIc!zN3xFV~+9>8T>k<)c7c#BGH*^0|Av z`l4{IofwR65chWFvpjuWz5alBFNoVfh~+|=&2kh&i1>AYM>&=Wc~^@yLM5%7IEZV+yS{H~C`3PP;cm+Rrm_hv9WIb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