diff --git a/config/fancymenu/assets/version.png b/config/fancymenu/assets/version.png index bf699cc..6674201 100644 Binary files a/config/fancymenu/assets/version.png and b/config/fancymenu/assets/version.png differ diff --git a/config/fancymenu/customization/createrp_title.txt b/config/fancymenu/customization/createrp_title.txt index 5d33f59..ef2f37c 100644 --- a/config/fancymenu/customization/createrp_title.txt +++ b/config/fancymenu/customization/createrp_title.txt @@ -1326,7 +1326,7 @@ element { rounding_radius_top_right = 0.0 rounding_radius_bottom_right = 0.0 rounding_radius_bottom_left = 0.0 - [loading_requirement:fancymenu_visibility_requirement_is_text][requirement_mode:if][req_id:91c9e906-7f6c-52e8-a560-68607073f5b2-1791960000000] = ["mode":"equals","text":"{"placeholder":"json","values":{"source":"https://git.fulldroper.ks.ua/api/v1/repos/Pinecraft-CreateRP/client/releases/latest","json_path":"$.tag_name"}}","compare_with":"v0.16.6"]$ + [loading_requirement:fancymenu_visibility_requirement_is_text][requirement_mode:if][req_id:91c9e906-7f6c-52e8-a560-68607073f5b2-1791960000000] = ["mode":"equals","text":"{"placeholder":"json","values":{"source":"https://git.fulldroper.ks.ua/api/v1/repos/Pinecraft-CreateRP/client/releases/latest","json_path":"$.tag_name"}}","compare_with":"v0.16.7"]$ } element { @@ -1409,7 +1409,7 @@ element { description = Нова версія збірки: {"placeholder":"json","values":{"source":"https://git.fulldroper.ks.ua/api/v1/repos/Pinecraft-CreateRP/client/releases/latest","json_path":"$.tag_name"}}. Натисни, щоб відкрити сторінку завантаження. [executable_action_instance:e3201eb9-9957-5172-961e-6a0a3efa8ea8-1791960000000][action_type:openlink] = https://git.fulldroper.ks.ua/Pinecraft-CreateRP/client/releases/latest [loading_requirement:fancymenu_visibility_requirement_is_text][requirement_mode:if][req_id:8eb26843-5898-5897-a340-cffc49fb58a3-1791960000000] = ["mode":"starts-with","text":"{"placeholder":"json","values":{"source":"https://git.fulldroper.ks.ua/api/v1/repos/Pinecraft-CreateRP/client/releases/latest","json_path":"$.tag_name"}}","compare_with":"v"]$ - [loading_requirement:fancymenu_visibility_requirement_is_text][requirement_mode:if_not][req_id:65d764d6-cd1d-5920-a629-9a2662a23dd7-1791960000000] = ["mode":"equals","text":"{"placeholder":"json","values":{"source":"https://git.fulldroper.ks.ua/api/v1/repos/Pinecraft-CreateRP/client/releases/latest","json_path":"$.tag_name"}}","compare_with":"v0.16.6"]$ + [loading_requirement:fancymenu_visibility_requirement_is_text][requirement_mode:if_not][req_id:65d764d6-cd1d-5920-a629-9a2662a23dd7-1791960000000] = ["mode":"equals","text":"{"placeholder":"json","values":{"source":"https://git.fulldroper.ks.ua/api/v1/repos/Pinecraft-CreateRP/client/releases/latest","json_path":"$.tag_name"}}","compare_with":"v0.16.7"]$ } vanilla_button { diff --git a/external-files.json b/external-files.json new file mode 100644 index 0000000..24c126d --- /dev/null +++ b/external-files.json @@ -0,0 +1,29 @@ +[ + { + "path": ".analoglib/bin/yt-dlp.exe", + "note": "yt-dlp 2026.08.19 (Analog Audio streams links through it)", + "side": "client", + "hashes": { + "sha1": "dac56edc61cc7cab31741c937f5d9067bc2cb13a", + "sha512": "d742483ef2f1077f0ef25d4b2f64c7e1355a0c0f271a644d4a354f7b51fbde18d94c76539114beb2a383af6d84008dd93fee5d2388cb95c6a2dd460ad1160b21" + }, + "fileSize": 17840399, + "downloads": [ + "https://github.com/yt-dlp/yt-dlp/releases/download/2026.08.19/yt-dlp.exe", + "https://git.fulldroper.ks.ua/api/packages/Pinecraft-CreateRP/generic/yt-dlp/2026.08.19/yt-dlp.exe" + ] + }, + { + "path": ".analoglib/bin/ffmpeg.exe", + "note": "FFmpeg 9.0.2 essentials (gyan.dev), ffmpeg.exe from GyanD/codexffmpeg 9.0.2 — Analog Audio decodes with it", + "side": "client", + "hashes": { + "sha1": "bddf7d95aba465592eed95599eb599cc2a390fc2", + "sha512": "bff0945cb157e115bd806383b4c629989416129ef3806b03e8e198bea5a88b77e4745e6e269258d9ac897cf07c3ea886abc51111480c807ac52ffde006c6b526" + }, + "fileSize": 105423872, + "downloads": [ + "https://git.fulldroper.ks.ua/api/packages/Pinecraft-CreateRP/generic/ffmpeg/9.0.2/ffmpeg.exe" + ] + } +] diff --git a/index.toml b/index.toml index 3914aab..d3be1d5 100644 --- a/index.toml +++ b/index.toml @@ -274,7 +274,7 @@ hash = "8f724d13d7009e1ab935db3c71094aea724faccc729ebd3e050d5a03eac93f8d" [[files]] file = "config/fancymenu/assets/version.png" -hash = "374b3b33ba6046c8734411c4a7351fc9dec70c3e510601a764c53417986b1f4c" +hash = "230bf2ed71666a109933c60136ee1587e19589bca068a34434101aae2d9ca952" [[files]] file = "config/fancymenu/custom_gui_screens.txt" @@ -302,7 +302,7 @@ hash = "dbeef22ff98f5f37b75f1d98599ee296137f82febfceaf86ce1b0e5a24c5c82a" [[files]] file = "config/fancymenu/customization/createrp_title.txt" -hash = "473b479d5e6edfdd3467dfc39dd0495ef9c35f1ad4abc55234a1e4f6cc32285a" +hash = "829a373c162815b2babadc5ffa6faf4eba944864a1164c8bf0a4990a8e90835f" [[files]] file = "config/fancymenu/options.txt" diff --git a/pack.toml b/pack.toml index db4f934..82db003 100644 --- a/pack.toml +++ b/pack.toml @@ -1,12 +1,12 @@ name = "Create RP" author = "Pinecraft-CreateRP" -version = "0.16.6" +version = "0.16.7" pack-format = "packwiz:1.1.0" [index] file = "index.toml" hash-format = "sha256" -hash = "be3dec64c038b42321ab4c046419c68bb6c0168791fdf2a2a32a1d3c673b2a42" +hash = "433b60ff9c5d7dc2947784fbcbc1cc407ff970e6c3861dc901c7efe7ccbce5b2" [versions] minecraft = "1.21.1" diff --git a/tools/export-mrpack.mjs b/tools/export-mrpack.mjs index e9f9ad7..cc8c8bc 100644 --- a/tools/export-mrpack.mjs +++ b/tools/export-mrpack.mjs @@ -1,6 +1,7 @@ // Exports this packwiz pack as a Modrinth modpack (.mrpack) for Modrinth App / Prism "Import". // node tools/export-mrpack.mjs → dist/CreateRP-.mrpack // Mods are referenced by their Modrinth CDN URL (sha1/sha512/size from the Modrinth API); +// external-files.json adds other downloaded files (Analog Audio's yt-dlp/FFmpeg in .analoglib/bin); // config/ and kubejs/ go into overrides/. Zipping uses Windows' bsdtar (tar -a) or `zip` on Linux. import fs from 'fs'; import path from 'path'; @@ -42,7 +43,19 @@ const files = metas.map(m => { downloads: [f.url], fileSize: f.size }; -}).sort((a, b) => a.path.localeCompare(b.path)); +}); +// files that are not mods but are downloaded the same way (Analog Audio's yt-dlp and FFmpeg): external-files.json +const externalFile = path.join(root, 'external-files.json'); +if (fs.existsSync(externalFile)) { + for (const x of JSON.parse(fs.readFileSync(externalFile, 'utf8'))) files.push({ + path: x.path, + hashes: x.hashes, + env: { client: x.side === 'server' ? 'unsupported' : 'required', server: x.side === 'client' ? 'unsupported' : 'required' }, + downloads: x.downloads, + fileSize: x.fileSize + }); +} +files.sort((a, b) => a.path.localeCompare(b.path)); const index = { formatVersion: 1,