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