Thu, 01 Jan 2015 23:57:00 -0500
win32: Update zlib to 1.2.8
* This is in the Gtk zip, so we bump the install version (won't be finalized until we release)
|
29798
7e57f09e0b2e
The rest of the plumbing needed to build the GTK+ Runtime zip included in the installer
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
1 | #!/bin/bash |
|
7e57f09e0b2e
The rest of the plumbing needed to build the GTK+ Runtime zip included in the installer
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
2 | # Script to generate zip file for GTK+ runtime to be included in Pidgin installer |
|
7e57f09e0b2e
The rest of the plumbing needed to build the GTK+ Runtime zip included in the installer
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
3 | |
|
7e57f09e0b2e
The rest of the plumbing needed to build the GTK+ Runtime zip included in the installer
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
4 | PIDGIN_BASE=$1 |
|
33417
156f37832487
Sign all the win32 binaries with GPG (in addition to the authenticode signing for the executables)
Daniel Atallah <datallah@pidgin.im>
parents:
33416
diff
changeset
|
5 | GPG_SIGN=$2 |
|
29798
7e57f09e0b2e
The rest of the plumbing needed to build the GTK+ Runtime zip included in the installer
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
6 | |
|
30305
00c325754ef7
Add support for the binaries built by the opensuse build service to the
Daniel Atallah <datallah@pidgin.im>
parents:
29862
diff
changeset
|
7 | if [ ! -e $PIDGIN_BASE/ChangeLog ]; then |
|
00c325754ef7
Add support for the binaries built by the opensuse build service to the
Daniel Atallah <datallah@pidgin.im>
parents:
29862
diff
changeset
|
8 | echo $(basename $0) must must have the pidgin base dir specified as a parameter. |
|
29798
7e57f09e0b2e
The rest of the plumbing needed to build the GTK+ Runtime zip included in the installer
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
9 | exit 1 |
|
7e57f09e0b2e
The rest of the plumbing needed to build the GTK+ Runtime zip included in the installer
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
10 | fi |
|
7e57f09e0b2e
The rest of the plumbing needed to build the GTK+ Runtime zip included in the installer
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
11 | |
|
33409
fb9fe934688e
Use the gpg signature, if available to validate downloaded GTK+ components
Daniel Atallah <datallah@pidgin.im>
parents:
33408
diff
changeset
|
12 | STAGE_DIR=`readlink -f $PIDGIN_BASE/pidgin/win32/nsis/gtk_runtime_stage` |
|
29798
7e57f09e0b2e
The rest of the plumbing needed to build the GTK+ Runtime zip included in the installer
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
13 | #Subdirectory of $STAGE_DIR |
|
7e57f09e0b2e
The rest of the plumbing needed to build the GTK+ Runtime zip included in the installer
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
14 | INSTALL_DIR=Gtk |
|
36297
41f86d6ff6b0
win32: update gtk+ download to generate a source zip. Refs #16502
Daniel Atallah <datallah@pidgin.im>
parents:
35283
diff
changeset
|
15 | SRC_INSTALL_DIR=src_install |
|
29798
7e57f09e0b2e
The rest of the plumbing needed to build the GTK+ Runtime zip included in the installer
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
16 | CONTENTS_FILE=$INSTALL_DIR/CONTENTS |
|
33415
51473787ff4f
Bake the sha1sums for the debug symbols and gtk runtime into the installer instead of downloading them.
Daniel Atallah <datallah@pidgin.im>
parents:
33409
diff
changeset
|
17 | PIDGIN_VERSION=$( < $PIDGIN_BASE/VERSION ) |
|
29798
7e57f09e0b2e
The rest of the plumbing needed to build the GTK+ Runtime zip included in the installer
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
18 | |
|
7e57f09e0b2e
The rest of the plumbing needed to build the GTK+ Runtime zip included in the installer
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
19 | #This needs to be changed every time there is any sort of change. |
|
36307
714ba418d0aa
win32: Update zlib to 1.2.8
Daniel Atallah <datallah@pidgin.im>
parents:
36297
diff
changeset
|
20 | BUNDLE_VERSION=2.16.6.3 |
|
35283
3542f04b5e52
Upgrade the Pango binary in the win32 installer to include the fix for https://bugzilla.gnome.org/show_bug.cgi?id=668154
Daniel Atallah <datallah@pidgin.im>
parents:
33742
diff
changeset
|
21 | BUNDLE_SHA1SUM=e1b1ec8d2159fa98b2a9f516dbfe745bf7a22169 |
|
33415
51473787ff4f
Bake the sha1sums for the debug symbols and gtk runtime into the installer instead of downloading them.
Daniel Atallah <datallah@pidgin.im>
parents:
33409
diff
changeset
|
22 | ZIP_FILE="$PIDGIN_BASE/pidgin/win32/nsis/gtk-runtime-$BUNDLE_VERSION.zip" |
|
36297
41f86d6ff6b0
win32: update gtk+ download to generate a source zip. Refs #16502
Daniel Atallah <datallah@pidgin.im>
parents:
35283
diff
changeset
|
23 | SRC_ZIP_FILE="$PIDGIN_BASE/pidgin/win32/nsis/gtk-runtime-$BUNDLE_VERSION-src.zip" |
|
33415
51473787ff4f
Bake the sha1sums for the debug symbols and gtk runtime into the installer instead of downloading them.
Daniel Atallah <datallah@pidgin.im>
parents:
33409
diff
changeset
|
24 | |
|
51473787ff4f
Bake the sha1sums for the debug symbols and gtk runtime into the installer instead of downloading them.
Daniel Atallah <datallah@pidgin.im>
parents:
33409
diff
changeset
|
25 | #Download the existing file (so that we distribute the exact same file for all releases with the same bundle version) |
|
51473787ff4f
Bake the sha1sums for the debug symbols and gtk runtime into the installer instead of downloading them.
Daniel Atallah <datallah@pidgin.im>
parents:
33409
diff
changeset
|
26 | FILE="$ZIP_FILE" |
|
51473787ff4f
Bake the sha1sums for the debug symbols and gtk runtime into the installer instead of downloading them.
Daniel Atallah <datallah@pidgin.im>
parents:
33409
diff
changeset
|
27 | if [ ! -e "$FILE" ]; then |
|
51473787ff4f
Bake the sha1sums for the debug symbols and gtk runtime into the installer instead of downloading them.
Daniel Atallah <datallah@pidgin.im>
parents:
33409
diff
changeset
|
28 | wget "https://pidgin.im/win32/download_redir.php?version=$PIDGIN_VERSION>k_version=$BUNDLE_VERSION&dl_pkg=gtk" -O "$FILE" |
|
51473787ff4f
Bake the sha1sums for the debug symbols and gtk runtime into the installer instead of downloading them.
Daniel Atallah <datallah@pidgin.im>
parents:
33409
diff
changeset
|
29 | fi |
|
51473787ff4f
Bake the sha1sums for the debug symbols and gtk runtime into the installer instead of downloading them.
Daniel Atallah <datallah@pidgin.im>
parents:
33409
diff
changeset
|
30 | CHECK_SHA1SUM=`sha1sum $FILE` |
|
51473787ff4f
Bake the sha1sums for the debug symbols and gtk runtime into the installer instead of downloading them.
Daniel Atallah <datallah@pidgin.im>
parents:
33409
diff
changeset
|
31 | CHECK_SHA1SUM=${CHECK_SHA1SUM%%\ *} |
|
51473787ff4f
Bake the sha1sums for the debug symbols and gtk runtime into the installer instead of downloading them.
Daniel Atallah <datallah@pidgin.im>
parents:
33409
diff
changeset
|
32 | if [ "$CHECK_SHA1SUM" != "$BUNDLE_SHA1SUM" ]; then |
|
51473787ff4f
Bake the sha1sums for the debug symbols and gtk runtime into the installer instead of downloading them.
Daniel Atallah <datallah@pidgin.im>
parents:
33409
diff
changeset
|
33 | echo "sha1sum ($CHECK_SHA1SUM) for $FILE doesn't match expected value of $BUNDLE_SHA1SUM" |
|
51473787ff4f
Bake the sha1sums for the debug symbols and gtk runtime into the installer instead of downloading them.
Daniel Atallah <datallah@pidgin.im>
parents:
33409
diff
changeset
|
34 | # Allow "devel" versions to build their own bundles if the download doesn't succeed |
|
51473787ff4f
Bake the sha1sums for the debug symbols and gtk runtime into the installer instead of downloading them.
Daniel Atallah <datallah@pidgin.im>
parents:
33409
diff
changeset
|
35 | if [[ "$PIDGIN_VERSION" == *"devel" ]]; then |
|
51473787ff4f
Bake the sha1sums for the debug symbols and gtk runtime into the installer instead of downloading them.
Daniel Atallah <datallah@pidgin.im>
parents:
33409
diff
changeset
|
36 | echo "Continuing GTK+ Bundle creation for development version of Pidgin" |
|
51473787ff4f
Bake the sha1sums for the debug symbols and gtk runtime into the installer instead of downloading them.
Daniel Atallah <datallah@pidgin.im>
parents:
33409
diff
changeset
|
37 | else |
|
51473787ff4f
Bake the sha1sums for the debug symbols and gtk runtime into the installer instead of downloading them.
Daniel Atallah <datallah@pidgin.im>
parents:
33409
diff
changeset
|
38 | exit 1 |
|
51473787ff4f
Bake the sha1sums for the debug symbols and gtk runtime into the installer instead of downloading them.
Daniel Atallah <datallah@pidgin.im>
parents:
33409
diff
changeset
|
39 | fi |
|
51473787ff4f
Bake the sha1sums for the debug symbols and gtk runtime into the installer instead of downloading them.
Daniel Atallah <datallah@pidgin.im>
parents:
33409
diff
changeset
|
40 | else |
|
51473787ff4f
Bake the sha1sums for the debug symbols and gtk runtime into the installer instead of downloading them.
Daniel Atallah <datallah@pidgin.im>
parents:
33409
diff
changeset
|
41 | exit 0 |
|
51473787ff4f
Bake the sha1sums for the debug symbols and gtk runtime into the installer instead of downloading them.
Daniel Atallah <datallah@pidgin.im>
parents:
33409
diff
changeset
|
42 | fi |
|
51473787ff4f
Bake the sha1sums for the debug symbols and gtk runtime into the installer instead of downloading them.
Daniel Atallah <datallah@pidgin.im>
parents:
33409
diff
changeset
|
43 | |
|
29798
7e57f09e0b2e
The rest of the plumbing needed to build the GTK+ Runtime zip included in the installer
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
44 | |
|
36297
41f86d6ff6b0
win32: update gtk+ download to generate a source zip. Refs #16502
Daniel Atallah <datallah@pidgin.im>
parents:
35283
diff
changeset
|
45 | #Format for packages is "binary_url name version binary_validation src_url src_validation" |
|
41f86d6ff6b0
win32: update gtk+ download to generate a source zip. Refs #16502
Daniel Atallah <datallah@pidgin.im>
parents:
35283
diff
changeset
|
46 | ATK="http://ftp.gnome.org/pub/gnome/binaries/win32/atk/1.32/atk_1.32.0-2_win32.zip ATK 1.32.0-2 sha1sum:3c31c9d6b19af840e2bd8ccbfef4072a6548dc4e http://ftp.gnome.org/pub/gnome/sources/atk/1.32/atk-1.32.0.tar.bz2|https://raw.githubusercontent.com/dieterv/legacynativebuilds/692072d1c571ef50f8bbe01cd005313d2302bef0/devel/src/dieterv/packaging/atk_1.32.0-2_win32.sh sha256sum:e9a3e598f75c4db1af914f8b052dd9f7e89e920a96cc187c18eb06b8339cb16e|sha256sum:94cf905cee30b461194fa4cdfebedb0013bca46cdc52228ea2f23ef595de158b" |
|
33408
8e037a7b4ccd
Update various win32 dependencies - the new GTK+ bundle will be called 2.16.6.1
Daniel Atallah <datallah@pidgin.im>
parents:
33396
diff
changeset
|
47 | #Cairo 1.10.2 has a bug that can be seen when selecting text |
|
33409
fb9fe934688e
Use the gpg signature, if available to validate downloaded GTK+ components
Daniel Atallah <datallah@pidgin.im>
parents:
33408
diff
changeset
|
48 | #CAIRO="http://ftp.gnome.org/pub/GNOME/binaries/win32/dependencies/cairo_1.10.2-2_win32.zip Cairo 1.10.2-2 sha1sum:d44cd66a9f4d7d29a8f2c28d1c1c5f9b0525ba44" |
|
36297
41f86d6ff6b0
win32: update gtk+ download to generate a source zip. Refs #16502
Daniel Atallah <datallah@pidgin.im>
parents:
35283
diff
changeset
|
49 | CAIRO="http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/cairo_1.8.10-1_win32.zip Cairo 1.8.10-1 sha1sum:a08476cccd807943958610977a138c4d6097c7b8 http://cairographics.org/releases/cairo-1.8.10.tar.gz|https://developer.pidgin.im/static/win32/cairo_1.8.10-1_win32.sh sha1sum:fd5e8ca82ff0e8542ea4c51612cad387f2a49df3|sha1sum:b2ac2ae06a5ea9f15802209707607fd40b4aa47d" |
|
41f86d6ff6b0
win32: update gtk+ download to generate a source zip. Refs #16502
Daniel Atallah <datallah@pidgin.im>
parents:
35283
diff
changeset
|
50 | EXPAT="http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/expat_2.1.0-1_win32.zip Expat 2.1.0-1 gpg:0x71D4DDE53F188CBE http://downloads.sourceforge.net/project/expat/expat/2.1.0/expat-2.1.0.tar.gz|https://raw.githubusercontent.com/dieterv/legacynativebuilds/692072d1c571ef50f8bbe01cd005313d2302bef0/devel/src/dieterv/packaging/expat_2.1.0-1_win32.sh sha1sum:b08197d146930a5543a7b99e871cba3da614f6f0|sha1sum:5b1c345147bbbabeae0bc6649c19ea11fab3902c" |
|
41f86d6ff6b0
win32: update gtk+ download to generate a source zip. Refs #16502
Daniel Atallah <datallah@pidgin.im>
parents:
35283
diff
changeset
|
51 | FONTCONFIG="http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/fontconfig_2.8.0-2_win32.zip Fontconfig 2.8.0-2 sha1sum:37a3117ea6cc50c8a88fba9b6018f35a04fa71ce http://www.fontconfig.org/release/fontconfig-2.8.0.tar.gz|https://raw.githubusercontent.com/dieterv/legacynativebuilds/692072d1c571ef50f8bbe01cd005313d2302bef0/devel/src/tml/packaging/fontconfig_2.8.0-2_win32.sh sha1sum:570fb55eb14f2c92a7b470b941e9d35dbfafa716|sha1sum:2e8a0e473344b68c440f1a56f33eb669ccd0bf87" |
|
41f86d6ff6b0
win32: update gtk+ download to generate a source zip. Refs #16502
Daniel Atallah <datallah@pidgin.im>
parents:
35283
diff
changeset
|
52 | FREETYPE="http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/freetype_2.4.10-1_win32.zip Freetype 2.4.10-1 gpg:0x71D4DDE53F188CBE http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/freetype-2.4.2.tar.bz2|https://raw.githubusercontent.com/dieterv/legacynativebuilds/692072d1c571ef50f8bbe01cd005313d2302bef0/devel/src/dieterv/packaging/freetype_2.4.10-1_win32.sh sha1sum:cc257ceda2950b8c80950d780ccf3ce665a815d1|sha1sum:3c3c97099f0b1e7c25d55d6d3614b9cdb2da83e7" |
|
41f86d6ff6b0
win32: update gtk+ download to generate a source zip. Refs #16502
Daniel Atallah <datallah@pidgin.im>
parents:
35283
diff
changeset
|
53 | GETTEXT="http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/gettext-runtime_0.18.1.1-2_win32.zip Gettext 0.18.1.1-2 sha1sum:a7cc1ce2b99b408d1bbea9a3b4520fcaf26783b3 http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/gettext-0.18.1.1.tar.gz|https://raw.githubusercontent.com/dieterv/legacynativebuilds/692072d1c571ef50f8bbe01cd005313d2302bef0/devel/src/tml/packaging/gettext_0.18.1.1-2_win32.sh sha1sum:5009deb02f67fc3c59c8ce6b82408d1d35d4e38f|sha1sum:8a7c1bb692c8d4f589c077c8b332c74040bca31c" |
|
41f86d6ff6b0
win32: update gtk+ download to generate a source zip. Refs #16502
Daniel Atallah <datallah@pidgin.im>
parents:
35283
diff
changeset
|
54 | GLIB="http://ftp.gnome.org/pub/gnome/binaries/win32/glib/2.28/glib_2.28.8-1_win32.zip Glib 2.28.8-1 sha1sum:5d158f4c77ca0b5508e1042955be573dd940b574 http://ftp.gnome.org/pub/gnome/sources/glib/2.28/glib-2.28.8.tar.bz2|https://raw.githubusercontent.com/dieterv/legacynativebuilds/692072d1c571ef50f8bbe01cd005313d2302bef0/devel/src/dieterv/packaging/glib_2.28.8-1_win32.sh sha256sum:222f3055d6c413417b50901008c654865e5a311c73f0ae918b0a9978d1f9466f|sha256sum:907ebd40af90ea92fdafca44f4c3792ed6c041b7cd9e8d98ae534f51283ab164" |
|
41f86d6ff6b0
win32: update gtk+ download to generate a source zip. Refs #16502
Daniel Atallah <datallah@pidgin.im>
parents:
35283
diff
changeset
|
55 | GTK="http://ftp.gnome.org/pub/gnome/binaries/win32/gtk+/2.16/gtk+_2.16.6-2_win32.zip GTK+ 2.16.6-2 sha1sum:012853e6de814ebda0cc4459f9eed8ae680e6d17 http://ftp.acc.umu.se/pub/gnome/sources/gtk+/2.16/gtk+-2.16.6.tar.bz2|https://developer.pidgin.im/static/win32/gtk+_2.16.6-2_win32.sh sha256sum:18e0f9792028e6cc5108447678f17d396f9a2cdfec1e6ab5dca98cb844f954af|sha256sum:47ac17cf3f638464ae8ed54a0a9532693373b5f81752cf92590e3d79c5c976ec" |
|
41f86d6ff6b0
win32: update gtk+ download to generate a source zip. Refs #16502
Daniel Atallah <datallah@pidgin.im>
parents:
35283
diff
changeset
|
56 | LIBPNG="http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/libpng_1.4.12-1_win32.zip libpng 1.4.12-1 gpg:0x71D4DDE53F188CBE http://download.sourceforge.net/libpng/libpng-1.4.12.tar.gz|https://raw.githubusercontent.com/dieterv/legacynativebuilds/cff4e06f877242f8db485318eccd5f8aa01fb199/devel/src/dieterv/packaging/libpng_1.4.12-1_win32.sh sha1sum:d22b339f3261140fb9de83784d05ce5b86c077fb|sha1sum:e00bc64d84ca50127c0233c045ff0147175f705b" |
|
41f86d6ff6b0
win32: update gtk+ download to generate a source zip. Refs #16502
Daniel Atallah <datallah@pidgin.im>
parents:
35283
diff
changeset
|
57 | PANGO="https://developer.pidgin.im/static/win32/pango_1.29.4-1daa_win32.zip Pango 1.29.4-1daa gpg:0x86723FEEDE890574 http://ftp.gnome.org/pub/gnome/sources/pango/1.29/pango-1.29.4.tar.bz2|https://raw.githubusercontent.com/dieterv/legacynativebuilds/692072d1c571ef50f8bbe01cd005313d2302bef0/devel/src/dieterv/packaging/pango_1.29.4-1_win32.sh|https://developer.pidgin.im/static/win32/pango_1.29.4-1daa_win32.zip.patch sha256sum:f15deecaecf1e9dcb7db0e4947d12b5bcff112586434f8d30a5afd750747ff2b|sha256sum:743bb703b36f367b5569e031a107fff51eef409650e635e1a48a23f9ac38ef71|sha256sum:4d241c3835217deab280a8c1f2154932a4fba118f0b02a22c10fa041359381cf" |
|
36307
714ba418d0aa
win32: Update zlib to 1.2.8
Daniel Atallah <datallah@pidgin.im>
parents:
36297
diff
changeset
|
58 | ZLIB="https://developer.pidgin.im/static/win32/zlib-1.2.8_daa1_win32.zip zlib 1.2.8_daa1 gpg:0x86723FEEDE890574 http://zlib.net/zlib-1.2.8.tar.gz|https://developer.pidgin.im/static/win32/build_zlib-1.2.8_daa1.sh sha1sum:a4d316c404ff54ca545ea71a27af7dbc29817088|sha1sum:bcac4cfea2ebf274c5b72c2507105b50bbeed1d6" |
|
29798
7e57f09e0b2e
The rest of the plumbing needed to build the GTK+ Runtime zip included in the installer
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
59 | |
|
29862
e48ceabf7676
Increase win32 GTK+ to 2.16.6. If people have issues, it can be reverted.
Daniel Atallah <datallah@pidgin.im>
parents:
29817
diff
changeset
|
60 | ALL="ATK CAIRO EXPAT FONTCONFIG FREETYPE GETTEXT GLIB GTK LIBPNG PANGO ZLIB" |
|
29798
7e57f09e0b2e
The rest of the plumbing needed to build the GTK+ Runtime zip included in the installer
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
61 | |
|
29806
aface02b85bc
mkdir -p is better than checking for directory existence
Daniel Atallah <datallah@pidgin.im>
parents:
29798
diff
changeset
|
62 | mkdir -p $STAGE_DIR |
|
36297
41f86d6ff6b0
win32: update gtk+ download to generate a source zip. Refs #16502
Daniel Atallah <datallah@pidgin.im>
parents:
35283
diff
changeset
|
63 | mkdir -p $STAGE_DIR/src |
|
29798
7e57f09e0b2e
The rest of the plumbing needed to build the GTK+ Runtime zip included in the installer
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
64 | cd $STAGE_DIR |
|
7e57f09e0b2e
The rest of the plumbing needed to build the GTK+ Runtime zip included in the installer
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
65 | |
|
7e57f09e0b2e
The rest of the plumbing needed to build the GTK+ Runtime zip included in the installer
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
66 | rm -rf $INSTALL_DIR |
|
7e57f09e0b2e
The rest of the plumbing needed to build the GTK+ Runtime zip included in the installer
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
67 | mkdir $INSTALL_DIR |
|
7e57f09e0b2e
The rest of the plumbing needed to build the GTK+ Runtime zip included in the installer
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
68 | |
|
36297
41f86d6ff6b0
win32: update gtk+ download to generate a source zip. Refs #16502
Daniel Atallah <datallah@pidgin.im>
parents:
35283
diff
changeset
|
69 | rm -rf $SRC_INSTALL_DIR |
|
41f86d6ff6b0
win32: update gtk+ download to generate a source zip. Refs #16502
Daniel Atallah <datallah@pidgin.im>
parents:
35283
diff
changeset
|
70 | mkdir $SRC_INSTALL_DIR |
|
41f86d6ff6b0
win32: update gtk+ download to generate a source zip. Refs #16502
Daniel Atallah <datallah@pidgin.im>
parents:
35283
diff
changeset
|
71 | |
|
29798
7e57f09e0b2e
The rest of the plumbing needed to build the GTK+ Runtime zip included in the installer
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
72 | #new CONTENTS file |
|
7e57f09e0b2e
The rest of the plumbing needed to build the GTK+ Runtime zip included in the installer
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
73 | echo Bundle Version $BUNDLE_VERSION > $CONTENTS_FILE |
|
7e57f09e0b2e
The rest of the plumbing needed to build the GTK+ Runtime zip included in the installer
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
74 | |
|
36297
41f86d6ff6b0
win32: update gtk+ download to generate a source zip. Refs #16502
Daniel Atallah <datallah@pidgin.im>
parents:
35283
diff
changeset
|
75 | function validate_file { |
|
41f86d6ff6b0
win32: update gtk+ download to generate a source zip. Refs #16502
Daniel Atallah <datallah@pidgin.im>
parents:
35283
diff
changeset
|
76 | VALIDATION=$1 |
|
41f86d6ff6b0
win32: update gtk+ download to generate a source zip. Refs #16502
Daniel Atallah <datallah@pidgin.im>
parents:
35283
diff
changeset
|
77 | FILE=$2 |
|
41f86d6ff6b0
win32: update gtk+ download to generate a source zip. Refs #16502
Daniel Atallah <datallah@pidgin.im>
parents:
35283
diff
changeset
|
78 | VALIDATION_TYPE=${VALIDATION%%:*} |
|
41f86d6ff6b0
win32: update gtk+ download to generate a source zip. Refs #16502
Daniel Atallah <datallah@pidgin.im>
parents:
35283
diff
changeset
|
79 | VALIDATION_VALUE=${VALIDATION##*:} |
|
33409
fb9fe934688e
Use the gpg signature, if available to validate downloaded GTK+ components
Daniel Atallah <datallah@pidgin.im>
parents:
33408
diff
changeset
|
80 | VALIDATION_TYPE=${VALIDATION%%:*} |
|
fb9fe934688e
Use the gpg signature, if available to validate downloaded GTK+ components
Daniel Atallah <datallah@pidgin.im>
parents:
33408
diff
changeset
|
81 | VALIDATION_VALUE=${VALIDATION##*:} |
|
36297
41f86d6ff6b0
win32: update gtk+ download to generate a source zip. Refs #16502
Daniel Atallah <datallah@pidgin.im>
parents:
35283
diff
changeset
|
82 | |
|
41f86d6ff6b0
win32: update gtk+ download to generate a source zip. Refs #16502
Daniel Atallah <datallah@pidgin.im>
parents:
35283
diff
changeset
|
83 | if [ $VALIDATION_TYPE == 'sha1sum' -o $VALIDATION_TYPE == 'sha256sum' ]; then |
|
41f86d6ff6b0
win32: update gtk+ download to generate a source zip. Refs #16502
Daniel Atallah <datallah@pidgin.im>
parents:
35283
diff
changeset
|
84 | CHECK_SUM=`$VALIDATION_TYPE "$FILE"` |
|
41f86d6ff6b0
win32: update gtk+ download to generate a source zip. Refs #16502
Daniel Atallah <datallah@pidgin.im>
parents:
35283
diff
changeset
|
85 | CHECK_SUM=${CHECK_SUM%%\ *} |
|
41f86d6ff6b0
win32: update gtk+ download to generate a source zip. Refs #16502
Daniel Atallah <datallah@pidgin.im>
parents:
35283
diff
changeset
|
86 | if [ "$CHECK_SUM" != "$VALIDATION_VALUE" ]; then |
|
41f86d6ff6b0
win32: update gtk+ download to generate a source zip. Refs #16502
Daniel Atallah <datallah@pidgin.im>
parents:
35283
diff
changeset
|
87 | echo "$VALIDATION_TYPE ($CHECK_SUM) for $FILE doesn't match expected value of $VALIDATION_VALUE" |
|
33409
fb9fe934688e
Use the gpg signature, if available to validate downloaded GTK+ components
Daniel Atallah <datallah@pidgin.im>
parents:
33408
diff
changeset
|
88 | exit 1 |
|
fb9fe934688e
Use the gpg signature, if available to validate downloaded GTK+ components
Daniel Atallah <datallah@pidgin.im>
parents:
33408
diff
changeset
|
89 | fi |
|
fb9fe934688e
Use the gpg signature, if available to validate downloaded GTK+ components
Daniel Atallah <datallah@pidgin.im>
parents:
33408
diff
changeset
|
90 | elif [ $VALIDATION_TYPE == 'gpg' ]; then |
|
fb9fe934688e
Use the gpg signature, if available to validate downloaded GTK+ components
Daniel Atallah <datallah@pidgin.im>
parents:
33408
diff
changeset
|
91 | if [ ! -e "$FILE.asc" ]; then |
|
fb9fe934688e
Use the gpg signature, if available to validate downloaded GTK+ components
Daniel Atallah <datallah@pidgin.im>
parents:
33408
diff
changeset
|
92 | echo Downloading GPG key for $NAME |
|
fb9fe934688e
Use the gpg signature, if available to validate downloaded GTK+ components
Daniel Atallah <datallah@pidgin.im>
parents:
33408
diff
changeset
|
93 | wget "$URL.asc" || exit 1 |
|
fb9fe934688e
Use the gpg signature, if available to validate downloaded GTK+ components
Daniel Atallah <datallah@pidgin.im>
parents:
33408
diff
changeset
|
94 | fi |
|
fb9fe934688e
Use the gpg signature, if available to validate downloaded GTK+ components
Daniel Atallah <datallah@pidgin.im>
parents:
33408
diff
changeset
|
95 | #Use our own keyring to avoid adding stuff to the main keyring |
|
33417
156f37832487
Sign all the win32 binaries with GPG (in addition to the authenticode signing for the executables)
Daniel Atallah <datallah@pidgin.im>
parents:
33416
diff
changeset
|
96 | #This doesn't use $GPG_SIGN because we don't this validation to be bypassed when people are skipping signing output |
|
36297
41f86d6ff6b0
win32: update gtk+ download to generate a source zip. Refs #16502
Daniel Atallah <datallah@pidgin.im>
parents:
35283
diff
changeset
|
97 | GPG_BASE="gpg -q --keyring $STAGE_DIR/$VALIDATION_VALUE-keyring.gpg" |
|
41f86d6ff6b0
win32: update gtk+ download to generate a source zip. Refs #16502
Daniel Atallah <datallah@pidgin.im>
parents:
35283
diff
changeset
|
98 | if [[ ! -e "$STAGE_DIR/$VALIDATION_VALUE-keyring.gpg" \ |
|
33417
156f37832487
Sign all the win32 binaries with GPG (in addition to the authenticode signing for the executables)
Daniel Atallah <datallah@pidgin.im>
parents:
33416
diff
changeset
|
99 | || `$GPG_BASE --list-keys "$VALIDATION_VALUE" > /dev/null && echo -n "0"` -ne 0 ]]; then |
|
36297
41f86d6ff6b0
win32: update gtk+ download to generate a source zip. Refs #16502
Daniel Atallah <datallah@pidgin.im>
parents:
35283
diff
changeset
|
100 | touch "$STAGE_DIR/$VALIDATION_VALUE-keyring.gpg" |
|
41f86d6ff6b0
win32: update gtk+ download to generate a source zip. Refs #16502
Daniel Atallah <datallah@pidgin.im>
parents:
35283
diff
changeset
|
101 | $GPG_BASE --no-default-keyring --keyserver pgp.mit.edu --recv-key "$VALIDATION_VALUE" || exit 1 |
|
33409
fb9fe934688e
Use the gpg signature, if available to validate downloaded GTK+ components
Daniel Atallah <datallah@pidgin.im>
parents:
33408
diff
changeset
|
102 | fi |
|
33417
156f37832487
Sign all the win32 binaries with GPG (in addition to the authenticode signing for the executables)
Daniel Atallah <datallah@pidgin.im>
parents:
33416
diff
changeset
|
103 | $GPG_BASE --verify "$FILE.asc" || (echo "$FILE failed signature verification"; exit 1) || exit 1 |
|
33409
fb9fe934688e
Use the gpg signature, if available to validate downloaded GTK+ components
Daniel Atallah <datallah@pidgin.im>
parents:
33408
diff
changeset
|
104 | else |
|
fb9fe934688e
Use the gpg signature, if available to validate downloaded GTK+ components
Daniel Atallah <datallah@pidgin.im>
parents:
33408
diff
changeset
|
105 | echo "Unrecognized validation type of $VALIDATION_TYPE" |
|
33391
e56515365c37
Add sha1sum checking to the gtk bundle components that are downloaded
Daniel Atallah <datallah@pidgin.im>
parents:
30312
diff
changeset
|
106 | exit 1 |
|
29798
7e57f09e0b2e
The rest of the plumbing needed to build the GTK+ Runtime zip included in the installer
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
107 | fi |
|
36297
41f86d6ff6b0
win32: update gtk+ download to generate a source zip. Refs #16502
Daniel Atallah <datallah@pidgin.im>
parents:
35283
diff
changeset
|
108 | } |
|
41f86d6ff6b0
win32: update gtk+ download to generate a source zip. Refs #16502
Daniel Atallah <datallah@pidgin.im>
parents:
35283
diff
changeset
|
109 | |
|
41f86d6ff6b0
win32: update gtk+ download to generate a source zip. Refs #16502
Daniel Atallah <datallah@pidgin.im>
parents:
35283
diff
changeset
|
110 | function download_and_validate { |
|
41f86d6ff6b0
win32: update gtk+ download to generate a source zip. Refs #16502
Daniel Atallah <datallah@pidgin.im>
parents:
35283
diff
changeset
|
111 | PREFIX=$1 |
|
41f86d6ff6b0
win32: update gtk+ download to generate a source zip. Refs #16502
Daniel Atallah <datallah@pidgin.im>
parents:
35283
diff
changeset
|
112 | URLS=$2 |
|
41f86d6ff6b0
win32: update gtk+ download to generate a source zip. Refs #16502
Daniel Atallah <datallah@pidgin.im>
parents:
35283
diff
changeset
|
113 | VALIDATIONS=$3 |
|
41f86d6ff6b0
win32: update gtk+ download to generate a source zip. Refs #16502
Daniel Atallah <datallah@pidgin.im>
parents:
35283
diff
changeset
|
114 | EXTRACT=$4 |
|
41f86d6ff6b0
win32: update gtk+ download to generate a source zip. Refs #16502
Daniel Atallah <datallah@pidgin.im>
parents:
35283
diff
changeset
|
115 | OLD_IFS=$IFS |
|
41f86d6ff6b0
win32: update gtk+ download to generate a source zip. Refs #16502
Daniel Atallah <datallah@pidgin.im>
parents:
35283
diff
changeset
|
116 | IFS='|' |
|
41f86d6ff6b0
win32: update gtk+ download to generate a source zip. Refs #16502
Daniel Atallah <datallah@pidgin.im>
parents:
35283
diff
changeset
|
117 | URL_SPLIT=($URLS) |
|
41f86d6ff6b0
win32: update gtk+ download to generate a source zip. Refs #16502
Daniel Atallah <datallah@pidgin.im>
parents:
35283
diff
changeset
|
118 | VALIDATION_SPLIT=($VALIDATIONS) |
|
41f86d6ff6b0
win32: update gtk+ download to generate a source zip. Refs #16502
Daniel Atallah <datallah@pidgin.im>
parents:
35283
diff
changeset
|
119 | IFS=$OLD_IFS |
|
41f86d6ff6b0
win32: update gtk+ download to generate a source zip. Refs #16502
Daniel Atallah <datallah@pidgin.im>
parents:
35283
diff
changeset
|
120 | |
|
41f86d6ff6b0
win32: update gtk+ download to generate a source zip. Refs #16502
Daniel Atallah <datallah@pidgin.im>
parents:
35283
diff
changeset
|
121 | if [ ${#URL_SPLIT[@]} -ne ${#VALIDATION_SPLIT[@]} ]; then |
|
41f86d6ff6b0
win32: update gtk+ download to generate a source zip. Refs #16502
Daniel Atallah <datallah@pidgin.im>
parents:
35283
diff
changeset
|
122 | echo "URL and validation counts don't match for $VAL" |
|
41f86d6ff6b0
win32: update gtk+ download to generate a source zip. Refs #16502
Daniel Atallah <datallah@pidgin.im>
parents:
35283
diff
changeset
|
123 | exit 1 |
|
41f86d6ff6b0
win32: update gtk+ download to generate a source zip. Refs #16502
Daniel Atallah <datallah@pidgin.im>
parents:
35283
diff
changeset
|
124 | fi |
|
41f86d6ff6b0
win32: update gtk+ download to generate a source zip. Refs #16502
Daniel Atallah <datallah@pidgin.im>
parents:
35283
diff
changeset
|
125 | |
|
41f86d6ff6b0
win32: update gtk+ download to generate a source zip. Refs #16502
Daniel Atallah <datallah@pidgin.im>
parents:
35283
diff
changeset
|
126 | if [ "x$PREFIX" != "x" ]; then |
|
41f86d6ff6b0
win32: update gtk+ download to generate a source zip. Refs #16502
Daniel Atallah <datallah@pidgin.im>
parents:
35283
diff
changeset
|
127 | mkdir -p "$PREFIX" |
|
30305
00c325754ef7
Add support for the binaries built by the opensuse build service to the
Daniel Atallah <datallah@pidgin.im>
parents:
29862
diff
changeset
|
128 | fi |
|
36297
41f86d6ff6b0
win32: update gtk+ download to generate a source zip. Refs #16502
Daniel Atallah <datallah@pidgin.im>
parents:
35283
diff
changeset
|
129 | |
|
41f86d6ff6b0
win32: update gtk+ download to generate a source zip. Refs #16502
Daniel Atallah <datallah@pidgin.im>
parents:
35283
diff
changeset
|
130 | LEN=${#URL_SPLIT[@]} |
|
41f86d6ff6b0
win32: update gtk+ download to generate a source zip. Refs #16502
Daniel Atallah <datallah@pidgin.im>
parents:
35283
diff
changeset
|
131 | for (( i = 0; i < ${LEN}; i++ )); do |
|
41f86d6ff6b0
win32: update gtk+ download to generate a source zip. Refs #16502
Daniel Atallah <datallah@pidgin.im>
parents:
35283
diff
changeset
|
132 | URL=${URL_SPLIT[$i]} |
|
41f86d6ff6b0
win32: update gtk+ download to generate a source zip. Refs #16502
Daniel Atallah <datallah@pidgin.im>
parents:
35283
diff
changeset
|
133 | VALIDATION=${VALIDATION_SPLIT[$i]} |
|
41f86d6ff6b0
win32: update gtk+ download to generate a source zip. Refs #16502
Daniel Atallah <datallah@pidgin.im>
parents:
35283
diff
changeset
|
134 | FILE=${PREFIX}$(basename $URL) |
|
41f86d6ff6b0
win32: update gtk+ download to generate a source zip. Refs #16502
Daniel Atallah <datallah@pidgin.im>
parents:
35283
diff
changeset
|
135 | if [ ! -e "$FILE" ]; then |
|
41f86d6ff6b0
win32: update gtk+ download to generate a source zip. Refs #16502
Daniel Atallah <datallah@pidgin.im>
parents:
35283
diff
changeset
|
136 | echo Downloading $FILE for $NAME ... |
|
41f86d6ff6b0
win32: update gtk+ download to generate a source zip. Refs #16502
Daniel Atallah <datallah@pidgin.im>
parents:
35283
diff
changeset
|
137 | wget -P "$PREFIX" $URL || exit 1 |
|
41f86d6ff6b0
win32: update gtk+ download to generate a source zip. Refs #16502
Daniel Atallah <datallah@pidgin.im>
parents:
35283
diff
changeset
|
138 | fi |
|
41f86d6ff6b0
win32: update gtk+ download to generate a source zip. Refs #16502
Daniel Atallah <datallah@pidgin.im>
parents:
35283
diff
changeset
|
139 | validate_file "$VALIDATION" "$FILE" |
|
41f86d6ff6b0
win32: update gtk+ download to generate a source zip. Refs #16502
Daniel Atallah <datallah@pidgin.im>
parents:
35283
diff
changeset
|
140 | EXTENSION=${FILE##*.} |
|
41f86d6ff6b0
win32: update gtk+ download to generate a source zip. Refs #16502
Daniel Atallah <datallah@pidgin.im>
parents:
35283
diff
changeset
|
141 | #This is an OpenSuSE build service RPM |
|
41f86d6ff6b0
win32: update gtk+ download to generate a source zip. Refs #16502
Daniel Atallah <datallah@pidgin.im>
parents:
35283
diff
changeset
|
142 | if [ $EXTENSION == 'rpm' ]; then |
|
41f86d6ff6b0
win32: update gtk+ download to generate a source zip. Refs #16502
Daniel Atallah <datallah@pidgin.im>
parents:
35283
diff
changeset
|
143 | echo "Generating zip from $FILE" |
|
41f86d6ff6b0
win32: update gtk+ download to generate a source zip. Refs #16502
Daniel Atallah <datallah@pidgin.im>
parents:
35283
diff
changeset
|
144 | FILE=$(../rpm2zip.sh $FILE) |
|
41f86d6ff6b0
win32: update gtk+ download to generate a source zip. Refs #16502
Daniel Atallah <datallah@pidgin.im>
parents:
35283
diff
changeset
|
145 | fi |
|
41f86d6ff6b0
win32: update gtk+ download to generate a source zip. Refs #16502
Daniel Atallah <datallah@pidgin.im>
parents:
35283
diff
changeset
|
146 | if [ $EXTRACT == "1" ]; then |
|
41f86d6ff6b0
win32: update gtk+ download to generate a source zip. Refs #16502
Daniel Atallah <datallah@pidgin.im>
parents:
35283
diff
changeset
|
147 | unzip -q "$FILE" -d "$INSTALL_DIR" || exit 1 |
|
41f86d6ff6b0
win32: update gtk+ download to generate a source zip. Refs #16502
Daniel Atallah <datallah@pidgin.im>
parents:
35283
diff
changeset
|
148 | else |
|
41f86d6ff6b0
win32: update gtk+ download to generate a source zip. Refs #16502
Daniel Atallah <datallah@pidgin.im>
parents:
35283
diff
changeset
|
149 | mkdir -p "$SRC_INSTALL_DIR/$PREFIX" |
|
41f86d6ff6b0
win32: update gtk+ download to generate a source zip. Refs #16502
Daniel Atallah <datallah@pidgin.im>
parents:
35283
diff
changeset
|
150 | cp "$FILE" "$SRC_INSTALL_DIR/$FILE" |
|
41f86d6ff6b0
win32: update gtk+ download to generate a source zip. Refs #16502
Daniel Atallah <datallah@pidgin.im>
parents:
35283
diff
changeset
|
151 | fi |
|
41f86d6ff6b0
win32: update gtk+ download to generate a source zip. Refs #16502
Daniel Atallah <datallah@pidgin.im>
parents:
35283
diff
changeset
|
152 | done |
|
41f86d6ff6b0
win32: update gtk+ download to generate a source zip. Refs #16502
Daniel Atallah <datallah@pidgin.im>
parents:
35283
diff
changeset
|
153 | } |
|
41f86d6ff6b0
win32: update gtk+ download to generate a source zip. Refs #16502
Daniel Atallah <datallah@pidgin.im>
parents:
35283
diff
changeset
|
154 | |
|
41f86d6ff6b0
win32: update gtk+ download to generate a source zip. Refs #16502
Daniel Atallah <datallah@pidgin.im>
parents:
35283
diff
changeset
|
155 | function process_package { |
|
41f86d6ff6b0
win32: update gtk+ download to generate a source zip. Refs #16502
Daniel Atallah <datallah@pidgin.im>
parents:
35283
diff
changeset
|
156 | SPLIT=($1) |
|
41f86d6ff6b0
win32: update gtk+ download to generate a source zip. Refs #16502
Daniel Atallah <datallah@pidgin.im>
parents:
35283
diff
changeset
|
157 | URL=${SPLIT[0]} |
|
41f86d6ff6b0
win32: update gtk+ download to generate a source zip. Refs #16502
Daniel Atallah <datallah@pidgin.im>
parents:
35283
diff
changeset
|
158 | NAME="${SPLIT[1]} ${SPLIT[2]}" |
|
41f86d6ff6b0
win32: update gtk+ download to generate a source zip. Refs #16502
Daniel Atallah <datallah@pidgin.im>
parents:
35283
diff
changeset
|
159 | VALIDATION=${SPLIT[3]} |
|
41f86d6ff6b0
win32: update gtk+ download to generate a source zip. Refs #16502
Daniel Atallah <datallah@pidgin.im>
parents:
35283
diff
changeset
|
160 | download_and_validate "" "$URL" "$VALIDATION" "1" |
|
41f86d6ff6b0
win32: update gtk+ download to generate a source zip. Refs #16502
Daniel Atallah <datallah@pidgin.im>
parents:
35283
diff
changeset
|
161 | |
|
41f86d6ff6b0
win32: update gtk+ download to generate a source zip. Refs #16502
Daniel Atallah <datallah@pidgin.im>
parents:
35283
diff
changeset
|
162 | SRC_URL=${SPLIT[4]} |
|
41f86d6ff6b0
win32: update gtk+ download to generate a source zip. Refs #16502
Daniel Atallah <datallah@pidgin.im>
parents:
35283
diff
changeset
|
163 | SRC_VALIDATION=${SPLIT[5]} |
|
41f86d6ff6b0
win32: update gtk+ download to generate a source zip. Refs #16502
Daniel Atallah <datallah@pidgin.im>
parents:
35283
diff
changeset
|
164 | download_and_validate "src/$NAME/" "$SRC_URL" "$SRC_VALIDATION" "0" |
|
41f86d6ff6b0
win32: update gtk+ download to generate a source zip. Refs #16502
Daniel Atallah <datallah@pidgin.im>
parents:
35283
diff
changeset
|
165 | |
|
29798
7e57f09e0b2e
The rest of the plumbing needed to build the GTK+ Runtime zip included in the installer
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
166 | echo "$NAME" >> $CONTENTS_FILE |
|
7e57f09e0b2e
The rest of the plumbing needed to build the GTK+ Runtime zip included in the installer
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
167 | } |
|
7e57f09e0b2e
The rest of the plumbing needed to build the GTK+ Runtime zip included in the installer
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
168 | |
|
7e57f09e0b2e
The rest of the plumbing needed to build the GTK+ Runtime zip included in the installer
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
169 | for VAL in $ALL |
|
7e57f09e0b2e
The rest of the plumbing needed to build the GTK+ Runtime zip included in the installer
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
170 | do |
|
7e57f09e0b2e
The rest of the plumbing needed to build the GTK+ Runtime zip included in the installer
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
171 | VAR=${!VAL} |
|
36297
41f86d6ff6b0
win32: update gtk+ download to generate a source zip. Refs #16502
Daniel Atallah <datallah@pidgin.im>
parents:
35283
diff
changeset
|
172 | SPLIT=($VAR) |
|
41f86d6ff6b0
win32: update gtk+ download to generate a source zip. Refs #16502
Daniel Atallah <datallah@pidgin.im>
parents:
35283
diff
changeset
|
173 | if [ ${#SPLIT[@]} -lt 6 ]; then |
|
41f86d6ff6b0
win32: update gtk+ download to generate a source zip. Refs #16502
Daniel Atallah <datallah@pidgin.im>
parents:
35283
diff
changeset
|
174 | echo "$VAL has only ${#SPLIT[@]} attributes" |
|
41f86d6ff6b0
win32: update gtk+ download to generate a source zip. Refs #16502
Daniel Atallah <datallah@pidgin.im>
parents:
35283
diff
changeset
|
175 | exit 1 |
|
41f86d6ff6b0
win32: update gtk+ download to generate a source zip. Refs #16502
Daniel Atallah <datallah@pidgin.im>
parents:
35283
diff
changeset
|
176 | fi |
|
41f86d6ff6b0
win32: update gtk+ download to generate a source zip. Refs #16502
Daniel Atallah <datallah@pidgin.im>
parents:
35283
diff
changeset
|
177 | process_package "$VAR" |
|
29798
7e57f09e0b2e
The rest of the plumbing needed to build the GTK+ Runtime zip included in the installer
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
178 | done |
|
7e57f09e0b2e
The rest of the plumbing needed to build the GTK+ Runtime zip included in the installer
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
179 | |
|
7e57f09e0b2e
The rest of the plumbing needed to build the GTK+ Runtime zip included in the installer
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
180 | #Default GTK+ Theme to MS-Windows |
|
7e57f09e0b2e
The rest of the plumbing needed to build the GTK+ Runtime zip included in the installer
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
181 | echo gtk-theme-name = \"MS-Windows\" > $INSTALL_DIR/etc/gtk-2.0/gtkrc |
|
7e57f09e0b2e
The rest of the plumbing needed to build the GTK+ Runtime zip included in the installer
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
182 | |
|
7e57f09e0b2e
The rest of the plumbing needed to build the GTK+ Runtime zip included in the installer
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
183 | #Blow away translations that we don't have in Pidgin |
|
7e57f09e0b2e
The rest of the plumbing needed to build the GTK+ Runtime zip included in the installer
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
184 | for LOCALE_DIR in $INSTALL_DIR/share/locale/* |
|
7e57f09e0b2e
The rest of the plumbing needed to build the GTK+ Runtime zip included in the installer
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
185 | do |
|
30305
00c325754ef7
Add support for the binaries built by the opensuse build service to the
Daniel Atallah <datallah@pidgin.im>
parents:
29862
diff
changeset
|
186 | LOCALE=$(basename $LOCALE_DIR) |
|
29798
7e57f09e0b2e
The rest of the plumbing needed to build the GTK+ Runtime zip included in the installer
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
187 | if [ ! -e $PIDGIN_BASE/po/$LOCALE.po ]; then |
|
30305
00c325754ef7
Add support for the binaries built by the opensuse build service to the
Daniel Atallah <datallah@pidgin.im>
parents:
29862
diff
changeset
|
188 | echo Removing $LOCALE translation as it is missing from Pidgin |
|
29798
7e57f09e0b2e
The rest of the plumbing needed to build the GTK+ Runtime zip included in the installer
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
189 | rm -r $LOCALE_DIR |
|
7e57f09e0b2e
The rest of the plumbing needed to build the GTK+ Runtime zip included in the installer
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
190 | fi |
|
7e57f09e0b2e
The rest of the plumbing needed to build the GTK+ Runtime zip included in the installer
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
191 | done |
|
7e57f09e0b2e
The rest of the plumbing needed to build the GTK+ Runtime zip included in the installer
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
192 | |
|
7e57f09e0b2e
The rest of the plumbing needed to build the GTK+ Runtime zip included in the installer
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
193 | #Generate zip file to be included in installer |
|
33415
51473787ff4f
Bake the sha1sums for the debug symbols and gtk runtime into the installer instead of downloading them.
Daniel Atallah <datallah@pidgin.im>
parents:
33409
diff
changeset
|
194 | rm -f $ZIP_FILE |
|
51473787ff4f
Bake the sha1sums for the debug symbols and gtk runtime into the installer instead of downloading them.
Daniel Atallah <datallah@pidgin.im>
parents:
33409
diff
changeset
|
195 | zip -9 -r $ZIP_FILE Gtk |
|
33417
156f37832487
Sign all the win32 binaries with GPG (in addition to the authenticode signing for the executables)
Daniel Atallah <datallah@pidgin.im>
parents:
33416
diff
changeset
|
196 | ($GPG_SIGN -ab $ZIP_FILE && $GPG_SIGN --verify $ZIP_FILE.asc) || exit 1 |
|
29798
7e57f09e0b2e
The rest of the plumbing needed to build the GTK+ Runtime zip included in the installer
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
197 | |
|
36297
41f86d6ff6b0
win32: update gtk+ download to generate a source zip. Refs #16502
Daniel Atallah <datallah@pidgin.im>
parents:
35283
diff
changeset
|
198 | #Generate src zip file |
|
41f86d6ff6b0
win32: update gtk+ download to generate a source zip. Refs #16502
Daniel Atallah <datallah@pidgin.im>
parents:
35283
diff
changeset
|
199 | rm -f $SRC_ZIP_FILE |
|
41f86d6ff6b0
win32: update gtk+ download to generate a source zip. Refs #16502
Daniel Atallah <datallah@pidgin.im>
parents:
35283
diff
changeset
|
200 | (cd $SRC_INSTALL_DIR/src && zip -9 -r $SRC_ZIP_FILE *) |
|
41f86d6ff6b0
win32: update gtk+ download to generate a source zip. Refs #16502
Daniel Atallah <datallah@pidgin.im>
parents:
35283
diff
changeset
|
201 | ($GPG_SIGN -ab $SRC_ZIP_FILE && $GPG_SIGN --verify $SRC_ZIP_FILE.asc) || exit 1 |
|
41f86d6ff6b0
win32: update gtk+ download to generate a source zip. Refs #16502
Daniel Atallah <datallah@pidgin.im>
parents:
35283
diff
changeset
|
202 | |
|
30312
d2cb1662df79
Improve error handling
Daniel Atallah <datallah@pidgin.im>
parents:
30305
diff
changeset
|
203 | exit 0 |
|
d2cb1662df79
Improve error handling
Daniel Atallah <datallah@pidgin.im>
parents:
30305
diff
changeset
|
204 |