mirror of
				https://github.com/AppFlowy-IO/AppFlowy.git
				synced 2025-10-31 01:54:37 +00:00 
			
		
		
		
	 0dcaa6be2f
			
		
	
	
		0dcaa6be2f
		
	
	
	
	
		
			
			1. BUILD_ON_LINUX.md - Remove brew dependency - Update command for development in step 9 & 10 2. Fix file name typo for BUILD_ON_WINDOWS.md
		
			
				
	
	
		
			148 lines
		
	
	
		
			3.5 KiB
		
	
	
	
		
			TOML
		
	
	
	
	
	
			
		
		
	
	
			148 lines
		
	
	
		
			3.5 KiB
		
	
	
	
		
			TOML
		
	
	
	
	
	
| [tasks.appflowy]
 | |
| mac_alias = "appflowy-macos"
 | |
| windows_alias = "appflowy-windows"
 | |
| linux_alias = "appflowy-linux"
 | |
| 
 | |
| [tasks.appflowy-macos]
 | |
| dependencies = ["flowy-sdk-release"]
 | |
| run_task = { name = ["flutter-build", "copy-to-product"] }
 | |
| script_runner = "@shell"
 | |
| 
 | |
| [tasks.appflowy-windows]
 | |
| dependencies = ["flowy-sdk-release"]
 | |
| run_task = { name = ["flutter-build", "copy-to-product"] }
 | |
| 
 | |
| [tasks.appflowy-linux]
 | |
| dependencies = ["flowy-sdk-release"]
 | |
| run_task = { name = ["flutter-build", "copy-to-product"] }
 | |
| script_runner = "@shell"
 | |
| 
 | |
| [tasks.appflowy-dev]
 | |
| mac_alias = "appflowy-macos-dev"
 | |
| windows_alias = "appflowy-windows-dev"
 | |
| linux_alias = "appflowy-linux-dev"
 | |
| 
 | |
| [tasks.appflowy-macos-dev]
 | |
| dependencies = ["flowy-sdk-dev"]
 | |
| run_task = { name = ["flutter-build", "copy-to-product"] }
 | |
| script_runner = "@shell"
 | |
| 
 | |
| [tasks.appflowy-windows-dev]
 | |
| dependencies = ["flowy-sdk-dev"]
 | |
| run_task = { name = ["flutter-build", "copy-to-product"] }
 | |
| 
 | |
| [tasks.appflowy-linux-dev]
 | |
| dependencies = ["flowy-sdk-dev"]
 | |
| run_task = { name = ["flutter-build", "copy-to-product"] }
 | |
| script_runner = "@shell"
 | |
| 
 | |
| [tasks.copy-to-product]
 | |
| mac_alias = "copy-to-product-macos"
 | |
| windows_alias = "copy-to-product-windows"
 | |
| linux_alias = "copy-to-product-linux"
 | |
| 
 | |
| [tasks.copy-to-product-macos]
 | |
| script = [
 | |
|   """
 | |
|   product_path=${CARGO_MAKE_WORKSPACE_WORKING_DIRECTORY}/app_flowy/product/${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}/app_flowy/build/${TARGET_OS}/Build/Products/${FLUTTER_OUTPUT_DIR}/${product} \
 | |
|   ${output_path}/${product}
 | |
|   """,
 | |
| ]
 | |
| script_runner = "@shell"
 | |
| 
 | |
| [tasks.copy-to-product-linux]
 | |
| script = [
 | |
|   """
 | |
|   product_path=${CARGO_MAKE_WORKSPACE_WORKING_DIRECTORY}/app_flowy/product/${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}
 | |
|   cp -R ${CARGO_MAKE_WORKSPACE_WORKING_DIRECTORY}/app_flowy/build/${TARGET_OS}/${LINUX_ARCH}/${BUILD_FLAG}/bundle \
 | |
|   ${output_path}/${product}
 | |
|   """,
 | |
| ]
 | |
| script_runner = "@shell"
 | |
| 
 | |
| [tasks.copy-to-product-windows]
 | |
| script = [
 | |
|   """
 | |
|   product_path= set ${CARGO_MAKE_WORKSPACE_WORKING_DIRECTORY}/app_flowy/product/${VERSION}
 | |
|   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}
 | |
|   glob_cp  ${CARGO_MAKE_WORKSPACE_WORKING_DIRECTORY}/app_flowy/build/${TARGET_OS}/runner/${FLUTTER_OUTPUT_DIR}/**/* \
 | |
|   ${output_path}/${product}
 | |
|   """,
 | |
| ]
 | |
| script_runner = "@duckscript"
 | |
| 
 | |
| 
 | |
| [tasks.flutter-build]
 | |
| script = [
 | |
|   """
 | |
|   cd app_flowy/
 | |
|   flutter clean
 | |
|   flutter pub get
 | |
|   flutter build ${TARGET_OS} --${BUILD_FLAG} --build-name=${VERSION}
 | |
|   """,
 | |
| ]
 | |
| script_runner = "@shell"
 | |
| 
 | |
| [tasks.flutter-build.linux]
 | |
| script = [
 | |
|   """
 | |
|   cd app_flowy/
 | |
|   flutter clean
 | |
|   flutter pub get
 | |
|   flutter build ${TARGET_OS} --${BUILD_FLAG}
 | |
|   """,
 | |
| ]
 | |
| script_runner = "@shell"
 | |
| 
 | |
| [tasks.flutter-build.windows]
 | |
| script = [
 | |
|   """
 | |
|   cd app_flowy
 | |
|   exec cmd.exe /c flutter clean
 | |
|   exec cmd.exe /c flutter pub get
 | |
|   exec cmd.exe /c flutter build ${TARGET_OS} --${BUILD_FLAG}
 | |
|   """,
 | |
| ]
 | |
| script_runner = "@duckscript"
 | |
| 
 | |
| [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"
 | |
| 
 | |
| 
 |