mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
feat: support building apk on github action (#4117)
This commit is contained in:
@ -58,7 +58,7 @@ run_task = { name = [
|
||||
"code_generation",
|
||||
"set-app-version",
|
||||
"flutter-build-android",
|
||||
"copy-to-product-mobile",
|
||||
"copy-to-product-android",
|
||||
] }
|
||||
script_runner = "@shell"
|
||||
|
||||
@ -139,6 +139,23 @@ script = [
|
||||
]
|
||||
script_runner = "@shell"
|
||||
|
||||
[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"
|
||||
|
||||
[tasks.copy-to-product-macos]
|
||||
script = [
|
||||
"""
|
||||
@ -149,7 +166,7 @@ script = [
|
||||
fi
|
||||
mkdir -p ${output_path}
|
||||
|
||||
product=${PRODUCT_NAME}.${PRODUCT_EXT}
|
||||
product=${PRODUCT_NAME}-arm64-v8a-release.${PRODUCT_EXT}
|
||||
cp -R ${CARGO_MAKE_WORKSPACE_WORKING_DIRECTORY}/appflowy_flutter/build/${TARGET_OS}/Build/Products/${FLUTTER_OUTPUT_DIR}/${product} \
|
||||
${output_path}/${product}
|
||||
""",
|
||||
|
@ -95,7 +95,7 @@ script = [
|
||||
lib = set lib${LIB_NAME}.${LIB_EXT}
|
||||
|
||||
echo "💻 💻 💻 Copying ${CARGO_MAKE_WORKSPACE_WORKING_DIRECTORY}/rust-lib/jniLibs/ to ${dart_ffi_dir}/"
|
||||
rm -r ${dart_ffi_dir}/jniLibs/
|
||||
rm -r ${dart_ffi_dir}/jniLibs
|
||||
cp ${CARGO_MAKE_WORKSPACE_WORKING_DIRECTORY}/rust-lib/jniLibs/ \
|
||||
${dart_ffi_dir}/
|
||||
|
||||
|
Reference in New Issue
Block a user