]> git.saurik.com Git - winterboard.git/blame - package.sh
On iOS 9 sometimes they do not bother using names.
[winterboard.git] / package.sh
CommitLineData
f726075b
JF
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
f726075b
JF
26mkdir -p package/Library/Themes
27mkdir -p package/Library/MobileSubstrate/DynamicLibraries
28mkdir -p package/Library/PreferenceLoader/Preferences
29mkdir -p package/System/Library/PreferenceBundles
c57ec03a
JF
30mkdir -p package/usr/libexec/winterboard
31cp -a Optimize package/usr/libexec/winterboard
32chmod 6755 package/usr/libexec/winterboard/Optimize
f726075b 33cp -a WinterBoardSettings.plist package/Library/PreferenceLoader/Preferences
ef68b7e9 34cp -a WinterBoardSettings7.plist package/Library/PreferenceLoader/Preferences
f726075b
JF
35cp -a WinterBoardSettings.bundle package/System/Library/PreferenceBundles
36cp -a Icon-Small.png package/System/Library/PreferenceBundles/WinterBoardSettings.bundle/icon.png
37cp -a Icon-Small@2x.png package/System/Library/PreferenceBundles/WinterBoardSettings.bundle/icon@2x.png
ef68b7e9
JF
38cp -a Icon-Small7.png package/System/Library/PreferenceBundles/WinterBoardSettings.bundle/icon7.png
39cp -a Icon-Small7@2x.png package/System/Library/PreferenceBundles/WinterBoardSettings.bundle/icon7@2x.png
69bafe6b 40cp -a Icon-Small7@3x.png package/System/Library/PreferenceBundles/WinterBoardSettings.bundle/icon7@3x.png
f726075b 41cp -a SearchResultsCheckmarkClear.png WinterBoardSettings package/System/Library/PreferenceBundles/WinterBoardSettings.bundle
6cae7c6b 42cp -a WinterBoard.dylib package/Library/MobileSubstrate/DynamicLibraries
f726075b
JF
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
f726075b
JF
48chown -R 0:0 package
49file="winterboard_$(grep ^Version: package/DEBIAN/control | cut -d ' ' -f 2)_iphoneos-arm.deb"; echo "$file"; ln -sf "$file" winterboard.deb
50dpkg-deb -Zlzma -b package winterboard.deb