#!/bin/bash
system_name=$(uname -s)
if [ "${system_name}" = "Linux" ]; then
    sed -i 's/# biyi_advanced_features:/biyi_advanced_features:/g' pubspec.yaml
    sed -i 's/#   path: ..\/..\/..\/biyi_advanced_features/  path: ..\/..\/..\/biyi_advanced_features/g' pubspec.yaml
elif [ "${system_name}" = "Darwin" ]; then
    sed -i '' 's/# biyi_advanced_features:/biyi_advanced_features:/g' pubspec.yaml
    sed -i '' 's/#   path: ..\/..\/..\/biyi_advanced_features/  path: ..\/..\/..\/biyi_advanced_features/g' pubspec.yaml
elif [ "${system_name}" = "MINGW32_NT-6.2" ] || [ "${system_name}" = "CYGWIN_NT-6.1" ]; then
    echo Do something
fi

melos bs
flutter_distributor release --name prod --no-version-check
