Explorar o código

Merge pull request #556 from AppFlowy-IO/fix/build_task

fix: build appflowy from VS Code
Nathan.fooo %!s(int64=2) %!d(string=hai) anos
pai
achega
ea3d142b09
Modificáronse 3 ficheiros con 10 adicións e 8 borrados
  1. 1 1
      frontend/.vscode/tasks.json
  2. 3 4
      frontend/scripts/clean.cmd
  3. 6 3
      frontend/scripts/clean.sh

+ 1 - 1
frontend/.vscode/tasks.json

@@ -15,11 +15,11 @@
 			"dependsOrder": "sequence",
 			"dependsOn": [
 				"AF: Clean",
+				"AF: build_flowy_sdk",
 				"AF: Flutter Pub Get",
 				"AF: Flutter Package Get",
 				"AF: Generate Language Files",
 				"AF: Generate Freezed Files",
-				"AF: build_flowy_sdk"
 			],
 			"presentation": {
 				"reveal": "always",

+ 3 - 4
frontend/scripts/clean.cmd

@@ -1,7 +1,6 @@
 cd rust-lib
 cargo clean
 
-cd ../../shared-lib
-cargo clean
-
-rmdir /s/q "lib-infra/.cache"
+if exist "lib-infra/.cache" (
+    rmdir /s/q "lib-infra/.cache"
+)

+ 6 - 3
frontend/scripts/clean.sh

@@ -4,7 +4,10 @@
 cd rust-lib
 cargo clean
 
-cd ../../shared-lib
-cargo clean
+CACHE_FILE=lib-infra/.cache
+if [ -f "$CACHE_FILE" ]; then
+  echo "Remove $CACHE_FILE"
+  rm -rf $CACHE_FILE
+fi
+
 
-rm -rf lib-infra/.cache