2nd attempt to make MR zip filename match CF's (#508)

Don't forget to update mmc-export

Co-authored-by: Madis Otenurm <Madis0@users.noreply.github.com>
This commit is contained in:
Project D.D 2022-11-06 12:26:44 +00:00 committed by GitHub
parent d5decd3553
commit d2aeab9bc0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -88,11 +88,11 @@ if mmc_export_modrinth_export:
mmc_zip_path = mmc_zip_root + "\\Fabulously Optimized " + pack_version + ".zip"
modrinth_config = git_path + "Modrinth\\mmc-export.toml"
cmd = f'mmc-export -i "{mmc_zip_path}" -f Modrinth --modrinth-search loose -o "{mmc_zip_root}" -c "{modrinth_config}" -v {pack_version} --scheme {"MR-{name}-{version}"}'
cmd = f'mmc-export -i "{mmc_zip_path}" -f Modrinth --modrinth-search loose -o "{mmc_zip_root}" -c "{modrinth_config}" -v {pack_version} --scheme {"{name}-{version}"}'
os.system(cmd)
if is_legacy == False:
extract_file(mmc_zip_root + "\\MR-Fabulously Optimized-" + pack_version + ".mrpack", "modrinth.index.json", git_path + "\\" + "Modrinth", "Modrinth manifest", "Git")
extract_file(mmc_zip_root + "\\Fabulously Optimized-" + pack_version + ".mrpack", "modrinth.index.json", git_path + "\\" + "Modrinth", "Modrinth manifest", "Git")
# Export Modrinth pack and manifest via packwiz method
if packwiz_modrinth_export: