Skip to content

Commit

Permalink
TƯ-1781 Fix ci failed
Browse files Browse the repository at this point in the history
  • Loading branch information
sherlockvn authored and hoangdat committed May 25, 2024
1 parent cb6cbbb commit b531698
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ jobs:
uses: actions/setup-java@v4
with:
distribution: "temurin" # See 'Supported distributions' for available options
java-version: "11"
java-version: "17"

- name: Select Xcode version
if: matrix.os == 'ios'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
uses: actions/setup-java@v4
with:
distribution: "temurin" # See 'Supported distributions' for available options
java-version: "11"
java-version: "17"

- name: Select Xcode version
if: matrix.os == 'ios'
Expand Down
1 change: 1 addition & 0 deletions scripts/build-android-apk.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/usr/bin/env bash
flutter pub get && flutter pub run build_runner build --delete-conflicting-outputs
flutter pub get
flutter build apk --release
mkdir -p build/android
cp build/app/outputs/apk/release/app-release.apk build/android/
1 change: 1 addition & 0 deletions scripts/build-linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@ sudo apt-get install -y clang cmake ninja-build \
flutter config --enable-linux-desktop
flutter clean
flutter pub get && flutter pub run build_runner build --delete-conflicting-outputs
flutter pub get
flutter build linux --release -v
1 change: 1 addition & 0 deletions scripts/build-macos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
flutter config --enable-macos-desktop
flutter clean
flutter pub get && flutter pub run build_runner build --delete-conflicting-outputs
flutter pub get
cd macos
bundle exec fastlane sync_dev_id
pod install --repo-update
Expand Down
1 change: 1 addition & 0 deletions scripts/build-web.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@ flutter config --enable-web
flutter clean
flutter pub get
flutter pub run build_runner build --delete-conflicting-outputs
flutter pub get
flutter build web --release --verbose --source-maps --base-href="/web/"
cp config.sample.json ./build/web/config.json
1 change: 1 addition & 0 deletions scripts/build-windows.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ echo "Building for Windows."
flutter config --enable-windows-desktop
flutter clean
flutter pub get && flutter pub run build_runner build --delete-conflicting-outputs
flutter pub get
flutter build windows --release -v

# Building libolm
Expand Down
1 change: 1 addition & 0 deletions scripts/package-windows.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ curl -OL "https://files.jrsoftware.org/is/6/innosetup-6.2.2.exe"
./innosetup-6.2.2.exe //verysilent

echo "Packaging."
flutter pub get
flutter pub global run flutter_distributor:main.dart package --platform windows --targets exe --skip-clean --flutter-build-args="release"
1 change: 1 addition & 0 deletions scripts/prepare-ios.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/usr/bin/env bash
flutter pub get && flutter pub run build_runner build --delete-conflicting-outputs
flutter pub get
# Use alternate beautifier
brew install xcbeautify
cd ios
Expand Down
1 change: 1 addition & 0 deletions scripts/release-playstore-beta.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/usr/bin/env bash
flutter pub get && flutter pub run build_runner build --delete-conflicting-outputs
flutter pub get
flutter build appbundle --release
cd android
bundle exec fastlane deploy_internal_test

0 comments on commit b531698

Please sign in to comment.