Skip to content

Commit

Permalink
chore(release): 1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-akait committed Sep 19, 2018
1 parent deb77ad commit aa68a6e
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 6 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@ All notable changes to this project will be documented in this file.

This project adheres to [Semantic Versioning](http://semver.org).

## HEAD
## v1.1.0 - 2018-09-18

- feat: pre-build linux binaries
- fix: sequential check binaries on working.

## v1.0.2 - 2018-09-18
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mozjpeg-binaries",
"version": "1.0.2",
"version": "1.1.0",
"description": "Wrapper for mozjpeg binaries (cjpeg, djpeg, jpegtran, rdjpgcom, tjbench and wrjpgcom).",
"repository": {
"type": "git",
Expand Down
32 changes: 29 additions & 3 deletions src/bin-wrappers.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,47 @@

const path = require("path");
const BinWrappers = require("bin-wrapper");
const pkg = require("../package.json");

const dest = path.join(__dirname, "../vendor");
const isWin = process.platform === "win32";

const url = `https://raw.githubusercontent.com/itgalaxy/mozjpeg-binaries/v${
pkg.version
}/vendor/`;

module.exports = {
cjpeg: new BinWrappers().dest(dest).use(isWin ? "cjpeg.exe" : "cjpeg"),
djpeg: new BinWrappers().dest(dest).use(isWin ? "djpeg.exe" : "djpeg"),
cjpeg: new BinWrappers()
.src(`${url}linux/cjpeg`, "linux")
.src(`${url}linux/libjpeg.a`, "linux")
.src(`${url}linux/libjpeg.la`, "linux")
.src(`${url}linux/libturbojpeg.a`, "linux")
.src(`${url}linux/libturboj1peg.la`, "linux")
.dest(dest)
.use(isWin ? "cjpeg.exe" : "cjpeg"),

djpeg: new BinWrappers()
.src(`${url}linux/djpeg`, "linux")
.dest(dest)
.use(isWin ? "djpeg.exe" : "djpeg"),

jpegtran: new BinWrappers()
.src(`${url}linux/jpegtran`, "linux")
.dest(dest)
.use(isWin ? "jpegtran.exe" : "jpegtran"),

rdjpgcom: new BinWrappers()
.src(`${url}linux/rdjpgcom`, "linux")
.dest(dest)
.use(isWin ? "rdjpgcom.exe" : "rdjpgcom"),
tjbench: new BinWrappers().dest(dest).use(isWin ? "tjbench.exe" : "tjbench"),

tjbench: new BinWrappers()
.src(`${url}linux/tjbench`, "linux")
.dest(dest)
.use(isWin ? "tjbench.exe" : "tjbench"),

wrjpgcom: new BinWrappers()
.src(`${url}linux/wrjpgcom`, "linux")
.dest(dest)
.use(isWin ? "wrjpgcom.exe" : "wrjpgcom")
};

0 comments on commit aa68a6e

Please sign in to comment.