mirror of
https://github.com/Xevion/paperless-mobile.git
synced 2025-12-07 07:15:47 -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
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Clone flutter repository
|
|
||||||
uses: subosito/flutter-action@v2
|
|
||||||
with:
|
with:
|
||||||
flutter-version: '3.13.3'
|
submodules: true
|
||||||
channel: stable
|
|
||||||
- run: flutter doctor -v
|
- run: flutter/bin/flutter doctor -v
|
||||||
|
|
||||||
- name: Setup signing config
|
- name: Setup signing config
|
||||||
uses: ./.github/actions/setup-android-signing-config
|
uses: ./.github/actions/setup-android-signing-config
|
||||||
@@ -44,7 +41,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Get packages and run codegen
|
- name: Get packages and run codegen
|
||||||
run: |
|
run: |
|
||||||
bash install_dependencies.sh
|
bash install_dependencies_with_submodule.sh
|
||||||
bash update_changelogs.sh
|
bash update_changelogs.sh
|
||||||
working-directory: scripts
|
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
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
|
|
||||||
- name: Extract branch name
|
- name: Extract branch name
|
||||||
shell: bash
|
shell: bash
|
||||||
run: echo "branch=$(echo ${GITHUB_REF#refs/heads/})" >>$GITHUB_OUTPUT
|
run: echo "branch=$(echo ${GITHUB_REF#refs/heads/})" >>$GITHUB_OUTPUT
|
||||||
@@ -38,13 +37,8 @@ jobs:
|
|||||||
|
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Clone flutter repository
|
|
||||||
uses: subosito/flutter-action@v2
|
|
||||||
with:
|
with:
|
||||||
flutter-version: '3.13.3'
|
submodules: true
|
||||||
channel: stable
|
|
||||||
- run: flutter doctor -v
|
|
||||||
|
|
||||||
- name: Setup signing config
|
- name: Setup signing config
|
||||||
uses: ./.github/actions/setup-android-signing-config
|
uses: ./.github/actions/setup-android-signing-config
|
||||||
@@ -57,7 +51,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Get packages and run codegen
|
- name: Get packages and run codegen
|
||||||
run: |
|
run: |
|
||||||
bash install_dependencies.sh
|
bash install_dependencies_with_submodule.sh
|
||||||
bash update_changelogs.sh
|
bash update_changelogs.sh
|
||||||
working-directory: scripts
|
working-directory: scripts
|
||||||
|
|
||||||
|
|||||||
@@ -32,13 +32,8 @@ jobs:
|
|||||||
|
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Clone flutter repository
|
|
||||||
uses: subosito/flutter-action@v2
|
|
||||||
with:
|
with:
|
||||||
flutter-version: '3.13.3'
|
submodules: true
|
||||||
channel: stable
|
|
||||||
- run: flutter doctor -v
|
|
||||||
|
|
||||||
- name: Setup signing config
|
- name: Setup signing config
|
||||||
uses: ./.github/actions/setup-android-signing-config
|
uses: ./.github/actions/setup-android-signing-config
|
||||||
@@ -51,7 +46,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Get packages and run codegen
|
- name: Get packages and run codegen
|
||||||
run: |
|
run: |
|
||||||
bash install_dependencies.sh
|
bash install_dependencies_with_submodule.sh
|
||||||
bash update_changelogs.sh
|
bash update_changelogs.sh
|
||||||
working-directory: scripts
|
working-directory: scripts
|
||||||
|
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ platform :android do |options|
|
|||||||
lane :publish_in_play_store do |options|
|
lane :publish_in_play_store do |options|
|
||||||
release_status = (options[:is_draft] ? "draft" : "completed")
|
release_status = (options[:is_draft] ? "draft" : "completed")
|
||||||
track = (options[:track])
|
track = (options[:track])
|
||||||
sh "flutter build appbundle -v"
|
sh "flutter/bin/flutter build appbundle -v"
|
||||||
upload_to_play_store(
|
upload_to_play_store(
|
||||||
track: track,
|
track: track,
|
||||||
release_status: release_status,
|
release_status: release_status,
|
||||||
@@ -47,8 +47,8 @@ platform :android do |options|
|
|||||||
|
|
||||||
desc "Builds apks and creates a new release on GitHub"
|
desc "Builds apks and creates a new release on GitHub"
|
||||||
lane :github do |options|
|
lane :github do |options|
|
||||||
sh "flutter build apk --split-per-abi --release"
|
sh "flutter/bin/flutter build apk --split-per-abi --release"
|
||||||
sh "flutter build apk --release"
|
sh "flutter/bin/flutter build apk --release"
|
||||||
set_github_release(
|
set_github_release(
|
||||||
repository_name: "astubenbord/paperless-mobile",
|
repository_name: "astubenbord/paperless-mobile",
|
||||||
api_token: ENV["GH_ACCESS_TOKEN"],
|
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