Skip to content
Snippets Groups Projects
run.sh 209 B
Newer Older
  • Learn to ignore specific revisions
  • Markin Igor's avatar
    Markin Igor committed
    #!/usr/bin/env bash
    
    flavor='development'
    entryPoint='main-dev.dart'
    
    if [[ $1 == 'production' ]]
    then
        flavor='production'
        entryPoint='main.dart'
    fi
    
    flutter run --flavor ${flavor} -t lib/${entryPoint}