-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
35 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,9 +17,6 @@ jobs: | |
fail-fast: false | ||
matrix: | ||
build: | ||
- name: "Gahara" | ||
platform: "linux/amd64" | ||
os: "ubuntu-latest" | ||
- name: "Gahara" | ||
platform: "darwin/universal" | ||
os: "macos-latest" | ||
|
@@ -31,6 +28,12 @@ jobs: | |
with: | ||
submodules: recursive | ||
|
||
- name: Download FFmpeg for macOS | ||
if: matrix.build.platform == 'darwin/universal' | ||
run: | | ||
chmod +x hack/setup.sh | ||
./hack/setup.sh {{matrix.build.platform}} | ||
- name: Build wails | ||
uses: dAppServer/[email protected] | ||
id: build | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
.PHONY: ffmpeg | ||
ffmpeg: | ||
chmod +x ./hack/setup.sh | ||
./hack/setup.sh darwin/universal | ||
|
||
|
||
.PHONY: cleanup | ||
cleanup: | ||
rm -rf ./resources/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/bin/bash | ||
|
||
PLATFORM=$1 | ||
|
||
if [[ "$PLATFORM" == "darwin/universal" ]]; then | ||
echo "Setting up FFmpeg for macOS" | ||
curl -O https://evermeet.cx/ffmpeg/ffmpeg-115960-g3a5202d026.zip | ||
unzip ffmpeg-115960-g3a5202d026.zip | ||
mkdir -p resources/darwin/ | ||
mv ffmpeg resources/darwin/ffmpeg | ||
chmod +x resources/darwin/ffmpeg | ||
rm -rf ffmpeg-115960-g3a5202d026.zip | ||
elif [[ "$PLATFORM" == "linux/amd64" ]]; then | ||
echo "Setting up FFmpeg for Linux" | ||
elif [[ "$PLATFORM" == "windows" ]]; then | ||
echo "Setting up FFmpeg for Windows" | ||
else | ||
echo "Unsupported platform: $PLATFORM" | ||
exit 1 | ||
fi |
Binary file not shown.