feat: Update build

This commit is contained in:
Anton Stubenbord
2023-10-25 19:02:07 +02:00
parent b1435ba583
commit 1842309363
5 changed files with 36 additions and 26 deletions

View File

@@ -25,13 +25,10 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v3
- name: Clone flutter repository
uses: subosito/flutter-action@v2
with:
flutter-version: '3.13.3'
channel: stable
- run: flutter doctor -v
submodules: true
- run: flutter/bin/flutter doctor -v
- name: Setup signing config
uses: ./.github/actions/setup-android-signing-config
@@ -44,7 +41,7 @@ jobs:
- name: Get packages and run codegen
run: |
bash install_dependencies.sh
bash install_dependencies_with_submodule.sh
bash update_changelogs.sh
working-directory: scripts

View File

@@ -30,7 +30,6 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Extract branch name
shell: bash
run: echo "branch=$(echo ${GITHUB_REF#refs/heads/})" >>$GITHUB_OUTPUT
@@ -38,13 +37,8 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v3
- name: Clone flutter repository
uses: subosito/flutter-action@v2
with:
flutter-version: '3.13.3'
channel: stable
- run: flutter doctor -v
submodules: true
- name: Setup signing config
uses: ./.github/actions/setup-android-signing-config
@@ -57,7 +51,7 @@ jobs:
- name: Get packages and run codegen
run: |
bash install_dependencies.sh
bash install_dependencies_with_submodule.sh
bash update_changelogs.sh
working-directory: scripts

View File

@@ -32,13 +32,8 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v3
- name: Clone flutter repository
uses: subosito/flutter-action@v2
with:
flutter-version: '3.13.3'
channel: stable
- run: flutter doctor -v
submodules: true
- name: Setup signing config
uses: ./.github/actions/setup-android-signing-config
@@ -51,7 +46,7 @@ jobs:
- name: Get packages and run codegen
run: |
bash install_dependencies.sh
bash install_dependencies_with_submodule.sh
bash update_changelogs.sh
working-directory: scripts

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 build appbundle -v"
sh "flutter/bin/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 build apk --split-per-abi --release"
sh "flutter build apk --release"
sh "flutter/bin/flutter build apk --split-per-abi --release"
sh "flutter/bin/flutter build apk --release"
set_github_release(
repository_name: "astubenbord/paperless-mobile",
api_token: ENV["GH_ACCESS_TOKEN"],

View File

@@ -0,0 +1,24 @@
#!/usr/bin/env bash
set -Eeuo pipefail
__script_dir=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
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
popd
pushd packages/mock_server
flutter/bin/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
popd