chore: Cleanup scripts

This commit is contained in:
Anton Stubenbord
2023-10-28 11:50:20 +02:00
parent 93bb38bb10
commit 7e2108a87e
2 changed files with 4 additions and 29 deletions

View File

@@ -1,24 +0,0 @@
#!/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

View File

@@ -4,10 +4,9 @@ set -Eeuo pipefail
__script_dir=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
readonly __script_dir
cd "$__script_dir/../"
echo "Updating source language..."
crowdin download sources --identity=../crowdin_credentials.yml --config ../crowdin.yml --preserve-hierarchy
crowdin download sources --identity=crowdin_credentials.yml --preserve-hierarchy
echo "Updating translations..."
crowdin download --identity=../crowdin_credentials.yml --config ../crowdin.yml
pushd "$__script_dir/../"
crowdin download --identity=crowdin_credentials.yml
flutter gen-l10n
popd