Added forge mod export.
This commit is contained in:
3
.gitignore
vendored
3
.gitignore
vendored
@ -6,4 +6,5 @@ build/*
|
|||||||
config/template_config.json
|
config/template_config.json
|
||||||
|
|
||||||
# Builds
|
# Builds
|
||||||
*.zip
|
*.zip
|
||||||
|
*.jar
|
@ -23,6 +23,10 @@ done < <(cat $MODS_TOML)
|
|||||||
|
|
||||||
# Exports
|
# Exports
|
||||||
cd ${DATAPACK_DIR}
|
cd ${DATAPACK_DIR}
|
||||||
|
COMMON_CONTENTS="data/ pack.mcmeta pack.png"
|
||||||
|
|
||||||
# Datapack
|
# Datapack
|
||||||
zip -r ../${MOD_ID}-${MC_VERSION}-${MOD_VERSION}.zip data/ pack.mcmeta pack.png
|
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/
|
Reference in New Issue
Block a user