diff --git a/lib/index.js b/lib/index.js index 38c9499..003fd43 100644 --- a/lib/index.js +++ b/lib/index.js @@ -7,8 +7,9 @@ const pkg = JSON.parse(fs.readFileSync(new URL('../package.json', import.meta.ur const url = `https://raw.githubusercontent.com/imagemin/cwebp-bin/v${pkg.version}/vendor/`; const binWrapper = new BinWrapper() - .src(`${url}osx/cwebp`, 'darwin') - .src(`${url}linux/x86/cwebp`, 'linux', 'x86') + .src(`${url}osx/arm64/cwebp`, 'darwin', 'arm64') + .src(`${url}osx/x86-64/cwebp`, 'darwin', 'x86-64') + .src(`${url}linux/aarch64/cwebp`, 'linux', 'aarch64') .src(`${url}linux/x64/cwebp`, 'linux', 'x64') .src(`${url}win/x64/cwebp.exe`, 'win32', 'x64') .dest(fileURLToPath(new URL('../vendor', import.meta.url))) diff --git a/lib/install.js b/lib/install.js index 034d112..190100d 100644 --- a/lib/install.js +++ b/lib/install.js @@ -11,7 +11,7 @@ bin.run(['-version']).then(() => { console.info('compiling from source'); try { - const source = fileURLToPath(new URL('../vendor/source/libwebp-1.2.1.tar.gz', import.meta.url)); + const source = fileURLToPath(new URL('../vendor/source/libwebp-1.3.2.tar.gz', import.meta.url)); binBuild.file(source, [ `./configure --disable-shared --prefix="${bin.dest()}" --bindir="${bin.dest()}"`, diff --git a/test/test.js b/test/test.js index 1e8f92f..9fc4044 100644 --- a/test/test.js +++ b/test/test.js @@ -18,7 +18,7 @@ test('rebuild the cwebp binaries', async t => { } const temporary = temporaryDirectory(); - const source = fileURLToPath(new URL('../vendor/source/libwebp-1.2.1.tar.gz', import.meta.url)); + const source = fileURLToPath(new URL('../vendor/source/libwebp-1.3.2.tar.gz', import.meta.url)); await binBuild.file(source, [ `./configure --disable-shared --prefix="${temporary}" --bindir="${temporary}"`, diff --git a/vendor/linux/aarch64/cwebp b/vendor/linux/aarch64/cwebp new file mode 100755 index 0000000..b17b347 Binary files /dev/null and b/vendor/linux/aarch64/cwebp differ diff --git a/vendor/linux/x64/cwebp b/vendor/linux/x64/cwebp index dd9a757..3a0581c 100755 Binary files a/vendor/linux/x64/cwebp and b/vendor/linux/x64/cwebp differ diff --git a/vendor/linux/x86/cwebp b/vendor/linux/x86/cwebp deleted file mode 100755 index dd9a757..0000000 Binary files a/vendor/linux/x86/cwebp and /dev/null differ diff --git a/vendor/osx/arm64/cwebp b/vendor/osx/arm64/cwebp new file mode 100755 index 0000000..e2555e4 Binary files /dev/null and b/vendor/osx/arm64/cwebp differ diff --git a/vendor/osx/cwebp b/vendor/osx/cwebp deleted file mode 100755 index ba01fd2..0000000 Binary files a/vendor/osx/cwebp and /dev/null differ diff --git a/vendor/osx/x86-64/cwebp b/vendor/osx/x86-64/cwebp new file mode 100755 index 0000000..9608eeb Binary files /dev/null and b/vendor/osx/x86-64/cwebp differ diff --git a/vendor/source/libwebp-1.2.1.tar.gz b/vendor/source/libwebp-1.3.2.tar.gz similarity index 64% rename from vendor/source/libwebp-1.2.1.tar.gz rename to vendor/source/libwebp-1.3.2.tar.gz index 1505067..1d747e9 100644 Binary files a/vendor/source/libwebp-1.2.1.tar.gz and b/vendor/source/libwebp-1.3.2.tar.gz differ diff --git a/vendor/win/x64/cwebp.exe b/vendor/win/x64/cwebp.exe index 446d6e7..7a33eb2 100644 Binary files a/vendor/win/x64/cwebp.exe and b/vendor/win/x64/cwebp.exe differ