From c24da415052b2089e1ca0d7ff68b49f6c84feaea Mon Sep 17 00:00:00 2001 From: validcube Date: Sat, 11 Nov 2023 17:14:54 +0700 Subject: [PATCH] refactor: replace deprecated command --- .github/workflows/pr-build.yml | 2 +- .github/workflows/release-build.yml | 2 +- README.md | 2 +- docs/4_building.md | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/pr-build.yml b/.github/workflows/pr-build.yml index 8424eff4..c65a4673 100644 --- a/.github/workflows/pr-build.yml +++ b/.github/workflows/pr-build.yml @@ -33,7 +33,7 @@ jobs: - name: Install Flutter dependencies run: flutter pub get - name: Generate files with Builder - run: flutter packages pub run build_runner build --delete-conflicting-outputs + run: dart run build_runner build --delete-conflicting-outputs - name: Build with Flutter env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/release-build.yml b/.github/workflows/release-build.yml index 94f2921d..d8f3d745 100644 --- a/.github/workflows/release-build.yml +++ b/.github/workflows/release-build.yml @@ -23,7 +23,7 @@ jobs: - name: Set up Flutter run: flutter pub get - name: Generate files with Builder - run: flutter packages pub run build_runner build --delete-conflicting-outputs + run: dart run build_runner build --delete-conflicting-outputs - name: Build with Flutter env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/README.md b/README.md index 89f41ea6..7e872198 100644 --- a/README.md +++ b/README.md @@ -31,5 +31,5 @@ We're accepting translations on [Crowdin](https://translate.revanced.app). 3. Add your GitHub token in gradle.properties like [this](/docs/4_building.md) 4. Open the project in terminal 5. Run `flutter pub get` in terminal -6. Then `flutter packages pub run build_runner build --delete-conflicting-outputs` (Must be done on each git pull) +6. Then `dart run build_runner build --delete-conflicting-outputs` (Must be done on each git pull) 7. To build release APK run `flutter build apk` diff --git a/docs/4_building.md b/docs/4_building.md index b3904c50..fec5b7e9 100644 --- a/docs/4_building.md +++ b/docs/4_building.md @@ -18,7 +18,7 @@ This page will guide you through building ReVanced Manager from source. 4. Delete conflicting outputs ```sh - flutter packages pub run build_runner build --delete-conflicting-outputs + dart run build_runner build --delete-conflicting-outputs ``` > [!Note]