mirror of
https://github.com/Xevion/paperless-mobile.git
synced 2025-12-06 17:15:50 -06:00
feat: Make install_dependencies.sh script more robust
This commit modifies the dependencies installer script to make it more robust, meaning that it works even when invoked from other directories than `scripts/`.
This commit is contained in:
@@ -1,12 +1,23 @@
|
|||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
pushd ../
|
set -Eeuo pipefail
|
||||||
|
|
||||||
|
__script_dir=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
|
||||||
|
readonly __script_dir
|
||||||
|
|
||||||
|
pushd "$__script_dir/../"
|
||||||
|
|
||||||
pushd packages/paperless_api
|
pushd packages/paperless_api
|
||||||
flutter packages pub get
|
flutter packages pub get
|
||||||
dart run build_runner build --delete-conflicting-outputs
|
dart run build_runner build --delete-conflicting-outputs
|
||||||
popd
|
popd
|
||||||
|
|
||||||
pushd packages/mock_server
|
pushd packages/mock_server
|
||||||
flutter packages pub get
|
flutter packages pub get
|
||||||
popd
|
popd
|
||||||
|
|
||||||
flutter packages pub get
|
flutter packages pub get
|
||||||
flutter gen-l10n
|
flutter gen-l10n
|
||||||
dart run build_runner build --delete-conflicting-outputs
|
dart run build_runner build --delete-conflicting-outputs
|
||||||
|
|
||||||
|
popd
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user