-
Notifications
You must be signed in to change notification settings - Fork 3
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
16 changed files
with
160 additions
and
93 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 |
---|---|---|
|
@@ -121,55 +121,56 @@ jobs: | |
# .exe | ||
# token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
build_macOS: | ||
name: Bluecherry Client macOS | ||
runs-on: macos-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
submodules: recursive | ||
- uses: subosito/[email protected] | ||
with: | ||
channel: "stable" | ||
architecture: x64 | ||
# cache: true | ||
|
||
- name: Update Pods | ||
working-directory: ./macos/ | ||
run: | | ||
pod repo update | ||
pod cache clean mdk | ||
rm -rf /Pods | ||
rm -rf /Podfile.lock | ||
- 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 | ||
- name: Release | ||
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#example-using-contexts | ||
if: ${{ github.event_name == 'push' }} | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
draft: true | ||
prerelease: false | ||
body: "" | ||
tag_name: "bleeding_edge" | ||
files: | | ||
bluecherry-macos.7z | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Release | ||
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#example-using-contexts | ||
if: startsWith(github.ref, 'refs/tags/') | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
files: | | ||
bluecherry-macos.7z | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
# macOS build is now only available on the mac app store. | ||
# build_macOS: | ||
# name: Bluecherry Client macOS | ||
# runs-on: macos-latest | ||
# steps: | ||
# - name: Checkout | ||
# uses: actions/checkout@v4 | ||
# with: | ||
# token: ${{ secrets.GITHUB_TOKEN }} | ||
# submodules: recursive | ||
# - uses: subosito/[email protected] | ||
# with: | ||
# channel: "stable" | ||
# architecture: x64 | ||
# # cache: true | ||
|
||
# - name: Update Pods | ||
# working-directory: ./macos/ | ||
# run: | | ||
# pod repo update | ||
# pod cache clean mdk | ||
# rm -rf /Pods | ||
# rm -rf /Podfile.lock | ||
|
||
# - 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 | ||
# - name: Release | ||
# # https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#example-using-contexts | ||
# if: ${{ github.event_name == 'push' }} | ||
# uses: softprops/action-gh-release@v1 | ||
# with: | ||
# draft: true | ||
# prerelease: false | ||
# body: "" | ||
# tag_name: "bleeding_edge" | ||
# files: | | ||
# bluecherry-macos.7z | ||
# token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
# - name: Release | ||
# # https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#example-using-contexts | ||
# if: startsWith(github.ref, 'refs/tags/') | ||
# uses: softprops/action-gh-release@v1 | ||
# with: | ||
# files: | | ||
# bluecherry-macos.7z | ||
# token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
build_windows: | ||
name: Bluecherry Client Windows | ||
|
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
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,27 @@ | ||
#!/bin/sh | ||
|
||
# https://docs.flutter.dev/deployment/cd#post-clone-script | ||
# Fail this script if any subcommand fails. | ||
set -e | ||
|
||
# The default execution directory of this script is the ci_scripts directory. | ||
cd $CI_PRIMARY_REPOSITORY_PATH # change working directory to the root of your cloned repo. | ||
|
||
# Install Flutter using git. | ||
git clone https://github.com/flutter/flutter.git --depth 1 -b stable $HOME/flutter | ||
export PATH="$PATH:$HOME/flutter/bin" | ||
|
||
# Install Flutter artifacts for iOS (--ios), or macOS (--macos) platforms. | ||
flutter precache --ios | ||
|
||
# Install Flutter dependencies. | ||
flutter pub get | ||
|
||
# Install CocoaPods using Homebrew. | ||
HOMEBREW_NO_AUTO_UPDATE=1 # disable homebrew's automatic updates. | ||
brew install cocoapods | ||
|
||
# Install CocoaPods dependencies. | ||
cd ios && pod install # run `pod install` in the `ios` directory. | ||
|
||
exit 0 |
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
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
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
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
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
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
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
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
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
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,30 @@ | ||
#!/bin/sh | ||
|
||
# https://docs.flutter.dev/deployment/cd#post-clone-script | ||
# Fail this script if any subcommand fails. | ||
set -e | ||
|
||
# The default execution directory of this script is the ci_scripts directory. | ||
cd $CI_PRIMARY_REPOSITORY_PATH # change working directory to the root of your cloned repo. | ||
|
||
# Install Flutter using git. | ||
git clone https://github.com/flutter/flutter.git --depth 1 -b stable $HOME/flutter | ||
export PATH="$PATH:$HOME/flutter/bin" | ||
|
||
# Install Flutter artifacts for iOS (--ios), or macOS (--macos) platforms. | ||
flutter precache --macos | ||
|
||
# Install Flutter dependencies. | ||
flutter pub get | ||
|
||
# Install CocoaPods using Homebrew. | ||
HOMEBREW_NO_AUTO_UPDATE=1 # disable homebrew's automatic updates. | ||
brew install cocoapods | ||
|
||
# Build for macos | ||
flutter build macos | ||
|
||
# Install CocoaPods dependencies. | ||
cd macos && pod install # run `pod install` in the `macos` directory. | ||
|
||
exit 0 |
Oops, something went wrong.