| 
									
										
										
										
											2021-11-17 14:17:46 +08:00
										 |  |  | [tasks.appflowy] | 
					
						
							|  |  |  | mac_alias = "appflowy-macos" | 
					
						
							|  |  |  | windows_alias = "appflowy-windows" | 
					
						
							| 
									
										
										
										
											2021-11-19 11:13:07 +08:00
										 |  |  | linux_alias = "appflowy-linux" | 
					
						
							| 
									
										
										
										
											2021-11-04 16:43:12 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-11-17 14:17:46 +08:00
										 |  |  | [tasks.appflowy-macos] | 
					
						
							| 
									
										
										
										
											2023-02-02 23:02:49 +08:00
										 |  |  | dependencies = ["appflowy-core-release"] | 
					
						
							|  |  |  | run_task = { name = [ | 
					
						
							|  |  |  |   "code_generation", | 
					
						
							|  |  |  |   "flutter-build", | 
					
						
							|  |  |  |   "copy-to-product", | 
					
						
							|  |  |  | ] } | 
					
						
							| 
									
										
										
										
											2021-11-04 18:03:36 +08:00
										 |  |  | script_runner = "@shell" | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-08-06 15:06:43 +07:00
										 |  |  | [tasks.appflowy-macos-universal] | 
					
						
							|  |  |  | run_task = { name = [ | 
					
						
							|  |  |  |   "code_generation", | 
					
						
							|  |  |  |   "flutter-build", | 
					
						
							|  |  |  |   "copy-to-product", | 
					
						
							|  |  |  | ] } | 
					
						
							|  |  |  | script_runner = "@shell" | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-11-17 14:17:46 +08:00
										 |  |  | [tasks.appflowy-windows] | 
					
						
							| 
									
										
										
										
											2023-02-02 23:02:49 +08:00
										 |  |  | dependencies = ["appflowy-core-release"] | 
					
						
							|  |  |  | run_task = { name = [ | 
					
						
							|  |  |  |   "code_generation", | 
					
						
							|  |  |  |   "set-app-version", | 
					
						
							|  |  |  |   "flutter-build", | 
					
						
							|  |  |  |   "copy-to-product", | 
					
						
							|  |  |  | ] } | 
					
						
							| 
									
										
										
										
											2021-11-04 18:03:36 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-11-19 11:13:07 +08:00
										 |  |  | [tasks.appflowy-linux] | 
					
						
							| 
									
										
										
										
											2023-02-02 23:02:49 +08:00
										 |  |  | dependencies = ["appflowy-core-release"] | 
					
						
							|  |  |  | run_task = { name = [ | 
					
						
							|  |  |  |   "code_generation", | 
					
						
							|  |  |  |   "set-app-version", | 
					
						
							|  |  |  |   "flutter-build", | 
					
						
							|  |  |  |   "copy-to-product", | 
					
						
							|  |  |  |   "create-release-archive", | 
					
						
							|  |  |  | ] } | 
					
						
							| 
									
										
										
										
											2021-11-19 11:13:07 +08:00
										 |  |  | script_runner = "@shell" | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-10-25 23:33:46 +08:00
										 |  |  | [tasks.appflowy-ios] | 
					
						
							|  |  |  | dependencies = ["appflowy-core-dev-ios"] | 
					
						
							|  |  |  | run_task = { name = [ | 
					
						
							|  |  |  |   "code_generation", | 
					
						
							|  |  |  |   "set-app-version", | 
					
						
							|  |  |  |   "flutter-build-ios", | 
					
						
							|  |  |  |   "copy-to-product-mobile", | 
					
						
							|  |  |  | ] } | 
					
						
							|  |  |  | script_runner = "@shell" | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | [tasks.appflowy-android] | 
					
						
							|  |  |  | dependencies = ["appflowy-core-dev-android"] | 
					
						
							|  |  |  | run_task = { name = [ | 
					
						
							|  |  |  |   "code_generation", | 
					
						
							|  |  |  |   "set-app-version", | 
					
						
							|  |  |  |   "flutter-build-android", | 
					
						
							| 
									
										
										
										
											2023-12-08 14:49:06 +07:00
										 |  |  |   "copy-to-product-android", | 
					
						
							| 
									
										
										
										
											2023-10-25 23:33:46 +08:00
										 |  |  | ] } | 
					
						
							|  |  |  | script_runner = "@shell" | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-11-20 11:41:06 +08:00
										 |  |  | [tasks.appflowy-dev] | 
					
						
							|  |  |  | mac_alias = "appflowy-macos-dev" | 
					
						
							|  |  |  | windows_alias = "appflowy-windows-dev" | 
					
						
							|  |  |  | linux_alias = "appflowy-linux-dev" | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-07-21 14:53:57 +07:00
										 |  |  | [tasks.appflowy-ios-dev] | 
					
						
							|  |  |  | dependencies = ["appflowy-core-dev-ios"] | 
					
						
							|  |  |  | run_task = { name = [ | 
					
						
							|  |  |  |   "code_generation", | 
					
						
							| 
									
										
										
										
											2023-10-19 09:55:23 +08:00
										 |  |  |   "flutter-build-ios", | 
					
						
							|  |  |  | ] } | 
					
						
							|  |  |  | script_runner = "@shell" | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | [tasks.appflowy-android-dev] | 
					
						
							|  |  |  | dependencies = ["appflowy-core-dev-android"] | 
					
						
							|  |  |  | run_task = { name = [ | 
					
						
							|  |  |  |   "code_generation", | 
					
						
							|  |  |  |   "flutter-build-android", | 
					
						
							| 
									
										
										
										
											2023-07-21 14:53:57 +07:00
										 |  |  | ] } | 
					
						
							|  |  |  | script_runner = "@shell" | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-12-29 11:17:50 +08:00
										 |  |  | [tasks.appflowy-android-dev-ci] | 
					
						
							| 
									
										
										
										
											2024-03-05 17:20:27 +08:00
										 |  |  | dependencies = ["appflowy-core-dev-android-ci"] | 
					
						
							| 
									
										
										
										
											2023-12-29 11:17:50 +08:00
										 |  |  | run_task = { name = [ | 
					
						
							|  |  |  |   "code_generation", | 
					
						
							| 
									
										
										
										
											2024-03-05 17:20:27 +08:00
										 |  |  |   "flutter-build-android-ci", | 
					
						
							| 
									
										
										
										
											2023-12-29 11:17:50 +08:00
										 |  |  | ] } | 
					
						
							|  |  |  | script_runner = "@shell" | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-11-20 11:41:06 +08:00
										 |  |  | [tasks.appflowy-macos-dev] | 
					
						
							| 
									
										
										
										
											2023-02-02 23:02:49 +08:00
										 |  |  | dependencies = ["appflowy-core-dev"] | 
					
						
							|  |  |  | run_task = { name = [ | 
					
						
							|  |  |  |   "code_generation", | 
					
						
							|  |  |  |   "flutter-build", | 
					
						
							|  |  |  |   "copy-to-product", | 
					
						
							|  |  |  | ] } | 
					
						
							| 
									
										
										
										
											2021-11-20 11:41:06 +08:00
										 |  |  | script_runner = "@shell" | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | [tasks.appflowy-windows-dev] | 
					
						
							| 
									
										
										
										
											2023-02-02 23:02:49 +08:00
										 |  |  | dependencies = ["appflowy-core-dev"] | 
					
						
							|  |  |  | run_task = { name = [ | 
					
						
							|  |  |  |   "code_generation", | 
					
						
							|  |  |  |   "flutter-build", | 
					
						
							|  |  |  |   "copy-to-product", | 
					
						
							|  |  |  | ] } | 
					
						
							| 
									
										
										
										
											2021-11-20 11:41:06 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  | [tasks.appflowy-linux-dev] | 
					
						
							| 
									
										
										
										
											2023-02-02 23:02:49 +08:00
										 |  |  | dependencies = ["appflowy-core-dev"] | 
					
						
							|  |  |  | run_task = { name = [ | 
					
						
							|  |  |  |   "code_generation", | 
					
						
							|  |  |  |   "flutter-build", | 
					
						
							|  |  |  |   "copy-to-product", | 
					
						
							|  |  |  | ] } | 
					
						
							| 
									
										
										
										
											2021-11-20 11:41:06 +08:00
										 |  |  | script_runner = "@shell" | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-10-23 17:47:11 +03:30
										 |  |  | [tasks.appflowy-make-product-dev] | 
					
						
							| 
									
										
										
										
											2023-10-25 23:33:46 +08:00
										 |  |  | run_task = { name = ["set-app-version", "flutter-build", "copy-to-product"] } | 
					
						
							| 
									
										
										
										
											2023-10-23 17:47:11 +03:30
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-11-04 18:03:36 +08:00
										 |  |  | [tasks.copy-to-product] | 
					
						
							| 
									
										
										
										
											2021-11-17 14:17:46 +08:00
										 |  |  | mac_alias = "copy-to-product-macos" | 
					
						
							|  |  |  | windows_alias = "copy-to-product-windows" | 
					
						
							| 
									
										
										
										
											2021-11-19 11:13:07 +08:00
										 |  |  | linux_alias = "copy-to-product-linux" | 
					
						
							| 
									
										
										
										
											2021-11-17 14:17:46 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-10-25 23:33:46 +08:00
										 |  |  | [tasks.copy-to-product-mobile] | 
					
						
							|  |  |  | script = [ | 
					
						
							|  |  |  |   """ | 
					
						
							|  |  |  |   product_path=${CARGO_MAKE_WORKSPACE_WORKING_DIRECTORY}/appflowy_flutter/product/${APP_VERSION} | 
					
						
							|  |  |  |   output_path=${product_path}/${TARGET_OS}/${FLUTTER_OUTPUT_DIR} | 
					
						
							|  |  |  |   if [ -d "${output_path}" ]; then | 
					
						
							|  |  |  |     rm -rf ${output_path}/ | 
					
						
							|  |  |  |   fi | 
					
						
							|  |  |  |   mkdir -p ${output_path} | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   product=${PRODUCT_NAME}.${PRODUCT_EXT} | 
					
						
							|  |  |  |   cp -R ${CARGO_MAKE_WORKSPACE_WORKING_DIRECTORY}/appflowy_flutter/build/${TARGET_OS}/Build/Products/${FLUTTER_OUTPUT_DIR}/${product} \ | 
					
						
							|  |  |  |   ${output_path}/${product} | 
					
						
							|  |  |  |   """, | 
					
						
							|  |  |  | ] | 
					
						
							|  |  |  | script_runner = "@shell" | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-12-08 14:49:06 +07:00
										 |  |  | [tasks.copy-to-product-android] | 
					
						
							|  |  |  | script = [ | 
					
						
							|  |  |  |   """ | 
					
						
							|  |  |  |   product_path=${CARGO_MAKE_WORKSPACE_WORKING_DIRECTORY}/appflowy_flutter/product/${APP_VERSION} | 
					
						
							|  |  |  |   output_path=${product_path}/${TARGET_OS}/${FLUTTER_OUTPUT_DIR} | 
					
						
							|  |  |  |   if [ -d "${output_path}" ]; then | 
					
						
							|  |  |  |     rm -rf ${output_path}/ | 
					
						
							|  |  |  |   fi | 
					
						
							|  |  |  |   mkdir -p ${output_path} | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   product=${PRODUCT_NAME}-arm64-v8a-release.${PRODUCT_EXT} | 
					
						
							|  |  |  |   cp -R ${CARGO_MAKE_WORKSPACE_WORKING_DIRECTORY}/appflowy_flutter/build/app/outputs/flutter-apk/app-arm64-v8a-release.apk \ | 
					
						
							|  |  |  |   ${output_path}/${product} | 
					
						
							|  |  |  |   """, | 
					
						
							|  |  |  | ] | 
					
						
							|  |  |  | script_runner = "@shell" | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-11-17 14:17:46 +08:00
										 |  |  | [tasks.copy-to-product-macos] | 
					
						
							| 
									
										
										
										
											2021-11-04 18:03:36 +08:00
										 |  |  | script = [ | 
					
						
							|  |  |  |   """ | 
					
						
							| 
									
										
										
										
											2023-02-26 16:27:17 +08:00
										 |  |  |   product_path=${CARGO_MAKE_WORKSPACE_WORKING_DIRECTORY}/appflowy_flutter/product/${APP_VERSION} | 
					
						
							| 
									
										
										
										
											2021-11-17 14:17:46 +08:00
										 |  |  |   output_path=${product_path}/${TARGET_OS}/${FLUTTER_OUTPUT_DIR} | 
					
						
							| 
									
										
										
										
											2021-11-04 18:03:36 +08:00
										 |  |  |   if [ -d "${output_path}" ]; then | 
					
						
							|  |  |  |     rm -rf ${output_path}/ | 
					
						
							|  |  |  |   fi | 
					
						
							| 
									
										
										
										
											2021-11-04 22:13:05 +08:00
										 |  |  |   mkdir -p ${output_path} | 
					
						
							| 
									
										
										
										
											2021-11-04 18:03:36 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-12-08 20:01:54 +07:00
										 |  |  |   product=${PRODUCT_NAME}.${PRODUCT_EXT} | 
					
						
							| 
									
										
										
										
											2023-02-26 16:27:17 +08:00
										 |  |  |   cp -R ${CARGO_MAKE_WORKSPACE_WORKING_DIRECTORY}/appflowy_flutter/build/${TARGET_OS}/Build/Products/${FLUTTER_OUTPUT_DIR}/${product} \ | 
					
						
							| 
									
										
										
										
											2021-11-06 22:35:45 +08:00
										 |  |  |   ${output_path}/${product} | 
					
						
							| 
									
										
										
										
											2021-11-04 16:43:12 +08:00
										 |  |  |   """, | 
					
						
							|  |  |  | ] | 
					
						
							|  |  |  | script_runner = "@shell" | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-11-19 11:13:07 +08:00
										 |  |  | [tasks.copy-to-product-linux] | 
					
						
							|  |  |  | script = [ | 
					
						
							|  |  |  |   """ | 
					
						
							| 
									
										
										
										
											2023-02-26 16:27:17 +08:00
										 |  |  |   product_path=${CARGO_MAKE_WORKSPACE_WORKING_DIRECTORY}/appflowy_flutter/product/${APP_VERSION} | 
					
						
							| 
									
										
										
										
											2021-11-19 11:13:07 +08:00
										 |  |  |   output_path=${product_path}/${TARGET_OS}/${FLUTTER_OUTPUT_DIR} | 
					
						
							|  |  |  |   if [ -d "${output_path}" ]; then | 
					
						
							|  |  |  |     rm -rf ${output_path}/ | 
					
						
							|  |  |  |   fi | 
					
						
							|  |  |  |   mkdir -p ${output_path} | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   product=${PRODUCT_NAME} | 
					
						
							| 
									
										
										
										
											2023-02-26 16:27:17 +08:00
										 |  |  |   cp -R ${CARGO_MAKE_WORKSPACE_WORKING_DIRECTORY}/appflowy_flutter/build/${TARGET_OS}/${LINUX_ARCH}/${BUILD_FLAG}/bundle \ | 
					
						
							| 
									
										
										
										
											2021-11-19 11:13:07 +08:00
										 |  |  |   ${output_path}/${product} | 
					
						
							|  |  |  |   """, | 
					
						
							|  |  |  | ] | 
					
						
							|  |  |  | script_runner = "@shell" | 
					
						
							| 
									
										
										
										
											2021-11-17 21:45:18 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-11-17 14:17:46 +08:00
										 |  |  | [tasks.copy-to-product-windows] | 
					
						
							|  |  |  | script = [ | 
					
						
							|  |  |  |   """ | 
					
						
							| 
									
										
										
										
											2023-02-26 16:27:17 +08:00
										 |  |  |   product_path= set ${CARGO_MAKE_WORKSPACE_WORKING_DIRECTORY}/appflowy_flutter/product/${APP_VERSION} | 
					
						
							| 
									
										
										
										
											2021-11-18 16:18:20 +08:00
										 |  |  |   output_path= set ${product_path}/${TARGET_OS} | 
					
						
							|  |  |  |   if is_path_exists ${output_path} | 
					
						
							|  |  |  |     rm -r ${output_path}/ | 
					
						
							|  |  |  |   fi | 
					
						
							|  |  |  |   mkdir ${output_path} | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   product= set ${PRODUCT_NAME} | 
					
						
							| 
									
										
										
										
											2023-12-31 11:54:55 +08:00
										 |  |  |   glob_cp ${CARGO_MAKE_WORKSPACE_WORKING_DIRECTORY}/appflowy_flutter/build/${TARGET_OS}/${BUILD_ARCHS}/runner/${FLUTTER_OUTPUT_DIR}/**/* \ | 
					
						
							| 
									
										
										
										
											2021-11-18 16:18:20 +08:00
										 |  |  |   ${output_path}/${product} | 
					
						
							| 
									
										
										
										
											2021-11-17 14:17:46 +08:00
										 |  |  |   """, | 
					
						
							|  |  |  | ] | 
					
						
							| 
									
										
										
										
											2021-11-17 21:45:18 +08:00
										 |  |  | script_runner = "@duckscript" | 
					
						
							| 
									
										
										
										
											2021-11-17 14:17:46 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-04-08 20:08:01 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-12-17 14:34:35 -05:00
										 |  |  | # The following tasks will create an archive that will be used on the GitHub Releases section | 
					
						
							|  |  |  | # The archives are created using different compression programs depending on the target OS | 
					
						
							|  |  |  | # The archive will be composed of all files that are located in the /Release/AppFlowy directory | 
					
						
							|  |  |  | [tasks.create-release-archive] | 
					
						
							|  |  |  | mac_alias = "create-release-archive-macos" | 
					
						
							|  |  |  | windows_alias = "create-release-archive-windows" | 
					
						
							|  |  |  | linux_alias = "create-release-archive-linux" | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | [tasks.create-release-archive-linux] | 
					
						
							|  |  |  | script = [ | 
					
						
							| 
									
										
										
										
											2023-08-23 08:46:11 +08:00
										 |  |  |   # "cd ${CARGO_MAKE_WORKSPACE_WORKING_DIRECTORY}/appflowy_flutter/product/${APP_VERSION}/${TARGET_OS}/Release", | 
					
						
							|  |  |  |   # "tar -czf ${PRODUCT_NAME}-${TARGET_OS}-x86.tar.gz *", | 
					
						
							| 
									
										
										
										
											2021-12-17 14:34:35 -05:00
										 |  |  | ] | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | [tasks.create-release-archive-windows] | 
					
						
							|  |  |  | script = [ | 
					
						
							|  |  |  |   # TODO | 
					
						
							| 
									
										
										
										
											2023-02-26 16:27:17 +08:00
										 |  |  |   # "cd ${CARGO_MAKE_WORKSPACE_WORKING_DIRECTORY}/appflowy_flutter/product/${VERSION}/${TARGET_OS}/Release/${PRODUCT_NAME}", | 
					
						
							| 
									
										
										
										
											2021-12-17 14:34:35 -05:00
										 |  |  |   # "tar -czf ${PRODUCT_NAME}-${TARGET_OS}-x86.tar.gz *" | 
					
						
							|  |  |  | ] | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | [tasks.create-release-archive-macos] | 
					
						
							|  |  |  | script = [ | 
					
						
							| 
									
										
										
										
											2023-03-30 10:09:15 +08:00
										 |  |  |   # TODO | 
					
						
							| 
									
										
										
										
											2023-02-26 16:27:17 +08:00
										 |  |  |   # "cd ${CARGO_MAKE_WORKSPACE_WORKING_DIRECTORY}/appflowy_flutter/product/${VERSION}/${TARGET_OS}/Release/${PRODUCT_NAME}", | 
					
						
							| 
									
										
										
										
											2021-12-17 14:34:35 -05:00
										 |  |  |   # "tar -czf ${PRODUCT_NAME}-${TARGET_OS}-x86.tar.gz *" | 
					
						
							|  |  |  | ] | 
					
						
							| 
									
										
										
										
											2021-11-17 14:17:46 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  | [tasks.flutter-build] | 
					
						
							| 
									
										
										
										
											2023-02-02 23:02:49 +08:00
										 |  |  | script = [""" | 
					
						
							| 
									
										
										
										
											2023-02-26 16:27:17 +08:00
										 |  |  |   cd appflowy_flutter/ | 
					
						
							| 
									
										
										
										
											2021-11-17 14:17:46 +08:00
										 |  |  |   flutter pub get | 
					
						
							| 
									
										
										
										
											2023-10-25 23:33:46 +08:00
										 |  |  |   flutter packages pub get | 
					
						
							| 
									
										
										
										
											2023-07-14 16:08:40 +07:00
										 |  |  |   flutter build ${TARGET_OS} --${BUILD_FLAG} --verbose | 
					
						
							| 
									
										
										
										
											2023-02-02 23:02:49 +08:00
										 |  |  |   """] | 
					
						
							| 
									
										
										
										
											2021-11-17 14:17:46 +08:00
										 |  |  | script_runner = "@shell" | 
					
						
							| 
									
										
										
										
											2021-11-04 18:03:36 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-10-19 09:55:23 +08:00
										 |  |  | [tasks.flutter-build-ios] | 
					
						
							|  |  |  | script = [""" | 
					
						
							|  |  |  |   cd appflowy_flutter/ | 
					
						
							|  |  |  |   flutter pub get | 
					
						
							| 
									
										
										
										
											2024-01-21 21:47:14 +08:00
										 |  |  |   flutter build ipa --split-debug-info=./ --obfuscate --verbose | 
					
						
							| 
									
										
										
										
											2023-10-19 09:55:23 +08:00
										 |  |  |   """] | 
					
						
							|  |  |  | script_runner = "@shell" | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | [tasks.flutter-build-android] | 
					
						
							|  |  |  | script = [""" | 
					
						
							|  |  |  |   cd appflowy_flutter/ | 
					
						
							|  |  |  |   flutter pub get | 
					
						
							| 
									
										
										
										
											2024-01-11 20:45:20 +07:00
										 |  |  |   flutter build apk --split-per-abi --split-debug-info=./ --obfuscate --verbose | 
					
						
							| 
									
										
										
										
											2023-10-19 09:55:23 +08:00
										 |  |  |   """] | 
					
						
							|  |  |  | script_runner = "@shell" | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-12-29 11:17:50 +08:00
										 |  |  | [tasks.flutter-build-android-ci] | 
					
						
							|  |  |  | script = [""" | 
					
						
							|  |  |  |   cd appflowy_flutter/ | 
					
						
							|  |  |  |   flutter pub get | 
					
						
							|  |  |  |   flutter build apk --debug | 
					
						
							|  |  |  |   """] | 
					
						
							|  |  |  | script_runner = "@shell" | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-11-17 21:45:18 +08:00
										 |  |  | [tasks.flutter-build.windows] | 
					
						
							| 
									
										
										
										
											2023-10-25 23:33:46 +08:00
										 |  |  | script = [ | 
					
						
							|  |  |  |   """ | 
					
						
							| 
									
										
										
										
											2023-02-26 16:27:17 +08:00
										 |  |  |   cd appflowy_flutter | 
					
						
							| 
									
										
										
										
											2021-11-17 21:45:18 +08:00
										 |  |  |   exec cmd.exe /c flutter pub get | 
					
						
							| 
									
										
										
										
											2023-02-09 20:24:43 +08:00
										 |  |  |   exec cmd.exe /c flutter build ${TARGET_OS} --${BUILD_FLAG} --build-name=${APP_VERSION} | 
					
						
							| 
									
										
										
										
											2023-10-25 23:33:46 +08:00
										 |  |  |   """, | 
					
						
							|  |  |  | ] | 
					
						
							| 
									
										
										
										
											2021-11-17 21:45:18 +08:00
										 |  |  | script_runner = "@duckscript" | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-11-24 16:20:25 +08:00
										 |  |  | [tasks.pub_get] | 
					
						
							| 
									
										
										
										
											2022-02-23 20:32:53 +07:00
										 |  |  | script_runner = "@shell" | 
					
						
							| 
									
										
										
										
											2023-10-25 23:33:46 +08:00
										 |  |  | script = [""" | 
					
						
							| 
									
										
										
										
											2023-07-11 18:49:29 +07:00
										 |  |  |   cd appflowy_flutter | 
					
						
							|  |  |  |   flutter clean | 
					
						
							|  |  |  |   flutter pub get | 
					
						
							|  |  |  |   cd ../ | 
					
						
							| 
									
										
										
										
											2023-10-25 23:33:46 +08:00
										 |  |  |   """] | 
					
						
							| 
									
										
										
										
											2022-02-23 20:32:53 +07:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-11-24 16:20:25 +08:00
										 |  |  | [tasks.pub_get.windows] | 
					
						
							| 
									
										
										
										
											2022-02-23 22:02:46 +07:00
										 |  |  | script_runner = "@duckscript" | 
					
						
							| 
									
										
										
										
											2023-10-25 23:33:46 +08:00
										 |  |  | script = [""" | 
					
						
							| 
									
										
										
										
											2023-07-11 18:49:29 +07:00
										 |  |  |   cd ./appflowy_flutter/ | 
					
						
							|  |  |  |   exec cmd.exe /c flutter clean | 
					
						
							|  |  |  |   exec cmd.exe /c flutter pub get | 
					
						
							|  |  |  |   cd ../ | 
					
						
							| 
									
										
										
										
											2023-11-24 16:20:25 +08:00
										 |  |  |   """] | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | [tasks.code_generation] | 
					
						
							|  |  |  | script_runner = "@shell" | 
					
						
							|  |  |  | script = [""" | 
					
						
							| 
									
										
										
										
											2024-08-13 16:13:33 +08:00
										 |  |  |   ./scripts/code_generation/generate.sh | 
					
						
							| 
									
										
										
										
											2023-11-24 16:20:25 +08:00
										 |  |  |   """] | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | [tasks.code_generation.windows] | 
					
						
							|  |  |  | script_runner = "@duckscript" | 
					
						
							|  |  |  | script = [""" | 
					
						
							| 
									
										
										
										
											2023-07-09 10:03:22 +07:00
										 |  |  |   exec scripts/code_generation/generate.cmd | 
					
						
							| 
									
										
										
										
											2023-10-25 23:33:46 +08:00
										 |  |  |   """] | 
					
						
							| 
									
										
										
										
											2023-01-26 15:40:23 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  | [tasks.dry_code_generation] | 
					
						
							|  |  |  | script_runner = "@shell" | 
					
						
							|  |  |  | script = [ | 
					
						
							|  |  |  |   """ | 
					
						
							| 
									
										
										
										
											2023-02-26 16:27:17 +08:00
										 |  |  |   cd appflowy_flutter | 
					
						
							| 
									
										
										
										
											2023-05-28 05:09:39 +01:00
										 |  |  |   dart run easy_localization:generate -S assets/translations/ -f keys -o locale_keys.g.dart -S assets/translations -s en.json | 
					
						
							|  |  |  |   dart run build_runner build -d | 
					
						
							| 
									
										
										
										
											2023-02-02 23:02:49 +08:00
										 |  |  |   """, | 
					
						
							| 
									
										
										
										
											2023-01-26 15:40:23 +08:00
										 |  |  | ] | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | [tasks.dry_code_generation.windows] | 
					
						
							|  |  |  | script_runner = "@duckscript" | 
					
						
							|  |  |  | script = [ | 
					
						
							|  |  |  |   """ | 
					
						
							| 
									
										
										
										
											2023-02-26 16:27:17 +08:00
										 |  |  |   cd ./appflowy_flutter/ | 
					
						
							| 
									
										
										
										
											2023-05-28 05:09:39 +01:00
										 |  |  |   exec cmd.exe /c dart run easy_localization:generate -S assets/translations/ -f keys -o locale_keys.g.dart -S assets/translations -s en.json | 
					
						
							|  |  |  |   exec cmd.exe /c dart run build_runner build -d | 
					
						
							| 
									
										
										
										
											2023-02-02 23:02:49 +08:00
										 |  |  |   """, | 
					
						
							| 
									
										
										
										
											2023-01-26 15:40:23 +08:00
										 |  |  | ] |