Move scripts to a dedicated directory
(cherry picked from commit df59d6ca54dc5b4bf88f3ee81c2c09cc23d925b7)
This commit is contained in:
Executable
+4
@@ -0,0 +1,4 @@
|
||||
#!/usr/bin/env sh
|
||||
|
||||
set -eux
|
||||
bundle exec fastlane dev
|
||||
Executable
+4
@@ -0,0 +1,4 @@
|
||||
#!/usr/bin/env sh
|
||||
|
||||
set -eux
|
||||
bundle exec fastlane release
|
||||
Executable
+4
@@ -0,0 +1,4 @@
|
||||
#!/usr/bin/env sh
|
||||
|
||||
set -eux
|
||||
flutter build web --profile --verbose --base-href "/${GITHUB_REPOSITORY##*/}/$FOLDER/"
|
||||
Executable
+6
@@ -0,0 +1,6 @@
|
||||
#!/usr/bin/env sh
|
||||
|
||||
set -eux
|
||||
sed -i "s|SERVER_URL=.*|SERVER_URL=https://apisix.upn.integration-open-paas.org/|g" env.file
|
||||
sed -i "s|DOMAIN_REDIRECT_URL=.*|DOMAIN_REDIRECT_URL=https://$GITHUB_REPOSITORY_OWNER.github.io/${GITHUB_REPOSITORY##*/}/$FOLDER|g" env.file
|
||||
echo "URL=https://$GITHUB_REPOSITORY_OWNER.github.io/${GITHUB_REPOSITORY##*/}/$FOLDER" >> $GITHUB_OUTPUT
|
||||
Executable
+36
@@ -0,0 +1,36 @@
|
||||
#!/usr/bin/env bash
|
||||
# fail if any commands fails
|
||||
set -e
|
||||
# debug log
|
||||
set -x
|
||||
|
||||
cd core
|
||||
flutter pub get
|
||||
|
||||
## Install necessary pods
|
||||
# cd ../ios
|
||||
# flutter pub get && pod install
|
||||
|
||||
cd ../model
|
||||
flutter pub get && dart run build_runner build --delete-conflicting-outputs
|
||||
|
||||
cd ../contact
|
||||
flutter pub get && dart run build_runner build --delete-conflicting-outputs
|
||||
|
||||
cd ../forward
|
||||
flutter pub get && dart run build_runner build --delete-conflicting-outputs
|
||||
|
||||
cd ../rule_filter
|
||||
flutter pub get && dart run build_runner build --delete-conflicting-outputs
|
||||
|
||||
cd ../fcm
|
||||
flutter pub get && dart run build_runner build --delete-conflicting-outputs
|
||||
|
||||
cd ../email_recovery
|
||||
flutter pub get && dart run build_runner build --delete-conflicting-outputs
|
||||
|
||||
cd ..
|
||||
flutter pub get \
|
||||
&& dart run build_runner build --delete-conflicting-outputs \
|
||||
&& dart run intl_generator:extract_to_arb --output-dir=./lib/l10n lib/main/localizations/app_localizations.dart \
|
||||
&& dart run intl_generator:generate_from_arb --output-dir=lib/l10n --no-use-deferred-loading lib/main/localizations/app_localizations.dart lib/l10n/intl*.arb
|
||||
Executable
+4
@@ -0,0 +1,4 @@
|
||||
#!/usr/bin/env sh
|
||||
|
||||
echo "$PLAY_STORE_UPLOAD_KEY_BASE64" | base64 --decode > app/keystore.jks
|
||||
echo "$PLAY_STORE_KEY_INFO_BASE64" | base64 --decode > key.properties
|
||||
Executable
+3
@@ -0,0 +1,3 @@
|
||||
#!/usr/bin/env sh
|
||||
|
||||
echo "$FIREBASE_ENV" > ./configurations/env.fcm
|
||||
Executable
+6
@@ -0,0 +1,6 @@
|
||||
#!/usr/bin/env sh
|
||||
|
||||
set -eux
|
||||
|
||||
flutter pub get
|
||||
pod install && pod update
|
||||
Executable
+9
@@ -0,0 +1,9 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -eux
|
||||
|
||||
if [[ "$MODULES" == "default" ]]; then
|
||||
flutter test -r json > test-report-"$MODULES".json
|
||||
else
|
||||
flutter test -r json "$MODULES" > test-report-"$MODULES".json
|
||||
fi
|
||||
Reference in New Issue
Block a user