Skip to content

Commit

Permalink
release binaries on b* tag
Browse files Browse the repository at this point in the history
  • Loading branch information
jperl committed Jan 14, 2020
1 parent 20b9cd6 commit 5a2a53e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release-binaries.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
on:
push:
tags:
- "v*"
- "b*"

name: Release Binaries

Expand Down
4 changes: 3 additions & 1 deletion install.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,8 @@ var arch = os.arch();

var name = platform === "win32" ? "ffmpeg.exe" : "ffmpeg";

var url = `https://github.com/qawolf/ffmpeg-static/releases/download/v${pkg.version}/${platform}-${arch}-${name}`;
var release = pkg["ffmpeg-static"]["binary_release"];

var url = `https://github.com/qawolf/ffmpeg-static/releases/download/${release}/${platform}-${arch}-${name}`;

downloadFile(url, `./bin/${name}`, onProgress);
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@
"test": "node_modules/.bin/tape test/*.js",
"prepublishOnly": "npm test"
},
"ffmpeg-static": {
"binary_release": "b3.0.0"
},
"repository": {
"type": "git",
"url": "https://github.com/eugeneware/ffmpeg-static"
Expand Down

0 comments on commit 5a2a53e

Please sign in to comment.