forked from ImageOptim/ImageOptim
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlipo.sh
executable file
·22 lines (19 loc) · 1.27 KB
/
lipo.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/bash
#
# Universal Binary Script for ImageOptim-ESR components
# 1.9.0a2 by DingoBits, 2023-08-03
#
# Both arm64 and amd64 builds should be done now.
#
set -e
mkdir -p dependencies/binaries
lipo arm64_workspace/bin/advpng amd64_workspace/bin/advpng -create -output dependencies/binaries/advpng
lipo arm64_workspace/bin/gifsicle amd64_workspace/bin/gifsicle -create -output dependencies/binaries/gifsicle
lipo arm64_workspace/bin/guetzli amd64_workspace/bin/guetzli -create -output dependencies/binaries/guetzli
lipo arm64_workspace/bin/jpegoptim amd64_workspace/bin/jpegoptim -create -output dependencies/binaries/jpegoptim
lipo arm64_workspace/bin/jpegtran amd64_workspace/bin/jpegtran -create -output dependencies/binaries/jpegtran
lipo arm64_workspace/bin/oxipng amd64_workspace/bin/advpng -create -output dependencies/binaries/oxipng
lipo arm64_workspace/bin/pngcrush amd64_workspace/bin/pngcrush -create -output dependencies/binaries/pngcrush
lipo arm64_workspace/bin/pngquant amd64_workspace/bin/pngquant -create -output dependencies/binaries/pngquant
lipo arm64_workspace/bin/svgcleaner amd64_workspace/bin/svgcleaner -create -output dependencies/binaries/svgcleaner
lipo arm64_workspace/bin/zopflipng amd64_workspace/bin/zopflipng -create -output dependencies/binaries/zopflipng