From 7e2108a87ebeea9c6ccd71bee768d12ecd5849da Mon Sep 17 00:00:00 2001 From: Anton Stubenbord Date: Sat, 28 Oct 2023 11:50:20 +0200 Subject: [PATCH] chore: Cleanup scripts --- scripts/install_dependencies_fdroid.sh | 24 ------------------------ scripts/update_translations.sh | 9 ++++----- 2 files changed, 4 insertions(+), 29 deletions(-) delete mode 100644 scripts/install_dependencies_fdroid.sh diff --git a/scripts/install_dependencies_fdroid.sh b/scripts/install_dependencies_fdroid.sh deleted file mode 100644 index e071368..0000000 --- a/scripts/install_dependencies_fdroid.sh +++ /dev/null @@ -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 - diff --git a/scripts/update_translations.sh b/scripts/update_translations.sh index ec3d50b..6173587 100644 --- a/scripts/update_translations.sh +++ b/scripts/update_translations.sh @@ -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/../" -flutter gen-l10n -popd \ No newline at end of file +crowdin download --identity=crowdin_credentials.yml +flutter gen-l10n \ No newline at end of file