fix: Update build

This commit is contained in:
Anton Stubenbord
2023-10-26 11:26:15 +02:00
parent 53919dc6d8
commit 300a0be00a
5 changed files with 27 additions and 13 deletions

View File

@@ -29,7 +29,10 @@ jobs:
fetch-depth: 0
submodules: recursive
- run: flutter/bin/flutter doctor -v
- name: Set FLUTTER_ROOT environment variable
run: echo "FLUTTER_ROOT=$(pwd)/flutter/bin" >> $GITHUB_ENV
- run: $FLUTTER_ROOT/flutter doctor -v
- name: Setup signing config
uses: ./.github/actions/setup-android-signing-config

View File

@@ -38,7 +38,13 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v3
with:
submodules: true
fetch-depth: 0
submodules: recursive
- name: Set FLUTTER_ROOT environment variable
run: echo "FLUTTER_ROOT=$(pwd)/flutter/bin" >> $GITHUB_ENV
- run: $FLUTTER_ROOT/flutter doctor -v
- name: Setup signing config
uses: ./.github/actions/setup-android-signing-config

View File

@@ -33,7 +33,13 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v3
with:
submodules: true
fetch-depth: 0
submodules: recursive
- name: Set FLUTTER_ROOT environment variable
run: echo "FLUTTER_ROOT=$(pwd)/flutter/bin" >> $GITHUB_ENV
- run: $FLUTTER_ROOT/flutter doctor -v
- name: Setup signing config
uses: ./.github/actions/setup-android-signing-config

View File

@@ -25,7 +25,7 @@ platform :android do |options|
lane :publish_in_play_store do |options|
release_status = (options[:is_draft] ? "draft" : "completed")
track = (options[:track])
sh "flutter/bin/flutter build appbundle -v"
sh "$FLUTTER_ROOT/flutter build appbundle -v"
upload_to_play_store(
track: track,
release_status: release_status,
@@ -47,8 +47,8 @@ platform :android do |options|
desc "Builds apks and creates a new release on GitHub"
lane :github do |options|
sh "flutter/bin/flutter build apk --split-per-abi --release"
sh "flutter/bin/flutter build apk --release"
sh "$FLUTTER_ROOT/flutter build apk --split-per-abi --release"
sh "$FLUTTER_ROOT/flutter build apk --release"
set_github_release(
repository_name: "astubenbord/paperless-mobile",
api_token: ENV["GH_ACCESS_TOKEN"],

View File

@@ -8,17 +8,16 @@ readonly __script_dir
pushd "$__script_dir/../"
pushd packages/paperless_api
../../flutter/bin/flutter packages pub get
../../flutter/bin/dart run build_runner build --delete-conflicting-outputs
$FLUTTER_ROOT/flutter packages pub get
$FLUTTER_ROOT/dart run build_runner build --delete-conflicting-outputs
popd
pushd packages/mock_server
../../flutter/bin/flutter packages pub get
$FLUTTER_ROOT/flutter packages pub get
popd
flutter/bin/flutter packages pub get
flutter/bin/flutter gen-l10n
flutter/bin/dart run build_runner build --delete-conflicting-outputs
$FLUTTER_ROOT/flutter packages pub get
$FLUTTER_ROOT/dart run build_runner build --delete-conflicting-outputs
$FLUTTER_ROOT/flutter gen-l10n
popd