Skip to content

Commit

Permalink
Showing 9 changed files with 167 additions and 1 deletion.
84 changes: 84 additions & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
name: release CI

on:
# Push激活,去掉#开启
push:
# 定时激活
schedule:
- cron: '30 * * * *'
# 每30分钟:'30 * * * *'
# 每1小时:'* 1 * * *'
# !最少5分钟
# 接受目标仓库的dispatch激活
repository_dispatch:
types: [do_archive]

jobs:
transport:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

# 运行工具
- name: Run ReleaseDelivr
run: |
ls
chmod 777 ReleaseDelivr
./ReleaseDelivr
ls
# 读取最新版本号
- name: Read target version
id: tVer
uses: juliangruber/read-file-action@v1
with:
path: ./version

# 读取旧版本号
- name: Read current version
id: cVer
uses: juliangruber/read-file-action@v1
with:
path: ./old_version

- run: |
echo "tVer=${{ steps.tVer.outputs.content }}" >> $GITHUB_ENV
echo "cVer=${{ steps.cVer.outputs.content }}" >> $GITHUB_ENV
- name: push
if: env.cVer != env.tVer
uses: github-actions-x/[email protected]
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
push-branch: master
commit-message: 'Automatically pushed by GitHub Actions'
rebase: 'true' # pull abd rebase before commit
force-add: 'true'
# !请替换
name: Purple
email: [email protected]

# 等待10s 以防先发布再push
- name: Sleep for 10 seconds
if: env.cVer != env.tVer
uses: jakejarvis/wait-action@master
with:
time: '10s'

# 读取下载地址
- name: Read DownloadLink
if: env.cVer != env.tVer
id: downloadlink
uses: juliangruber/read-file-action@v1
with:
path: ./download_link

# 运行工具
- name: Github Release create, update, and upload assets
if: env.cVer != env.tVer
uses: meeDamian/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ steps.tVer.outputs.content }}
name: ${{ steps.tVer.outputs.content }}
body: 下载链接:</br>${{ steps.downloadlink.outputs.content }}
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@

.DS_Store
Binary file added 7z
Binary file not shown.
Binary file added 7z.so
Binary file not shown.
Binary file added Codecs/Rar.so
Binary file not shown.
36 changes: 35 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,35 @@
# FFmpeg-Linux64-master
# FFmpeg-Linux64-master

官方的api有概率访问出错,改成mac编译版,本地手动更新,push之后自动发布release

#API

## 最新FFmpeg下载链接:
https://cdn.jsdelivr.net/gh/One-Studio/FFmpeg-Linux-amd64@master/dist/ffmpeg-linux-amd64.7z

## 某个版本的下载链接
通过下面的API接口获取历史版本号,比如 `4.3.1`,下载链接:

https://cdn.jsdelivr.net/gh/One-Studio/[email protected]/dist/ffmpeg-linux-amd64.7z.7z

## 原网站API:
版本号(需要提取):https://johnvansickle.com/ffmpeg/release-readme.txt

下载链接:https://johnvansickle.com/ffmpeg/releases/ffmpeg-release-amd64-static.tar.xz

## 本搬运仓库API:
版本号:https://cdn.jsdelivr.net/gh/One-Studio/FFmpeg-Linux-amd64@master/version

下载链接( `/n` 分割):https://cdn.jsdelivr.net/gh/One-Studio/FFmpeg-Linux-amd64@master/download_link

API接口 Json格式:https://cdn.jsdelivr.net/gh/One-Studio/FFmpeg-Linux-amd64@master/api.json

| API | 类型 | 含义 |
| ------------ | -------- | --------------------------------------------- |
| Version | string | 版本号 |
| VersionList | []string | 历史版本 |
| ReleaseTime | string | 最新版本的发布时间 (格式2020-10-20T12:16:01Z) |
| Checktime | string | 搬运时检查的时间 |
| DownloadLink | []string | 下载链接 |
| Format | int | 格式(1=7z, 2=zip) |
| ReleaseNote | string | 更新日志 |
Binary file added ReleaseDelivr
Binary file not shown.
9 changes: 9 additions & 0 deletions api.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"Version": "",
"VersionList": [],
"ReleaseTime": "",
"CheckTime": "",
"DownloadLink": [],
"Format": 1,
"ReleaseNote": ""
}
37 changes: 37 additions & 0 deletions config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
"TargetOwner": "",
"TargetRepo": "",
"TargetGH": false,
"TargetAPI": "https://johnvansickle.com/ffmpeg/git-readme.txt",
"TargetDLink": "https://johnvansickle.com/ffmpeg/builds/ffmpeg-git-amd64-static.tar.xz",
"ArchiverOwner": "One-Studio",
"ArchiverRepo": "FFmpeg-Linux64-master",
"ArchiverGH": true,
"ArchiverAPI": "",
"ArchiverVersion": "v1.2.0 custom-ffmpeg-linux",
"Version": "",
"VersionList": [],
"CheckTime": "",
"Format": 1,
"CompRatio": 3,
"DistPath": "dist",
"Filter": [
".zip",
".exe"
],
"DeleteFilter": [
{
"Index": "ffmpeg",
"List": [
"ffprobe",
"manpages"
]
}
],
"RenameFilter": [
{
"Index": "ffmpeg",
"Name": "ffmpeg-linux64-master.7z"
}
]
}

0 comments on commit d1d1b50

Please sign in to comment.