Skip to content

Commit

Permalink
Merge pull request #3 from b-editor/support-macos
Browse files Browse the repository at this point in the history
Support macos
  • Loading branch information
yuto-trd authored May 3, 2024
2 parents 43f8e48 + 2587f85 commit c4903e4
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 18 deletions.
25 changes: 9 additions & 16 deletions ja/get-started/1.install.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,20 +53,13 @@ sudo apt install ./beutl_1.0.0-285ubuntu22.04_amd64.deb
> [こちら](https://github.com/shimat/opencvsharp#ubuntu)を参考に `libOpenCvSharpExtern` をビルドしてください。
## macOSの場合
私はmacOSを持っていないため、macOS版のビルド済みバイナリは配布していません。
1. ビルドするには以下のコマンドを実行して下さい。
```shell
# クローン
# --filter=tree:0 をつけたら速くなるかも
git clone https://github.com/b-editor/beutl
git checkout refs/tags/v{version}
cd ./beutl

# ビルドスクリプトを実行可能にする
chmod a+x ./build.sh

# ビルド
./build.sh zip --runtime osx-x64

`Beutl.osx_arm64.app.zip` または `Beutl.osx_x64.app.zip` をダウンロードして、展開します。
以下のような警告が出るはずです。
![](./_images/1.install/macos-gatekeeper.jpg)
これは私がアプリケーションに署名をしていないために、表示される警告です。
これを回避するには以下のコマンドを実行してください。
```sh
xattr -rc Beutl.app
```
2. `beutl/artifacts/beutl-osx-x64-{version}.zip`を展開します。
3. `Linuxの場合`の2番目以降と同じ操作を行ってください。

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 17 additions & 2 deletions ja/get-started/ffmpeg-install.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,22 @@ https://github.com/BtbN/FFmpeg-Builds/releases
共有ライブラリの内、Suffixに`x.xxx`がついているもの以外はシンボリックリンクです。

### macOSの場合
準備中

> [!IMPORTANT]
> この方法はバージョン`1.0.0-preview.6`から使えます。
> [!WARNING]
> Rosettaを使わないでください。
ターミナルで以下のコマンドを実行してHomebrewをインストールします。
```sh
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
```

以下のコマンドを実行してFFmpegをインストールします。
```sh
brew install ffmpeg@6
```

## [FFmpeg配置ツール](https://beutl.beditor.net/store/packages/Beutl.Extensions.FFmpegLocator)を使う

Expand Down Expand Up @@ -103,7 +118,7 @@ https://github.com/BtbN/FFmpeg-Builds/releases
### FFmpegのバージョンの問題
インストール後も __"FFmpegがインストールされていることを確認してください。"__ と表示される場合、
FFmpegのバージョンが間違っている可能性があります。
正しいバージョンは[バージョンマッピング](./extensions/version-mapping.md)からご確認ください。
正しいバージョンは[バージョンマッピング](../extensions/version-mapping.md)からご確認ください。

FFmpeg配置ツールを使用しているにもかかわらず、
メッセージが表示される場合、[こちら](https://github.com/b-editor/Beutl.Extensions.FFmpegLocator/issues)に報告していただけると助かります。

0 comments on commit c4903e4

Please sign in to comment.