Permalink
Browse files

Embed PngOptimizerCL in the deb package. See issue #8

  • Loading branch information...
hadrien-psydk committed Sep 30, 2018
1 parent 8a86aa2 commit 86146f957bcc08ac0616273bc422e502442f57bd
Showing with 30 additions and 25 deletions.
  1. +29 −24 distrib/make-distrib.sh
  2. +1 −1 projects/pngoptimizer/gtk/pngoptimizer.desktop
@@ -27,6 +27,31 @@ function HandleSuccess
exit 0
}

###############################################################################
# PngOptimizerCL
echo ""
echo -e "\e[36m========== Packaging PngOptimizerCL ==========\e[0m"
make -C ../projects/pngoptimizercl/ CONFIG=release

POCLDIR=tgz/pngoptimizercl
rm -rf $POCLDIR
mkdir -p $POCLDIR

cp -v "../projects/pngoptimizercl/linux-release/pngoptimizercl" "$POCLDIR" || HandleFail
cp -v "../projects/pngoptimizercl/Readme.txt" "$POCLDIR" || HandleFail
cp -v "../projects/pngoptimizercl/License.txt" "$POCLDIR" || HandleFail
cp -v "../projects/pngoptimizercl/Changelog.txt" "$POCLDIR" || HandleFail

TGZFILE="pngoptimizercl-$POVER-linux-x64.tgz"

tput setaf 3
cd tgz
echo "Creating $TGZFILE..."
tar -pczvf "$TGZFILE" "pngoptimizercl" || HandleFail
cd ..
mv -v tgz/$TGZFILE ./download
tput sgr0

###############################################################################
# PngOptimizer
echo -e "\e[36m========== Packaging PngOptimizer ==========\e[0m"
@@ -37,8 +62,12 @@ rm -rf $PODEBDIR
mkdir -p $PODEBDIR
mkdir -p $PODEBDIR/DEBIAN

echo -e "Create PngOptimizer deb files"
make -C ../projects/pngoptimizer/ CONFIG=release DESTDIR=../../distrib/$PODEBDIR install

echo -e "Create PngOptimizerCL deb files"
make -C ../projects/pngoptimizercl/ CONFIG=release DESTDIR=../../distrib/$PODEBDIR install

SIZE=$(du -sk $PODEBDIR | cut -f 1)

cat > "$PODEBDIR/DEBIAN/control" <<EOL
@@ -61,27 +90,3 @@ dpkg-deb --build $PODEBDIR
mv -v $PODEBDIR.deb ./download
tput sgr0

###############################################################################
# PngOptimizerCL
echo ""
echo -e "\e[36m========== Packaging PngOptimizerCL ==========\e[0m"
make -C ../projects/pngoptimizercl/ CONFIG=release

POCLDIR=tgz/pngoptimizercl
rm -rf $POCLDIR
mkdir -p $POCLDIR

cp -v "../projects/pngoptimizercl/linux-release/pngoptimizercl" "$POCLDIR" || HandleFail
cp -v "../projects/pngoptimizercl/Readme.txt" "$POCLDIR" || HandleFail
cp -v "../projects/pngoptimizercl/License.txt" "$POCLDIR" || HandleFail
cp -v "../projects/pngoptimizercl/Changelog.txt" "$POCLDIR" || HandleFail

TGZFILE="pngoptimizercl-$POVER-linux-x64.tgz"

tput setaf 3
cd tgz
echo "Creating $TGZFILE..."
tar -pczvf "$TGZFILE" "pngoptimizercl" || HandleFail
cd ..
mv -v tgz/$TGZFILE ./download
tput sgr0
@@ -1,5 +1,5 @@
[Desktop Entry]
Version=2.5
Version=2.6-beta
Type=Application
Name=PngOptimizer
GenericName=Image Optimizer

0 comments on commit 86146f9

Please sign in to comment.