From 086e2f38bac86afe7a635e0ff36c1ca2b9a1afdd Mon Sep 17 00:00:00 2001 From: Bruno D'Luka Date: Wed, 6 Dec 2023 17:51:33 -0300 Subject: [PATCH] feat: add macOS ci build --- .github/workflows/build.yml | 24 ++++++++++++++++++++++-- README.md | 4 ++-- 2 files changed, 24 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index dace64e4..f25200f7 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -87,8 +87,8 @@ jobs: - run: flutter gen-l10n - run: flutter pub get - - run: flutter build ios --verbose --release --no-codesign - - run: flutter build ipa --verbose --release --no-codesign + - run: flutter build ios --verbose --no-codesign + - run: flutter build ipa --verbose --no-codesign # App should be published with TestFlight # - name: Release @@ -112,6 +112,26 @@ jobs: # .exe # token: ${{ secrets.GITHUB_TOKEN }} + build_macOS: + name: Bluecherry Client macOS + runs-on: macos-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + with: + token: ${{ secrets.GITHUB_TOKEN }} + submodules: recursive + - uses: subosito/flutter-action@v2.8.0 + with: + channel: "master" + architecture: x64 + # cache: true + + - run: flutter gen-l10n + - run: flutter pub get + - run: flutter build macos --verbose + - run: 7z a bluecherry-macos.7z build/macos/Build/Products/Release/unity.app + build_windows: name: Bluecherry Client Windows runs-on: windows-latest diff --git a/README.md b/README.md index 95243b7a..007a9771 100644 --- a/README.md +++ b/README.md @@ -29,7 +29,7 @@ This project & work under this repository is licensed under [GNU General Public | Android | iOS | Windows | GNU/Linux | MacOS | | ------- | --- | ------- | ----- | ----- | | [arm64 `.apk`](https://github.com/bluecherrydvr/unity/releases/download/bleeding_edge/bluecherry-android-arm64-v8a-release.apk) | [App Store](https://apps.apple.com/us/app/bluecherry-mobile/id1555805139) | [Windows Setup](https://github.com/bluecherrydvr/unity/releases/download/bleeding_edge/bluecherry-windows-setup.exe) | [AppImage](https://github.com/bluecherrydvr/unity/releases/download/bleeding_edge/Bluecherry-latest.AppImage) | 🚧 **SOON** ~~[App Store](https://github.com/bluecherrydvr/unity/issues/112)~~ | -| [armabi `.apk`](https://github.com/bluecherrydvr/unity/releases/download/bleeding_edge/bluecherry-android-armeabi-v7a-release.apk) | | 🚧 **SOON** ~~`winget install bluecherry`~~ | [Ubuntu/Debian `.deb`](https://github.com/bluecherrydvr/unity/releases/download/bleeding_edge/bluecherry-linux-x86_64.deb) | | +| [armabi `.apk`](https://github.com/bluecherrydvr/unity/releases/download/bleeding_edge/bluecherry-android-armeabi-v7a-release.apk) | | 🚧 **SOON** ~~`winget install bluecherry`~~ | [Ubuntu/Debian `.deb`](https://github.com/bluecherrydvr/unity/releases/download/bleeding_edge/bluecherry-linux-x86_64.deb) | [Executable `.app`](https://github.com/bluecherrydvr/unity/releases/download/bleeding_edge/bluecherry-macos.7z) | | [x86_64 `.apk`](https://github.com/bluecherrydvr/unity/releases/download/bleeding_edge/bluecherry-android-x86_64-release.apk) | | 🚧 **SOON** ~~Microsoft Store~~ | [Raw Executable `.tar.gz`](https://github.com/bluecherrydvr/unity/releases/download/bleeding_edge/bluecherry-linux-x86_64.tar.gz) | | | 🚧 **SOON** ~~Play Store~~ | | | [Fedora/Red Hat Linux `.rpm`](https://github.com/bluecherrydvr/unity/releases/download/bleeding_edge/bluecherry-linux-x86_64.rpm) | | @@ -152,7 +152,7 @@ git clone https://github.com/bluecherrydvr/unity cd unity flutter pub get flutter gen-l10n -flutter build [linux|windows|android|ios] +flutter build [linux|windows|macos|android|ios] ``` The automated build process is done using GitHub Actions. You may find the workflow [here](.github/workflows/main.yml). The workflow builds the app for all supported platforms & uploads the artifacts to the release page.