]> git.saurik.com Git - winterboard.git/blame_incremental - package.sh
Fork the Preferences entry to get an iOS 7 icon.
[winterboard.git] / package.sh
... / ...
CommitLineData
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
23set -e
24rm -rf package
25mkdir -p package/DEBIAN
26mkdir -p package/Applications/WinterBoard.app
27mkdir -p package/Library/Themes
28mkdir -p package/Library/MobileSubstrate/DynamicLibraries
29mkdir -p package/Library/PreferenceLoader/Preferences
30mkdir -p package/System/Library/PreferenceBundles
31mkdir -p package/usr/libexec/package
32cp -a Optimize package/usr/libexec/package
33chmod 6755 package/usr/libexec/package/Optimize
34cp -a WinterBoardSettings.plist package/Library/PreferenceLoader/Preferences
35cp -a WinterBoardSettings7.plist package/Library/PreferenceLoader/Preferences
36cp -a WinterBoardSettings.bundle package/System/Library/PreferenceBundles
37cp -a Icon-Small.png package/System/Library/PreferenceBundles/WinterBoardSettings.bundle/icon.png
38cp -a Icon-Small@2x.png package/System/Library/PreferenceBundles/WinterBoardSettings.bundle/icon@2x.png
39cp -a Icon-Small7.png package/System/Library/PreferenceBundles/WinterBoardSettings.bundle/icon7.png
40cp -a Icon-Small7@2x.png package/System/Library/PreferenceBundles/WinterBoardSettings.bundle/icon7@2x.png
41cp -a SearchResultsCheckmarkClear.png WinterBoardSettings package/System/Library/PreferenceBundles/WinterBoardSettings.bundle
42ln -s /Applications/WinterBoard.app/WinterBoard.dylib package/Library/MobileSubstrate/DynamicLibraries
43cp -a WinterBoard.plist package/Library/MobileSubstrate/DynamicLibraries
44cp -a *.theme package/Library/Themes
45find package -name .svn | while read -r line; do rm -rf "${line}"; done
46cp -a extrainst_ preinst prerm package/DEBIAN
47sed -e "s/VERSION/$(./version.sh)/g" control >package/DEBIAN/control
48cp -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
49chown -R 0:0 package
50file="winterboard_$(grep ^Version: package/DEBIAN/control | cut -d ' ' -f 2)_iphoneos-arm.deb"; echo "$file"; ln -sf "$file" winterboard.deb
51dpkg-deb -Zlzma -b package winterboard.deb