Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add version number to zip file(s) #4

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 8 additions & 5 deletions build_release.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#!/bin/sh

# Get the current version number
VERSION=$(cat version.txt)

# builds a preset
build_preset() {
echo Configuring $1 ...
Expand All @@ -23,7 +26,7 @@ cp assets/config.ini.template out/nds/config/ftpsrv/
mkdir -p out/nds
cp build/nds/*.nds out/nds/ftpsrv.nds
cd out/nds
zip -r9 ../nds.zip ftpsrv.nds config
zip -r9 ../nds_v${VERSION}.zip ftpsrv.nds config
cd ../..

# --- 3DS --- #
Expand All @@ -33,7 +36,7 @@ cp assets/config.ini.template out/3ds/config/ftpsrv/
mkdir -p out/3ds
cp build/3ds/*.3dsx out/3ds/ftpsrv.3dsx
cd out/3ds
zip -r9 ../3ds.zip ftpsrv.3dsx config
zip -r9 ../3ds_v${VERSION}.zip ftpsrv.3dsx config
cd ../..

# --- WII --- #
Expand All @@ -43,7 +46,7 @@ cp assets/config.ini.template out/wii/config/ftpsrv/
mkdir -p out/wii
cp -r build/wii/apps out/wii/
cd out/wii
zip -r9 ../wii.zip apps config
zip -r9 ../wii_v${VERSION}.zip apps config
cd ../..

# --- SWITCH --- #
Expand All @@ -54,11 +57,11 @@ mkdir -p out/switch/switch
cp assets/config.ini.template out/switch/config/ftpsrv/
cp -r build/switch/*.nro out/switch/switch/ftpsrv.nro
cd out/switch
zip -r9 ../switch_application.zip switch config
zip -r9 ../switch_application_v${VERSION}.zip switch config
cd ../..

mkdir -p out/switch/atmosphere/contents/
cp -r build/switch/420000000000011B out/switch/atmosphere/contents/
cd out/switch
zip -r9 ../switch_sysmod.zip atmosphere config
zip -r9 ../switch_sysmod_v${VERSION}.zip atmosphere config
cd ../..
1 change: 1 addition & 0 deletions version.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1.2.2