image_optim_pack 0.8.0.20220131-x86_64-linux → 0.8.0.20220418-x86_64-linux
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/docker-build.yml +16 -0
- data/CHANGELOG.markdown +4 -0
- data/Dockerfile +3 -3
- data/Makefile +13 -6
- data/checksums.mk +2 -2
- data/image_optim_pack.gemspec +1 -1
- data/vendor/linux-x86_64/advpng +0 -0
- data/vendor/linux-x86_64/jpegoptim +0 -0
- metadata +5 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 48a7579f2dcafa2bc194694d3612914ef544098784710fddb07cd3628f0cad12
|
4
|
+
data.tar.gz: 551ba275b33a48aaa1b021d573c8700b8b788b76049dfe81dd94a0698e2cf601
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 680f1654e9c51b57fc3ec1fb3ce3d634abaa85b8ac7ff011f57eb2ae75577019d4f210e3d18442a9b67099856e1385f6f3dc3c8fb12a5013a6a5d83e399d31d9
|
7
|
+
data.tar.gz: 6a8f8cd2af6b4a7365d5519d16f0df964ff5284c0a4c34c89e462adb2e987e705e171d41573262b5f3eb3ed7375b8ef7139c300ff5c6aa95155d2aeffe9a5072
|
@@ -0,0 +1,16 @@
|
|
1
|
+
name: docker-build
|
2
|
+
on:
|
3
|
+
push:
|
4
|
+
tags:
|
5
|
+
- '*'
|
6
|
+
jobs:
|
7
|
+
docker-build:
|
8
|
+
runs-on: ubuntu-latest
|
9
|
+
steps:
|
10
|
+
- uses: actions/checkout@v2
|
11
|
+
- uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
|
12
|
+
with:
|
13
|
+
registry: ghcr.io
|
14
|
+
username: ${{ github.actor }}
|
15
|
+
password: ${{ secrets.GITHUB_TOKEN }}
|
16
|
+
- run: make docker-push
|
data/CHANGELOG.markdown
CHANGED
data/Dockerfile
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
FROM alpine
|
1
|
+
FROM alpine as base
|
2
2
|
ENV LD_LIBRARY_PATH=/usr/local/lib
|
3
3
|
WORKDIR /tmp
|
4
4
|
|
@@ -85,7 +85,7 @@ ARG JPEGARCHIVE_SHA256
|
|
85
85
|
COPY download/jpegarchive-$JPEGARCHIVE_VER.tar.gz download/
|
86
86
|
RUN ./extract jpegarchive && \
|
87
87
|
cd build/jpegarchive && \
|
88
|
-
make install
|
88
|
+
CFLAGS=-fcommon make install
|
89
89
|
|
90
90
|
FROM libjpeg as jpegoptim
|
91
91
|
ARG JPEGOPTIM_VER
|
@@ -105,7 +105,7 @@ RUN ./extract optipng && \
|
|
105
105
|
./configure && \
|
106
106
|
make install
|
107
107
|
|
108
|
-
FROM rust:1
|
108
|
+
FROM rust:1-alpine as oxipng
|
109
109
|
RUN apk add --no-cache build-base
|
110
110
|
COPY script/extract ./
|
111
111
|
ARG OXIPNG_VER
|
data/Makefile
CHANGED
@@ -2,11 +2,11 @@ all :
|
|
2
2
|
|
3
3
|
# ====== VERSIONS ======
|
4
4
|
|
5
|
-
ADVANCECOMP_VER := 2.
|
5
|
+
ADVANCECOMP_VER := 2.3
|
6
6
|
GIFSICLE_VER := 1.93
|
7
7
|
JHEAD_VER := 3.04
|
8
8
|
JPEGARCHIVE_VER := 2.2.0
|
9
|
-
JPEGOPTIM_VER := 1.4.
|
9
|
+
JPEGOPTIM_VER := 1.4.7
|
10
10
|
LIBJPEG_VER := 9e
|
11
11
|
LIBLCMS_VER := 2.13
|
12
12
|
LIBMOZJPEG_VER := 4.0.3
|
@@ -78,6 +78,7 @@ $(call archive,$1)
|
|
78
78
|
# download archive from url
|
79
79
|
$$($1_TGZ) :
|
80
80
|
mkdir -p $(DL_DIR)
|
81
|
+
test -w $(DL_DIR)
|
81
82
|
while ! mkdir $$@.lock 2> /dev/null; do sleep 1; done
|
82
83
|
wget -q -O $$@.tmp $(subst [VER],$($1_VER),$(strip $2))
|
83
84
|
mv $$@.tmp $$@
|
@@ -88,7 +89,7 @@ $(eval $(call archive-dl,ADVANCECOMP, https://github.com/amadvance/advancecomp/r
|
|
88
89
|
$(eval $(call archive-dl,GIFSICLE, https://www.lcdf.org/gifsicle/gifsicle-[VER].tar.gz))
|
89
90
|
$(eval $(call archive-dl,JHEAD, https://www.sentex.ca/~mwandel/jhead/jhead-[VER].tar.gz))
|
90
91
|
$(eval $(call archive-dl,JPEGARCHIVE, https://github.com/danielgtaylor/jpeg-archive/archive/v[VER].tar.gz))
|
91
|
-
$(eval $(call archive-dl,JPEGOPTIM, https://
|
92
|
+
$(eval $(call archive-dl,JPEGOPTIM, https://github.com/tjko/jpegoptim/archive/v[VER].tar.gz))
|
92
93
|
$(eval $(call archive-dl,LIBJPEG, https://www.ijg.org/files/jpegsrc.v[VER].tar.gz))
|
93
94
|
$(eval $(call archive-dl,LIBLCMS, https://prdownloads.sourceforge.net/lcms/lcms2-[VER].tar.gz?download))
|
94
95
|
$(eval $(call archive-dl,LIBMOZJPEG, https://github.com/mozilla/mozjpeg/archive/v[VER].tar.gz))
|
@@ -266,15 +267,21 @@ DOCKER_TAG := $(shell date +%Y%m%d)
|
|
266
267
|
|
267
268
|
docker-build : download
|
268
269
|
@docker build \
|
270
|
+
--pull \
|
269
271
|
$(foreach archive,$(ARCHIVES),--build-arg $(archive)_VER=$($(archive)_VER) --build-arg $(archive)_SHA256=$($(archive)_SHA256)) \
|
270
|
-
-t $(DOCKER_IMAGE):$(DOCKER_TAG) \
|
271
272
|
-t $(DOCKER_IMAGE):latest \
|
272
273
|
.
|
273
274
|
.PHONY : docker-build
|
274
275
|
|
275
|
-
docker-
|
276
|
-
@docker
|
276
|
+
docker-tag : docker-build
|
277
|
+
@docker tag \
|
278
|
+
$(DOCKER_IMAGE):latest \
|
279
|
+
$(DOCKER_IMAGE):$(DOCKER_TAG)
|
280
|
+
.PHONY : docker-tag
|
281
|
+
|
282
|
+
docker-push : docker-tag
|
277
283
|
@docker push $(DOCKER_IMAGE):latest
|
284
|
+
@docker push $(DOCKER_IMAGE):$(DOCKER_TAG)
|
278
285
|
.PHONY : docker-push
|
279
286
|
|
280
287
|
# ====== CLEAN ======
|
data/checksums.mk
CHANGED
@@ -1,8 +1,8 @@
|
|
1
|
-
ADVANCECOMP_SHA256 :=
|
1
|
+
ADVANCECOMP_SHA256 := 811f661dfbbdddefdcb5eaf133e403ca2af99328b850b22c1249f7bebe657578
|
2
2
|
GIFSICLE_SHA256 := 92f67079732bf4c1da087e6ae0905205846e5ac777ba5caa66d12a73aa943447
|
3
3
|
JHEAD_SHA256 := ef89bbcf4f6c25ed88088cf242a47a6aedfff4f08cc7dc205bf3e2c0f10a03c9
|
4
4
|
JPEGARCHIVE_SHA256 := 3da16a5abbddd925dee0379aa51d9fe0cba33da0b5703be27c13a2dda3d7ed75
|
5
|
-
JPEGOPTIM_SHA256 :=
|
5
|
+
JPEGOPTIM_SHA256 := c52616f2fb8d481315871680f9943b0f58c553d1e0c49a6bd4691a3e66d7e6de
|
6
6
|
LIBJPEG_SHA256 := 4077d6a6a75aeb01884f708919d25934c93305e49f7e3f36db9129320e6f4f3d
|
7
7
|
LIBLCMS_SHA256 := 0c67a5cc144029cfa34647a52809ec399aae488db4258a6a66fba318474a070f
|
8
8
|
LIBMOZJPEG_SHA256 := 4f22731db2afa14531a5bf2633d8af79ca5cb697a550f678bf43f24e5e409ef0
|
data/image_optim_pack.gemspec
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = 'image_optim_pack'
|
5
|
-
s.version = '0.8.0.
|
5
|
+
s.version = '0.8.0.20220418'
|
6
6
|
s.summary = %q{Precompiled binaries for image_optim: advpng, gifsicle, jhead, jpeg-recompress, jpegoptim, jpegtran, optipng, pngcrush, pngquant}
|
7
7
|
s.homepage = "https://github.com/toy/#{s.name}"
|
8
8
|
s.authors = ['Ivan Kuchin']
|
data/vendor/linux-x86_64/advpng
CHANGED
Binary file
|
Binary file
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: image_optim_pack
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.0.
|
4
|
+
version: 0.8.0.20220418
|
5
5
|
platform: x86_64-linux
|
6
6
|
authors:
|
7
7
|
- Ivan Kuchin
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-04-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: image_optim
|
@@ -100,6 +100,7 @@ extra_rdoc_files: []
|
|
100
100
|
files:
|
101
101
|
- ".dockerignore"
|
102
102
|
- ".github/workflows/check.yml"
|
103
|
+
- ".github/workflows/docker-build.yml"
|
103
104
|
- ".github/workflows/rubocop.yml"
|
104
105
|
- ".gitignore"
|
105
106
|
- ".rubocop.yml"
|
@@ -176,7 +177,7 @@ licenses:
|
|
176
177
|
metadata:
|
177
178
|
bug_tracker_uri: https://github.com/toy/image_optim_pack/issues
|
178
179
|
changelog_uri: https://github.com/toy/image_optim_pack/blob/master/CHANGELOG.markdown
|
179
|
-
documentation_uri: https://www.rubydoc.info/gems/image_optim_pack/0.8.0.
|
180
|
+
documentation_uri: https://www.rubydoc.info/gems/image_optim_pack/0.8.0.20220418
|
180
181
|
source_code_uri: https://github.com/toy/image_optim_pack
|
181
182
|
post_install_message:
|
182
183
|
rdoc_options: []
|
@@ -193,7 +194,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
193
194
|
- !ruby/object:Gem::Version
|
194
195
|
version: '0'
|
195
196
|
requirements: []
|
196
|
-
rubygems_version: 3.3.
|
197
|
+
rubygems_version: 3.3.11
|
197
198
|
signing_key:
|
198
199
|
specification_version: 4
|
199
200
|
summary: 'Precompiled binaries for image_optim: advpng, gifsicle, jhead, jpeg-recompress,
|