Skip to content
This repository has been archived by the owner on Oct 20, 2019. It is now read-only.

Commit

Permalink
Put version number on the mod zip file.
Browse files Browse the repository at this point in the history
  • Loading branch information
EXTER7 committed Sep 14, 2013
1 parent 487c2a1 commit c3c815c
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions build_fodc.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/bin/bash

MODNAME=fodc
MODVERSION=1.4.0

rm -rf packed/*
if ./recompile.sh && ./reobfuscate_srg.sh
Expand All @@ -15,10 +16,11 @@ then
cp $MODNAME"_mcmod.info" "packed/mcmod.info"

cd packed
zip -r $MODNAME".zip" *
mv $MODNAME".zip" "../"
ZIPFILE=$MODNAME"-"$MODVERSION".zip"
zip -r $ZIPFILE *
mv $ZIPFILE "../"
cd ..
echo "$0: Build complete, '"$MODNAME".zip' generated."
echo "$0: Build complete, '"$ZIPFILE"' generated."
else
echo "$0: Compile failed, aborting build."
exit 1
Expand Down

0 comments on commit c3c815c

Please sign in to comment.