mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
ci: add .appflowy_dev
This commit is contained in:
parent
7d93ed8e81
commit
e9ba9ad149
3
frontend/app_flowy/.gitignore
vendored
3
frontend/app_flowy/.gitignore
vendored
@ -59,4 +59,5 @@ windows/flutter/dart_ffi/
|
||||
**/**/*.lib
|
||||
**/**/*.dll
|
||||
**/**/*.so
|
||||
**/**/Brewfile.lock.json
|
||||
**/**/Brewfile.lock.json
|
||||
**/.appflowy_dev
|
@ -27,6 +27,6 @@ class InitRustSDKTask extends LaunchTask {
|
||||
}
|
||||
|
||||
Directory testDir() {
|
||||
return Directory("${Directory.systemTemp.path}/appflowy");
|
||||
return Directory("${Directory.current.path}/.appflowy_dev");
|
||||
}
|
||||
}
|
||||
|
@ -13,7 +13,7 @@ final DynamicLibrary _dl = _open();
|
||||
final DynamicLibrary dl = _dl;
|
||||
DynamicLibrary _open() {
|
||||
if (Platform.environment.containsKey('FLUTTER_TEST')) {
|
||||
final prefix = "${Directory.systemTemp.path}/appflowy";
|
||||
final prefix = "${Directory.current.path}/.appflowy_dev";
|
||||
if (Platform.isLinux) return DynamicLibrary.open('${prefix}/libdart_ffi.so');
|
||||
if (Platform.isAndroid) return DynamicLibrary.open('${prefix}/libdart_ffi.so');
|
||||
if (Platform.isMacOS) return DynamicLibrary.open('${prefix}/libdart_ffi.dylib');
|
||||
|
@ -138,13 +138,12 @@ script = [
|
||||
"""
|
||||
# Copy the flowy_sdk lib to system temp directory for flutter unit test.
|
||||
lib = set lib${LIB_NAME}.${SDK_EXT}
|
||||
dest = set ${TMPDIR}/appflowy/${lib}
|
||||
echo ${dest}
|
||||
dest = set ${CARGO_MAKE_WORKSPACE_WORKING_DIRECTORY}/app_flowy/.appflowy_dev/${lib}
|
||||
rm ${dest}
|
||||
|
||||
|
||||
cp ${CARGO_MAKE_WORKSPACE_WORKING_DIRECTORY}/rust-lib/target/${RUST_COMPILE_TARGET}/${BUILD_FLAG}/${lib} \
|
||||
${dest}
|
||||
|
||||
echo copy ${lib} to ${dest}
|
||||
""",
|
||||
]
|
||||
script_runner = "@duckscript"
|
||||
|
Loading…
Reference in New Issue
Block a user