1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- [tasks.flowy-macos]
- dependencies = ["flowy-sdk-build"]
- run_task = { name = ["flutter-build", "copy-to-product"] }
- script_runner = "@shell"
- [tasks.flutter-build]
- script = [
- """
- cd app_flowy/
- # flutter clean
- # flutter pub get
- # flutter build ${CROSS_PLATFORM} --${BUILD_FLAG}
- """,
- ]
- script_runner = "@shell"
- [tasks.copy-to-product]
- script = [
- """
- product_path=${CARGO_MAKE_WORKSPACE_WORKING_DIRECTORY}/app_flowy/product
- output_path=${product_path}/${FLUTTER_OUTPUT_DIR}
- if [ -d "${output_path}" ]; then
- rm -rf ${output_path}/
- fi
- cd ${product_path}
- mkdir ${FLUTTER_OUTPUT_DIR}
- cp -R ${CARGO_MAKE_WORKSPACE_WORKING_DIRECTORY}/app_flowy/build/${CROSS_PLATFORM}/Build/Products/${FLUTTER_OUTPUT_DIR}/app_flowy.app \
- ${output_path}/app_flowy.app
- """,
- ]
- script_runner = "@shell"
- [tasks.freeze_setup]
- script = [
- """
- flutter clean
- flutter pub get
- flutter pub run build_runner build --delete-conflicting-outputs
- """,
- ]
- script_runner = "@shell"
- [tasks.freeze_watch]
- script = [
- """
- flutter pub run build_runner watch
- """,
- ]
- script_runner = "@shell"
- [tasks.add_platform]
- description = "Add platform support"
- script = ["""
- flutter create --template=plugin --platforms=${@} .
- """]
- script_runner = "@shell"
|