mirror of
https://github.com/Xevion/paperless-mobile.git
synced 2025-12-06 09:15:48 -06:00
feat: Update build
This commit is contained in:
11
.github/workflows/create-github-release.yml
vendored
11
.github/workflows/create-github-release.yml
vendored
@@ -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
|
||||
|
||||
|
||||
10
.github/workflows/create_release.yml
vendored
10
.github/workflows/create_release.yml
vendored
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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"],
|
||||
|
||||
24
scripts/install_dependencies_with_submodule.sh
Normal file
24
scripts/install_dependencies_with_submodule.sh
Normal 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
|
||||
|
||||
Reference in New Issue
Block a user