-
Notifications
You must be signed in to change notification settings - Fork 16
/
prebuild.sh
47 lines (43 loc) · 2.55 KB
/
prebuild.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#!/bin/bash
# LinShare is an open source filesharing software, part of the LinPKI software
# suite, developed by Linagora.
#
# Copyright (C) 2022 LINAGORA
#
# This program is free software: you can redistribute it and/or modify it under the
# terms of the GNU Affero General Public License as published by the Free Software
# Foundation, either version 3 of the License, or (at your option) any later version,
# provided you comply with the Additional Terms applicable for LinShare software by
# Linagora pursuant to Section 7 of the GNU Affero General Public License,
# subsections (b), (c), and (e), pursuant to which you must notably (i) retain the
# display in the interface of the “LinShare™” trademark/logo, the "Libre & Free" mention,
# the words “You are using the Free and Open Source version of LinShare™, powered by
# Linagora © 2009–2021. Contribute to Linshare R&D by subscribing to an Enterprise
# offer!”. You must also retain the latter notice in all asynchronous messages such as
# e-mails sent with the Program, (ii) retain all hypertext links between LinShare and
# http://www.linshare.org, between linagora.com and Linagora, and (iii) refrain from
# infringing Linagora intellectual property rights over its trademarks and commercial
# brands. Other Additional Terms apply, see
# <http://www.linshare.org/licenses/LinShare-License_AfferoGPL-v3.pdf>
# for more details.
# This program is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
# FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for
# more details.
# You should have received a copy of the GNU Affero General Public License and its
# applicable Additional Terms for LinShare along with this program. If not, see
# <http://www.gnu.org/licenses/> for the GNU Affero General Public License version
# 3 and <http://www.linshare.org/licenses/LinShare-License_AfferoGPL-v3.pdf> for
# the Additional Terms applicable to LinShare software.
echo Pre-build ...
set -e
# debug log
set -x
cd data
flutter pub get && flutter pub run build_runner build --delete-conflicting-outputs
cd ../domain
flutter pub get && flutter pub run build_runner build --delete-conflicting-outputs
cd ..
flutter pub get && \
flutter pub run intl_generator:extract_to_arb --output-dir=./lib/l10n lib/presentation/localizations/app_localizations.dart && \
flutter pub run intl_generator:generate_from_arb --output-dir=lib/l10n --no-use-deferred-loading lib/presentation/localizations/app_localizations.dart lib/l10n/intl*.arb