Skip to content
Permalink
Browse files

release.pl: warn about mis-sized splash and rescale it

  • Loading branch information
jef-n committed Feb 26, 2016
1 parent ee4658e commit be7f3fa89894635b53b7187cc065c1967e86d6c0
Showing with 8 additions and 1 deletion.
  1. BIN images/splash/splash.png
  2. +8 −1 scripts/release.pl
BIN -22.5 KB (93%) images/splash/splash.png
Binary file not shown.
@@ -128,8 +128,11 @@ ($$)
pod2usage("No version change");
}

my $splashwidth;
unless( $dopoint ) {
pod2usage("Splash images/splash/splash-$newmajor.$newminor.png not found") unless -r "images/splash/splash-$newmajor.$newminor.png";
$splashwidth = `identify -format '%w' images/splash/splash-$newmajor.$newminor.png`;
print "WARNING: Splash images/splash/splash-$newmajor.$newminor.png is $splashwidth pixels wide - will be rescaled\n" if $splashwidth != 600;
pod2usage("NSIS image ms-windows/Installer-Files/WelcomeFinishPage-$newmajor.$newminor.bmp not found") unless -r "ms-windows/Installer-Files/WelcomeFinishPage-$newmajor.$newminor.bmp";
}

@@ -169,7 +172,11 @@ ($$)
run( "cp debian/changelog /tmp", "backup changelog failed" );

unless( $dopoint ) {
run( "cp -v images/splash/splash-$newmajor.$newminor.png images/splash/splash.png", "splash png switch failed" );
if( $splashwidth != 600 ) {
run( "convert -resize 600x300 images/splash/splash-$newmajor.$newminor.png images/splash/splash.png", "rescale of splash png failed" );
} else {
run( "cp -v images/splash/splash-$newmajor.$newminor.png images/splash/splash.png", "splash png switch failed" );
}
run( "cp -v ms-windows/Installer-Files/WelcomeFinishPage-$newmajor.$newminor.bmp ms-windows/Installer-Files/WelcomeFinishPage.bmp", "installer bitmap switch failed" );

if( -f "images/splash/splash-release.xcf.bz2" ) {

0 comments on commit be7f3fa

Please sign in to comment.
You can’t perform that action at this time.