Skip to content

Commit

Permalink
fix: Update build
Browse files Browse the repository at this point in the history
  • Loading branch information
astubenbord committed Oct 26, 2023
1 parent 53919dc commit 300a0be
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 13 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/create-github-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/create_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/release-deploy-play-store.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions android/fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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"],
Expand Down
13 changes: 6 additions & 7 deletions scripts/install_dependencies_with_submodule.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 300a0be

Please sign in to comment.