Skip to content

Commit

Permalink
libmpv1でも動くように
Browse files Browse the repository at this point in the history
  • Loading branch information
4ster1sk committed Nov 19, 2024
1 parent b01c83c commit e3c0950
Showing 1 changed file with 17 additions and 30 deletions.
47 changes: 17 additions & 30 deletions .github/workflows/linux_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,15 @@
name: デプロイ(linux)
on:
workflow_dispatch:
release:
types: [published]
inputs:
job_to_run:
description: "ビルドを行うパッケージ"
required: true
type: choice
options:
- all
- snap
- deb

env:
APP_NAME: 'miria'
Expand All @@ -14,7 +21,8 @@ permissions:

jobs:
build-snap:
name: ビルド(Snap)
name: ビルド(Snap)
if: ${{ github.event.inputs.job_to_run == 'snap' || github.event.inputs.job_to_run == 'all' }}
runs-on: ubuntu-latest
strategy:
matrix:
Expand Down Expand Up @@ -58,8 +66,9 @@ jobs:


build-debs:
name: ビルド(Deb)
runs-on: ubuntu-latest
name: ビルド(Deb)
if: ${{ github.event.inputs.job_to_run == 'deb' || github.event.inputs.job_to_run == 'all' }}
runs-on: ubuntu-22.04
strategy:
matrix:
platform: [amd64]
Expand All @@ -79,33 +88,11 @@ jobs:
- name: Patch for linux build
run: |
sudo apt-get update -y
sudo apt-get install -y ninja-build libgtk-3-dev libsecret-1-dev libstdc++-12-dev nasm
sudo apt-get install -y ninja-build libgtk-3-dev libsecret-1-dev libstdc++-12-dev nasm libmpv-dev
sudo pip3 install meson
- name: Build libmpv
run: |
git clone https://github.com/mpv-player/mpv-build.git
cd mpv-build
sed -i 's|checkout_ffmpeg=master|checkout_ffmpeg=@dcdfd7fb62464beeeb03c24f21713bf3914b9ea4|g' update
sed -i 's|checkout_libplacebo=master|checkout_libplacebo=@ed29e541a55acf28022738440b2a925386292551|g' update
sed -i 's|checkout_mpv=master|checkout_mpv=@140ec21c89d671d392877a7f3b91d67e7d7b9239|g' update
sed -i 's|OPTIONS="--enable-static --disable-shared"|OPTIONS="--enable-shared"|g' scripts/libass-config
sed -i 's|--prefix="$BUILD/build_libs" --libdir="$BUILD/build_libs/lib"||g' scripts/libass-config
sed -i 's|^meson setup build.*||g' scripts/mpv-config
echo -e "\npython3 ./bootstrap.py\n./waf configure --disable-alsa --enable-libmpv-shared\n./waf build" >> scripts/mpv-config
./update
./scripts/libplacebo-config
./scripts/libplacebo-build -j$(nproc)
./scripts/libass-config
sudo make -C libass install -j$(nproc)
./scripts/ffmpeg-config
./scripts/ffmpeg-build -j$(nproc)
./scripts/mpv-config
cd mpv
sudo ./waf install
- run: flutter pub get
# - run: flutter test
- run: flutter test
- run: flutter build linux
- name: Get Build Version
run: |
Expand All @@ -131,7 +118,7 @@ jobs:
version: ${{ env.VERSION }}
arch: "amd64"
package_root: ".debpkg"
depends: "libgtk-3-0, libstdc++6, libx11-6, libmpv2, libsecret-1-0"
depends: "libgtk-3-0, libstdc++6, libx11-6, libmpv1 | libmpv2, libsecret-1-0"

- name: Upload DEB
env:
Expand Down

0 comments on commit e3c0950

Please sign in to comment.