pidgin/win32/nsis/generate_gtk_zip.sh

branch
release-2.x.y
changeset 33415
51473787ff4f
parent 33409
fb9fe934688e
child 33416
c259c9a6d184
equal deleted inserted replaced
33413:acddb4dbee6d 33415:51473787ff4f
10 10
11 STAGE_DIR=`readlink -f $PIDGIN_BASE/pidgin/win32/nsis/gtk_runtime_stage` 11 STAGE_DIR=`readlink -f $PIDGIN_BASE/pidgin/win32/nsis/gtk_runtime_stage`
12 #Subdirectory of $STAGE_DIR 12 #Subdirectory of $STAGE_DIR
13 INSTALL_DIR=Gtk 13 INSTALL_DIR=Gtk
14 CONTENTS_FILE=$INSTALL_DIR/CONTENTS 14 CONTENTS_FILE=$INSTALL_DIR/CONTENTS
15 PIDGIN_VERSION=$( < $PIDGIN_BASE/VERSION )
15 16
16 #This needs to be changed every time there is any sort of change. 17 #This needs to be changed every time there is any sort of change.
17 BUNDLE_VERSION=2.16.6.1 18 BUNDLE_VERSION=2.16.6.1
19 BUNDLE_SHA1SUM=5e16b7efb11943e8c80bc390f6c38df904fd36ed
20 ZIP_FILE="$PIDGIN_BASE/pidgin/win32/nsis/gtk-runtime-$BUNDLE_VERSION.zip"
21
22 #Download the existing file (so that we distribute the exact same file for all releases with the same bundle version)
23 FILE="$ZIP_FILE"
24 if [ ! -e "$FILE" ]; then
25 wget "https://pidgin.im/win32/download_redir.php?version=$PIDGIN_VERSION&gtk_version=$BUNDLE_VERSION&dl_pkg=gtk" -O "$FILE"
26 fi
27 CHECK_SHA1SUM=`sha1sum $FILE`
28 CHECK_SHA1SUM=${CHECK_SHA1SUM%%\ *}
29 if [ "$CHECK_SHA1SUM" != "$BUNDLE_SHA1SUM" ]; then
30 echo "sha1sum ($CHECK_SHA1SUM) for $FILE doesn't match expected value of $BUNDLE_SHA1SUM"
31 # Allow "devel" versions to build their own bundles if the download doesn't succeed
32 if [[ "$PIDGIN_VERSION" == *"devel" ]]; then
33 echo "Continuing GTK+ Bundle creation for development version of Pidgin"
34 else
35 exit 1
36 fi
37 else
38 exit 0
39 fi
40
18 41
19 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" 42 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"
20 #Cairo 1.10.2 has a bug that can be seen when selecting text 43 #Cairo 1.10.2 has a bug that can be seen when selecting text
21 #CAIRO="http://ftp.gnome.org/pub/GNOME/binaries/win32/dependencies/cairo_1.10.2-2_win32.zip Cairo 1.10.2-2 sha1sum:d44cd66a9f4d7d29a8f2c28d1c1c5f9b0525ba44" 44 #CAIRO="http://ftp.gnome.org/pub/GNOME/binaries/win32/dependencies/cairo_1.10.2-2_win32.zip Cairo 1.10.2-2 sha1sum:d44cd66a9f4d7d29a8f2c28d1c1c5f9b0525ba44"
22 CAIRO="http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/cairo_1.8.10-1_win32.zip Cairo 1.8.10-1 sha1sum:a08476cccd807943958610977a138c4d6097c7b8" 45 CAIRO="http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/cairo_1.8.10-1_win32.zip Cairo 1.8.10-1 sha1sum:a08476cccd807943958610977a138c4d6097c7b8"
104 rm -r $LOCALE_DIR 127 rm -r $LOCALE_DIR
105 fi 128 fi
106 done 129 done
107 130
108 #Generate zip file to be included in installer 131 #Generate zip file to be included in installer
109 ZIPFILE=../gtk-runtime-$BUNDLE_VERSION.zip 132 rm -f $ZIP_FILE
110 rm -f $ZIPFILE 133 zip -9 -r $ZIP_FILE Gtk
111 zip -9 -r $ZIPFILE Gtk
112 134
113 exit 0 135 exit 0
114 136

mercurial