3 # WinterBoard - Theme Manager for the iPhone
4 # Copyright (C) 2008-2014 Jay Freeman (saurik)
6 # GNU Lesser General Public License, Version 3 {{{ */
8 # WinterBoard is free software: you can redistribute it and/or modify it under
9 # the terms of the GNU Lesser General Public License as published by the
10 # Free Software Foundation, either version 3 of the License, or (at your
11 # option) any later version.
13 # WinterBoard is distributed in the hope that it will be useful, but WITHOUT
14 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
15 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
16 # License for more details.
18 # You should have received a copy of the GNU Lesser General Public License
19 # along with WinterBoard. If not, see <http://www.gnu.org/licenses/>.
25 mkdir -p package
/DEBIAN
26 mkdir -p package
/Applications
/WinterBoard.app
27 mkdir -p package
/Library
/Themes
28 mkdir -p package
/Library
/MobileSubstrate
/DynamicLibraries
29 mkdir -p package
/Library
/PreferenceLoader
/Preferences
30 mkdir -p package
/System
/Library
/PreferenceBundles
31 mkdir -p package
/usr
/libexec
/package
32 cp -a Optimize package
/usr
/libexec
/package
33 chmod 6755 package
/usr
/libexec
/package
/Optimize
34 cp -a WinterBoardSettings.plist package
/Library
/PreferenceLoader
/Preferences
35 cp -a WinterBoardSettings.bundle package
/System
/Library
/PreferenceBundles
36 cp -a Icon
-Small.png package
/System
/Library
/PreferenceBundles
/WinterBoardSettings.bundle
/icon.png
37 cp -a Icon
-Small@
2x.png package
/System
/Library
/PreferenceBundles
/WinterBoardSettings.bundle
/icon@
2x.png
38 cp -a SearchResultsCheckmarkClear.png WinterBoardSettings package
/System
/Library
/PreferenceBundles
/WinterBoardSettings.bundle
39 ln -s /Applications
/WinterBoard.app
/WinterBoard.dylib package
/Library
/MobileSubstrate
/DynamicLibraries
40 cp -a WinterBoard.plist package
/Library
/MobileSubstrate
/DynamicLibraries
41 cp -a *.theme package
/Library
/Themes
42 find package
-name .svn
| while read -r line
; do rm -rf "${line}"; done
43 cp -a extrainst_ preinst prerm package
/DEBIAN
44 sed -e "s/VERSION/$(./version.sh)/g" control
>package
/DEBIAN
/control
45 cp -a Test.sh Default
-568h@
2x.png Icon
-Small.png icon
{,-72,@
2x
}.png icon7
{,@
2x
}{,~ipad
}.png WinterBoard.dylib WinterBoard Info.plist package
/Applications
/WinterBoard.app
47 file="winterboard_$(grep ^Version: package/DEBIAN/control | cut -d ' ' -f 2)_iphoneos-arm.deb"; echo "$file"; ln -sf "$file" winterboard.deb
48 dpkg
-deb -Zlzma -b package winterboard.deb