diff --git a/scripts/build-android-apk.sh b/scripts/build-android-apk.sh index 3dfb4e028..33d87436b 100755 --- a/scripts/build-android-apk.sh +++ b/scripts/build-android-apk.sh @@ -1,4 +1,4 @@ -#!/usr/bin/env bash +#!/bin/sh -ve flutter channel stable flutter upgrade flutter pub get diff --git a/scripts/build-android-debug.sh b/scripts/build-android-debug.sh index a361afd64..38134d66a 100755 --- a/scripts/build-android-debug.sh +++ b/scripts/build-android-debug.sh @@ -1,4 +1,4 @@ -#!/usr/bin/env bash +#!/bin/sh -ve flutter channel stable flutter upgrade flutter build apk --debug -v diff --git a/scripts/build-ios.sh b/scripts/build-ios.sh index 9bb4f362b..d2b0515d3 100755 --- a/scripts/build-ios.sh +++ b/scripts/build-ios.sh @@ -1,4 +1,4 @@ -#!/usr/bin/env bash +#!/bin/sh -ve flutter channel stable flutter upgrade flutter clean @@ -7,4 +7,4 @@ cd ios pod install pod update cd .. -flutter build ios --release \ No newline at end of file +flutter build ios --release diff --git a/scripts/build-linux.sh b/scripts/build-linux.sh index b4aaa8cbf..879dea8ef 100755 --- a/scripts/build-linux.sh +++ b/scripts/build-linux.sh @@ -1,7 +1,7 @@ -#!/usr/bin/env bash +#!/bin/sh -ve flutter channel dev flutter upgrade flutter config --enable-linux-desktop flutter clean flutter pub get -flutter build linux --release -v \ No newline at end of file +flutter build linux --release -v diff --git a/scripts/build-macos.sh b/scripts/build-macos.sh index f110fa528..c1dc2948e 100755 --- a/scripts/build-macos.sh +++ b/scripts/build-macos.sh @@ -1,4 +1,4 @@ -#!/usr/bin/env bash +#!/bin/sh -ve flutter channel dev flutter upgrade flutter config --enable-macos-desktop @@ -8,4 +8,4 @@ cd macos pod install pod update cd .. -flutter build macos --release \ No newline at end of file +flutter build macos --release diff --git a/scripts/build-snap.sh b/scripts/build-snap.sh index 9d6e44889..6a3dd8236 100755 --- a/scripts/build-snap.sh +++ b/scripts/build-snap.sh @@ -1,8 +1,8 @@ -#!/usr/bin/env bash +#!/bin/sh -ve 'curl -L $(curl -H "X-Ubuntu-Series: 16" "https://api.snapcraft.io/api/v1/snaps/details/flutter?channel=latest/stable" | jq ".download_url" -r) --output flutter.snap' sudo mkdir -p /snap/flutter sudo unsquashfs -d /snap/flutter/current flutter.snap rm -f flutter.snap sudo ln -sf /snap/flutter/current/flutter.sh /snap/bin/flutter sudo ln -sf /snap/flutter/current/env.sh /snap/bin/env.sh -snapcraft \ No newline at end of file +snapcraft diff --git a/scripts/build-web.sh b/scripts/build-web.sh index 787c07d3d..d6e11a16b 100755 --- a/scripts/build-web.sh +++ b/scripts/build-web.sh @@ -1,4 +1,4 @@ -#!/usr/bin/env bash +#!/bin/sh -ve flutter channel beta flutter upgrade flutter config --enable-web diff --git a/scripts/code_analyze.sh b/scripts/code_analyze.sh index d3ba7b600..54a767557 100755 --- a/scripts/code_analyze.sh +++ b/scripts/code_analyze.sh @@ -1,3 +1,3 @@ -#!/usr/bin/env bash +#!/bin/sh -ve flutter format lib/ test/ test_driver/ --set-exit-if-changed -flutter analyze \ No newline at end of file +flutter analyze diff --git a/scripts/open-mr.sh b/scripts/open-mr.sh index d2d4b7d31..e79dcd821 100755 --- a/scripts/open-mr.sh +++ b/scripts/open-mr.sh @@ -1,4 +1,4 @@ -#!/usr/bin/env bash +#!/bin/sh -ve # source: https://about.gitlab.com/blog/2017/09/05/how-to-automatically-create-a-new-mr-on-gitlab-with-gitlab-ci/ diff --git a/scripts/prepare-android-release.sh b/scripts/prepare-android-release.sh index 5fa4c2856..195e40c9d 100755 --- a/scripts/prepare-android-release.sh +++ b/scripts/prepare-android-release.sh @@ -1,4 +1,4 @@ -#!/usr/bin/env bash +#!/bin/sh -ve cd android echo $FDROID_KEY | base64 --decode --ignore-garbage > key.jks echo "storePassword=${FDROID_KEY_PASS}" >> key.properties @@ -11,4 +11,4 @@ bundle update fastlane bundle exec fastlane set_build_code_internal cd app echo $GOOGLE_SERVICES >> google-services.json -cd ../.. \ No newline at end of file +cd ../.. diff --git a/scripts/prepare-web.sh b/scripts/prepare-web.sh index 2ec48bf57..657031110 100755 --- a/scripts/prepare-web.sh +++ b/scripts/prepare-web.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/sh -ve rm -r assets/js/package cd assets/js/ && curl -L 'https://gitlab.com/famedly/libraries/olm/-/jobs/artifacts/master/download?job=build_js' > olm.zip && cd ../../ cd assets/js/ && unzip olm.zip && cd ../../ diff --git a/scripts/publish-snap-edge.sh b/scripts/publish-snap-edge.sh index 3b5779d4e..08ad00030 100755 --- a/scripts/publish-snap-edge.sh +++ b/scripts/publish-snap-edge.sh @@ -1,6 +1,6 @@ -#!/usr/bin/env bash +#!/bin/sh -ve /bin/bash ./scripts/build-snap.sh echo $SNAPCRAFT_LOGIN_FILE | base64 --decode --ignore-garbage > snapcraft.login snapcraft login --with snapcraft.login snapcraft push --release=edge *.snap -snapcraft logout \ No newline at end of file +snapcraft logout diff --git a/scripts/publish-snap-stable.sh b/scripts/publish-snap-stable.sh index fb58971f7..090f0e694 100755 --- a/scripts/publish-snap-stable.sh +++ b/scripts/publish-snap-stable.sh @@ -1,6 +1,6 @@ -#!/usr/bin/env bash +#!/bin/sh -ve /bin/bash ./scripts/build-snap.sh echo $SNAPCRAFT_LOGIN_FILE | base64 --decode --ignore-garbage > snapcraft.login snapcraft login --with snapcraft.login snapcraft push --release=stable *.snap -snapcraft logout \ No newline at end of file +snapcraft logout diff --git a/scripts/release-playstore-beta.sh b/scripts/release-playstore-beta.sh index c728a9e32..7b7a63057 100755 --- a/scripts/release-playstore-beta.sh +++ b/scripts/release-playstore-beta.sh @@ -1,4 +1,4 @@ -#!/usr/bin/env bash +#!/bin/sh -ve flutter channel stable flutter upgrade flutter pub get @@ -7,4 +7,4 @@ mkdir -p build/android cp build/app/outputs/bundle/release/app-release.aab build/android/ cd android bundle exec fastlane deploy_internal_test -cd .. \ No newline at end of file +cd .. diff --git a/scripts/release-playstore.sh b/scripts/release-playstore.sh index 8d5633ce1..c72318a51 100755 --- a/scripts/release-playstore.sh +++ b/scripts/release-playstore.sh @@ -1,7 +1,7 @@ -#!/usr/bin/env bash +#!/bin/sh -ve cd android bundle install bundle update fastlane echo $PLAYSTORE_DEPLOY_KEY >> keys.json bundle exec fastlane deploy_release -cd .. \ No newline at end of file +cd .. diff --git a/scripts/update-changelog.sh b/scripts/update-changelog.sh index f513e45e5..9bfab7f5b 100755 --- a/scripts/update-changelog.sh +++ b/scripts/update-changelog.sh @@ -1,4 +1,4 @@ -#!/usr/bin/env bash +#!/bin/sh -ve flutter pub global activate changelog export PATH="$PATH":"$HOME/development/flutter/.pub-cache/bin" -changelog -c \ No newline at end of file +changelog -c diff --git a/scripts/update-dependencies.sh b/scripts/update-dependencies.sh index 7fd1f6495..021987687 100755 --- a/scripts/update-dependencies.sh +++ b/scripts/update-dependencies.sh @@ -1,4 +1,4 @@ -#!/usr/bin/env bash +#!/bin/sh -ve flutter pub get flutter pub pub run dapackages:dapackages.dart ./pubspec.yaml -flutter pub get \ No newline at end of file +flutter pub get