Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@ import {fileURLToPath} from 'node:url';
import BinWrapper from 'bin-wrapper';

const pkg = JSON.parse(fs.readFileSync(new URL('../package.json', import.meta.url)));
const url = `https://raw.githubusercontent.com/imagemin/gifsicle-bin/v${pkg.version}/vendor/`;

const baseUrl = process.env.npm_config_gifsicle_bin_host_mirror || 'https://raw.githubusercontent.com/imagemin/gifsicle-bin';

const url = `${baseUrl}/v${pkg.version}/vendor/`;

const binWrapper = new BinWrapper()
.src(`${url}macos/gifsicle`, 'darwin')
Expand Down