mirror of
https://github.com/yaobiao131/downkyicore.git
synced 2025-08-10 00:52:31 +00:00
feat: 加入linux arm64构建脚本
This commit is contained in:
14
.github/workflows/build.yml
vendored
14
.github/workflows/build.yml
vendored
@@ -78,7 +78,7 @@ jobs:
|
||||
needs: changelog
|
||||
strategy:
|
||||
matrix:
|
||||
cpu: [ x64 ]
|
||||
cpu: [ x64, arm64 ]
|
||||
kind: [ AppImage, deb, rpm ]
|
||||
type: [ self-contained ]
|
||||
include:
|
||||
@@ -94,6 +94,18 @@ jobs:
|
||||
cpu: x64
|
||||
package-tail: .x86_64
|
||||
package-head: downkyi_
|
||||
- kind: AppImage
|
||||
cpu: arm64
|
||||
package-tail: .aarch64
|
||||
package-head: DownKyi-
|
||||
- kind: deb
|
||||
cpu: arm64
|
||||
package-tail: _arm64
|
||||
package-head: downkyi_
|
||||
- kind: rpm
|
||||
cpu: arm64
|
||||
package-tail: .arm64
|
||||
package-head: downkyi_
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
|
||||
@@ -20,6 +20,10 @@ download_aria2() {
|
||||
save="$save_path/$1/aria2"
|
||||
download_url="https://github.com/abcfy2/aria2-static-build/releases/download/1.37.0/aria2-x86_64-linux-musl_static.zip"
|
||||
;;
|
||||
linux-arm64)
|
||||
save="$save_path/$1/aria2"
|
||||
download_url="https://github.com/abcfy2/aria2-static-build/releases/download/1.37.0/aria2-aarch64-linux-musl_static.zip"
|
||||
;;
|
||||
esac
|
||||
|
||||
curl -kL "$download_url" -o "$download_dir/aria2.zip"
|
||||
|
||||
@@ -36,6 +36,9 @@ download_ffmpeg_linux() {
|
||||
x64)
|
||||
filename=ffmpeg-x86_64-linux-musl_static.zip
|
||||
;;
|
||||
arm64)
|
||||
filename=ffmpeg-aarch64-linux-musl_static.zip
|
||||
;;
|
||||
esac
|
||||
local url="https://github.com/yaobiao131/downkyi-ffmpeg-build/releases/download/continuous/$filename"
|
||||
create_dir "$ffmpeg_save_path/linux-$arch/ffmpeg"
|
||||
|
||||
Reference in New Issue
Block a user