fix build
This commit is contained in:
parent
a324731061
commit
791be0583a
31
.github/workflows/build.yml
vendored
31
.github/workflows/build.yml
vendored
@ -121,7 +121,7 @@ jobs:
|
|||||||
|
|
||||||
Linux-build-amd64:
|
Linux-build-amd64:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
name: Build Linux Binary
|
name: Build Linux Amd64
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
@ -163,36 +163,10 @@ jobs:
|
|||||||
name: linux-amd64
|
name: linux-amd64
|
||||||
path: dist/MoviePilot_Amd64
|
path: dist/MoviePilot_Amd64
|
||||||
|
|
||||||
Linux-build-arm64:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: Checkout
|
|
||||||
uses: actions/checkout@v3
|
|
||||||
|
|
||||||
- name: Set Up QEMU
|
|
||||||
uses: docker/setup-qemu-action@v2
|
|
||||||
|
|
||||||
- name: Set Up Buildx
|
|
||||||
uses: docker/setup-buildx-action@v2
|
|
||||||
|
|
||||||
- name: Package through pyinstaller
|
|
||||||
run: |
|
|
||||||
mkdir rootfs
|
|
||||||
docker buildx build --platform linux/arm64 --file ./Dockerfile --build-arg branch=main --output type=local,dest=./rootfs .
|
|
||||||
mkdir dist
|
|
||||||
cp ./rootfs/MoviePilot dist/MoviePilot_Arm64
|
|
||||||
shell: pwsh
|
|
||||||
|
|
||||||
- name: Upload Linux File
|
|
||||||
uses: actions/upload-artifact@v3
|
|
||||||
with:
|
|
||||||
name: linux-arm64
|
|
||||||
path: dist/MoviePilot_Arm64
|
|
||||||
|
|
||||||
Create-release:
|
Create-release:
|
||||||
permissions: write-all
|
permissions: write-all
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: [ Windows-build, Docker-build, Linux-build-amd64, Linux-build-arm64 ]
|
needs: [ Windows-build, Docker-build, Linux-build-amd64]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
@ -211,7 +185,6 @@ jobs:
|
|||||||
mkdir releases
|
mkdir releases
|
||||||
mv ./windows/MoviePilot.exe ./releases/MoviePilot_Win_v${{ env.app_version }}.exe
|
mv ./windows/MoviePilot.exe ./releases/MoviePilot_Win_v${{ env.app_version }}.exe
|
||||||
mv ./linux-amd64/dist/MoviePilot_Amd64 ./releases/MoviePilot_Amd64_v${{ env.app_version }}
|
mv ./linux-amd64/dist/MoviePilot_Amd64 ./releases/MoviePilot_Amd64_v${{ env.app_version }}
|
||||||
mv ./linux-arm64/dist/MoviePilot_Arm64 ./releases/MoviePilot_Arm64_v${{ env.app_version }}
|
|
||||||
|
|
||||||
- name: Create Release
|
- name: Create Release
|
||||||
id: create_release
|
id: create_release
|
||||||
|
Loading…
x
Reference in New Issue
Block a user