Skip to content

Commit 6593855

Browse files
authored
Merge pull request #343 from AppFlowy-IO/fix_windows_build
Fix windows build
2 parents dab835a + 06967d8 commit 6593855

File tree

25 files changed

+176
-182
lines changed

25 files changed

+176
-182
lines changed

frontend/.vscode/tasks.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,27 @@
7070
"options": {
7171
"cwd": "${workspaceFolder}"
7272
},
73+
},
74+
{
75+
"label": "Clean",
76+
"type": "shell",
77+
"command": "sh ./scripts/clean.sh",
78+
"windows": {
79+
"options": {
80+
"shell": {
81+
"executable": "cmd.exe",
82+
"args": [
83+
"/d",
84+
"/c",
85+
".\\scripts\\clean.cmd"
86+
]
87+
}
88+
}
89+
},
90+
"group": "build",
91+
"options": {
92+
"cwd": "${workspaceFolder}"
93+
},
7394
}
7495
]
7596
}

frontend/app_flowy/.vscode/launch.json

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,5 @@
4040
"preLaunchTask": "Generate Language Files",
4141
"cwd": "${workspaceRoot}"
4242
},
43-
{
44-
"name": "Clean",
45-
"request": "launch",
46-
"type": "dart",
47-
"preLaunchTask": "Clean",
48-
"cwd": "${workspaceRoot}"
49-
}
5043
]
5144
}

frontend/app_flowy/.vscode/tasks.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
},
7373
},
7474
{
75-
"label": "Clean FlowySDK",
75+
"label": "Clean",
7676
"type": "shell",
7777
"command": "sh ./scripts/clean.sh",
7878
"windows": {
@@ -87,7 +87,10 @@
8787
}
8888
}
8989
},
90-
"group": "build",
90+
"group": {
91+
"kind": "build",
92+
"isDefault": true,
93+
},
9194
"options": {
9295
"cwd": "${workspaceFolder}/../"
9396
},

frontend/rust-lib/dart-ffi/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,4 @@ http_server = ["flowy-sdk/http_server", "flowy-sdk/use_bunyan"]
3636
#use_protobuf= ["protobuf"]
3737

3838
[build-dependencies]
39-
lib-infra = { path = "../../../shared-lib/lib-infra", features = ["pb_gen", "dart"] }
39+
lib-infra = { path = "../../../shared-lib/lib-infra", features = ["protobuf_file_gen", "dart"] }

frontend/rust-lib/dart-notify/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@ lib-dispatch = {path = "../lib-dispatch" }
1919
dart = ["lib-infra/dart"]
2020

2121
[build-dependencies]
22-
lib-infra = { path = "../../../shared-lib/lib-infra", features = ["pb_gen"] }
22+
lib-infra = { path = "../../../shared-lib/lib-infra", features = ["protobuf_file_gen"] }

frontend/rust-lib/flowy-error/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,4 @@ db = ["flowy-database", "lib-sqlite", "r2d2"]
3030
dart = ["flowy-error-code/dart", "lib-infra/dart"]
3131

3232
[build-dependencies]
33-
lib-infra = { path = "../../../shared-lib/lib-infra", features = ["pb_gen"] }
33+
lib-infra = { path = "../../../shared-lib/lib-infra", features = ["protobuf_file_gen"] }

frontend/rust-lib/flowy-folder/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,4 +56,4 @@ flowy_unit_test = ["lib-ot/flowy_unit_test", "flowy-sync/flowy_unit_test"]
5656
dart = ["lib-infra/dart", "flowy-folder/dart", "flowy-folder/dart",]
5757

5858
[build-dependencies]
59-
lib-infra = { path = "../../../shared-lib/lib-infra", features = ["pb_gen", "proto_gen"] }
59+
lib-infra = { path = "../../../shared-lib/lib-infra", features = ["protobuf_file_gen", "proto_gen"] }

frontend/rust-lib/flowy-net/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,4 +50,4 @@ dart = [
5050
]
5151

5252
[build-dependencies]
53-
lib-infra = { path = "../../../shared-lib/lib-infra", features = ["pb_gen"] }
53+
lib-infra = { path = "../../../shared-lib/lib-infra", features = ["protobuf_file_gen"] }

frontend/rust-lib/flowy-user/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,4 +48,4 @@ http_server = []
4848
dart = ["lib-infra/dart"]
4949

5050
[build-dependencies]
51-
lib-infra = { path = "../../../shared-lib/lib-infra", features = ["pb_gen"] }
51+
lib-infra = { path = "../../../shared-lib/lib-infra", features = ["protobuf_file_gen"] }

frontend/scripts/clean.cmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ cargo clean
44
cd ../../shared-lib
55
cargo clean
66

7-
rmdir /s/q lib-infra/.cache
7+
rmdir /s/q "lib-infra/.cache"

0 commit comments

Comments
 (0)