0.16.7: yt-dlp and FFmpeg come with the pack (no AnalogLib setup download)
external-files.json lists non-mod files the .mrpack downloads; FFmpeg 9.0.2 essentials and a yt-dlp mirror live in the org's generic packages on Gitea. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
7944a61dc3
commit
ae77ecbcd3
+14
-1
@@ -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-<version>.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,
|
||||
|
||||
Reference in New Issue
Block a user