Skip to content

Commit

Permalink
Add shell script to generate release package
Browse files Browse the repository at this point in the history
- Generates config.ini for each MSET variant
  • Loading branch information
lifehackerhansol committed Dec 2, 2024
1 parent 9a98e44 commit 25ea9bb
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
build
2DSaver
*.3dsx
*.elf
*.smdh
*.zip
43 changes: 43 additions & 0 deletions generate_release.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
#!/bin/bash

set -e

TOPDIR=$PWD
RELEASEDIR=$TOPDIR/`basename $PWD`

make

mkdir $RELEASEDIR
cp 2DSaver.3dsx $RELEASEDIR/boot.3dsx

# CHN
mkdir $RELEASEDIR/CHN
cp config.ini $RELEASEDIR/CHN
sed -i "s|000400000d921e00|0004001000026000|g" $RELEASEDIR/CHN/config.ini

# EUR
mkdir $RELEASEDIR/EUR
cp config.ini $RELEASEDIR/EUR
sed -i "s|000400000d921e00|0004001000022000|g" $RELEASEDIR/EUR/config.ini

# JPN
mkdir $RELEASEDIR/JPN
cp config.ini $RELEASEDIR/JPN
sed -i "s|000400000d921e00|0004001000020000|g" $RELEASEDIR/JPN/config.ini

# KOR
mkdir $RELEASEDIR/KOR
cp config.ini $RELEASEDIR/KOR
sed -i "s|000400000d921e00|0004001000027000|g" $RELEASEDIR/KOR/config.ini

# TWN
mkdir $RELEASEDIR/TWN
cp config.ini $RELEASEDIR/TWN
sed -i "s|000400000d921e00|0004001000028000|g" $RELEASEDIR/TWN/config.ini

# USA
mkdir $RELEASEDIR/USA
cp config.ini $RELEASEDIR/USA
sed -i "s|000400000d921e00|0004001000021000|g" $RELEASEDIR/USA/config.ini

cd $RELEASEDIR && zip -r $PWD.zip * && cd $TOPDIR

0 comments on commit 25ea9bb

Please sign in to comment.