7
7
// jellyfin server's plugin directory
8
8
"label" : " build-and-copy" ,
9
9
"dependsOrder" : " sequence" ,
10
- "dependsOn" : [" build" , " make-plugin-dir" , " copy-dll" ]
10
+ "dependsOn" : [
11
+ " build" ,
12
+ " make-plugin-dir" ,
13
+ " copy-dll"
14
+ ]
11
15
},
12
16
{
13
17
// Build the plugin
27
31
"problemMatcher" : " $msCompile"
28
32
},
29
33
{
30
- // Ensure the plugin directory exists before trying to use it
31
- "label" : " make-plugin-dir" ,
32
- "type" : " shell" ,
33
- "command" : " mkdir" ,
34
+ // Ensure the plugin directory exists before trying to use it
35
+ "label" : " make-plugin-dir" ,
36
+ "type" : " shell" ,
37
+ "command" : " mkdir" ,
38
+ "windows" : {
39
+ "args" : [
40
+ " -Force" ,
41
+ " -Path" ,
42
+ " ${config:jellyfinWindowsDataDir}/plugins/${config:pluginName}/"
43
+ ]
44
+ },
45
+ "linux" : {
34
46
"args" : [
35
- " -Force" ,
36
- " -Path" ,
37
- " ${config:jellyfinDataDir}/plugins/${config:pluginName}/"
47
+ " -p" ,
48
+ " ${config:jellyfinLinuxDataDir}/plugins/${config:pluginName}/"
38
49
]
50
+ }
39
51
},
40
52
{
41
- // Copy the plugin dll to the jellyfin plugin install path
42
- // This command copies every .dll from the build directory to the plugin dir
43
- // Usually, you probablly only need ${config:pluginName }.dll
44
- // But some plugins may bundle extra requirements
45
- "label" : " copy-dll" ,
46
- "type" : " shell" ,
47
- "command" : " cp" ,
53
+ // Copy the plugin dll to the jellyfin plugin install path
54
+ // This command copies every .dll from the build directory to the plugin dir
55
+ // Usually, you probablly only need ${config:pluginName }.dll
56
+ // But some plugins may bundle extra requirements
57
+ "label" : " copy-dll" ,
58
+ "type" : " shell" ,
59
+ "command" : " cp" ,
60
+ "windows" : {
61
+ "args" : [
62
+ " ./${config:pluginName}/bin/Debug/net6.0/publish/*" ,
63
+ " ${config:jellyfinWindowsDataDir}/plugins/${config:pluginName}/"
64
+ ]
65
+ },
66
+ "linux" : {
48
67
"args" : [
49
- " ./${config:pluginName}/bin/Debug/net6.0/publish/*" ,
50
- " ${config:jellyfinDataDir}/plugins/${config:pluginName}/"
68
+ " -r" ,
69
+ " ./${config:pluginName}/bin/Debug/net6.0/publish/*" ,
70
+ " ${config:jellyfinLinuxDataDir}/plugins/${config:pluginName}/"
51
71
]
52
-
72
+ }
53
73
},
54
74
]
55
- }
75
+ }
0 commit comments