From 7ce7f9e315abcb23bffa497cbc3367972e3b6bd2 Mon Sep 17 00:00:00 2001 From: Micle Date: Tue, 3 Jun 2025 19:34:07 +0100 Subject: [PATCH] Added forge mod export. --- .gitignore | 3 ++- export.sh | 6 +++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 0e1016d..3fff1b5 100644 --- a/.gitignore +++ b/.gitignore @@ -6,4 +6,5 @@ build/* config/template_config.json # Builds -*.zip \ No newline at end of file +*.zip +*.jar \ No newline at end of file diff --git a/export.sh b/export.sh index 67102cb..a353214 100755 --- a/export.sh +++ b/export.sh @@ -23,6 +23,10 @@ done < <(cat $MODS_TOML) # Exports cd ${DATAPACK_DIR} +COMMON_CONTENTS="data/ pack.mcmeta pack.png" # Datapack -zip -r ../${MOD_ID}-${MC_VERSION}-${MOD_VERSION}.zip data/ pack.mcmeta pack.png \ No newline at end of file +zip -r ../$MOD_ID-$MC_VERSION-$MOD_VERSION.zip $COMMON_CONTENTS + +# Forge mod +zip -r ../$MOD_ID-$MC_VERSION-$MOD_VERSION-forge.jar $COMMON_CONTENTS META-INF/ \ No newline at end of file