]> git.saurik.com Git - winterboard.git/blob - package.sh
Here we go again: this time with SBIcon setAlpha.
[winterboard.git] / package.sh
1 #!/bin/bash
2
3 # WinterBoard - Theme Manager for the iPhone
4 # Copyright (C) 2008-2014 Jay Freeman (saurik)
5
6 # GNU Lesser General Public License, Version 3 {{{ */
7 #
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.
12 #
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.
17 #
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/>.
20 # }}}
21
22
23 set -e
24 rm -rf package
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 WinterBoardSettings7.plist package/Library/PreferenceLoader/Preferences
36 cp -a WinterBoardSettings.bundle package/System/Library/PreferenceBundles
37 cp -a Icon-Small.png package/System/Library/PreferenceBundles/WinterBoardSettings.bundle/icon.png
38 cp -a Icon-Small@2x.png package/System/Library/PreferenceBundles/WinterBoardSettings.bundle/icon@2x.png
39 cp -a Icon-Small7.png package/System/Library/PreferenceBundles/WinterBoardSettings.bundle/icon7.png
40 cp -a Icon-Small7@2x.png package/System/Library/PreferenceBundles/WinterBoardSettings.bundle/icon7@2x.png
41 cp -a SearchResultsCheckmarkClear.png WinterBoardSettings package/System/Library/PreferenceBundles/WinterBoardSettings.bundle
42 ln -s /Applications/WinterBoard.app/WinterBoard.dylib package/Library/MobileSubstrate/DynamicLibraries
43 cp -a WinterBoard.plist package/Library/MobileSubstrate/DynamicLibraries
44 cp -a *.theme package/Library/Themes
45 find package -name .svn | while read -r line; do rm -rf "${line}"; done
46 cp -a extrainst_ preinst prerm package/DEBIAN
47 sed -e "s/VERSION/$(./version.sh)/g" control >package/DEBIAN/control
48 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
49 chown -R 0:0 package
50 file="winterboard_$(grep ^Version: package/DEBIAN/control | cut -d ' ' -f 2)_iphoneos-arm.deb"; echo "$file"; ln -sf "$file" winterboard.deb
51 dpkg-deb -Zlzma -b package winterboard.deb