Skip to content

Commit

Permalink
update travis.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ducnhat90 committed Jul 2, 2020
1 parent 41b9e79 commit 569677d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 21 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ deploy:
file_glob: true
file:
- $HOME/jpeg-archive/linux-jpeg-recompress
- $HOME/jpeg-archive/osx-jpeg-recompress
- $HOME/jpeg-archive/darwin-jpeg-recompress
- $HOME/jpeg-archive/jpeg-recompress.exe
on:
tags: true
21 changes: 1 addition & 20 deletions lib/install.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,24 +10,5 @@ bin.run(['--version']).then(() => {
log.warn(error.message);
log.warn('jpeg-recompress pre-build test failed');

if (process.platform === 'win32' || process.platform === 'linux') {
// eslint-disable-next-line unicorn/no-process-exit
process.exit(1);
}

log.info('compiling from source');

try {
await binBuild.file(path.resolve(__dirname, '../vendor/source/jpeg-archive-2.2.0.tar.gz'), [
`mkdir -p ${bin.dest()}`,
`make && mv ${bin.use()} ${bin.path()}`
]);

log.success('jpeg-recompress built successfully');
} catch (error) {
log.error(error.stack);

// eslint-disable-next-line unicorn/no-process-exit
process.exit(1);
}
process.exit(1);
});

0 comments on commit 569677d

Please sign in to comment.