mirror of
https://gitlab.com/Nanolx/homebrewfilter.git
synced 2024-11-24 10:09:21 +01:00
majorly improved the distribute script
This commit is contained in:
parent
5436968f55
commit
ec0090cf05
@ -1,9 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||
<app version="1">
|
||||
<name>Homebrew Filter Installer</name>
|
||||
<coder>Nano</coder>
|
||||
<version>rev36</version>
|
||||
<no_ios_reload/>
|
||||
<short_description>Installer</short_description>
|
||||
<long_description>Installiert den Hombrew Filter</long_description>
|
||||
</app>
|
10
data/meta.xml.in
Normal file
10
data/meta.xml.in
Normal file
@ -0,0 +1,10 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||
<app version="1">
|
||||
<name>HomebrewFilter Installer</name>
|
||||
<coder>Nano</coder>
|
||||
<version>rev@REV@</version>
|
||||
<no_ios_reload/>
|
||||
<short_description>HBF Installer</short_description>
|
||||
<long_description>Installiert den Hombrew Filter
|
||||
|
||||
Änderungen in rev@REV@:
|
62
distribute
62
distribute
@ -1,9 +1,57 @@
|
||||
#!/bin/bash
|
||||
|
||||
make
|
||||
cp boot.dol boot/source/hbf.dol
|
||||
make -C boot/
|
||||
cp boot/boot.dol installer/wad/00000002.app
|
||||
wine installer/WadMii.exe -input "Z:\home\chris\Projekte\homebrewfilter\installer\wad" -output "Z:\home\chris\Projekte\homebrewfilter\installer\data\install.wad"
|
||||
make -C installer
|
||||
cp installer/boot.dol HomebrewFilter/
|
||||
compile_hbf ()
|
||||
{
|
||||
make || exit 1
|
||||
}
|
||||
|
||||
compile_boot ()
|
||||
{
|
||||
if [[ -e $PWD/boot.dol ]]; then
|
||||
cp boot.dol boot/source/hbf.dol
|
||||
make -C boot/ || exit 1
|
||||
else compile_hbf
|
||||
cp boot.dol boot/source/hbf.dol
|
||||
make -C boot/ || exit 1
|
||||
fi
|
||||
|
||||
}
|
||||
|
||||
compile_installer ()
|
||||
{
|
||||
if [[ -e boot/boot.dol ]]; then
|
||||
cp boot/boot.dol installer/wad/00000002.app
|
||||
else compile_boot
|
||||
fi
|
||||
|
||||
wine installer/WadMii.exe -input "Z:\home\chris\Projekte\homebrewfilter\installer\wad" -output "Z:\home\chris\Projekte\homebrewfilter\installer\data\install.wad"
|
||||
|
||||
sleep 5
|
||||
|
||||
if [[ -e installer/data/install.wad ]]; then
|
||||
make -C installer
|
||||
else echo -e "--Error installer/data/install.wad not found--"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
}
|
||||
|
||||
make_distribution ()
|
||||
{
|
||||
|
||||
if [[ -e installer/boot.dol ]]; then
|
||||
cp installer/boot.dol HomebrewFilter/
|
||||
else compile_installer
|
||||
cp installer/boot.dol HomebrewFilter/
|
||||
fi
|
||||
|
||||
XREV=$(grep "define SVN_REV" svnrev/svnrev.c | gawk '{print $3}')
|
||||
|
||||
cp data/meta.xml.in HomebrewFilter/meta.xml
|
||||
|
||||
sed -e "s/@REV@/$XREV/g" -i HomebrewFilter/meta.xml
|
||||
sed -e '/./{H;$!d;}' -e 'x;/rev37/!d;' updates >> HomebrewFilter/meta.xml
|
||||
echo -e "\n </long_description>\n</app>" >> HomebrewFilter/meta.xml
|
||||
}
|
||||
|
||||
make_distribution
|
||||
|
Loading…
Reference in New Issue
Block a user