File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 2
2
using System . Text ;
3
3
using System . Text . RegularExpressions ;
4
4
5
-
6
5
using Nuke . Common ;
7
6
using Nuke . Common . CI ;
8
7
using Nuke . Common . CI . AppVeyor ;
@@ -130,14 +129,15 @@ protected override void OnBuildInitialized()
130
129
var sourceMetaFolder = RootDirectory / "src" / riderMetaDirectoryName ;
131
130
var targetMetaFolder = tempDirectory / riderMetaDirectoryName ;
132
131
CopyDirectoryRecursively ( sourceMetaFolder , targetMetaFolder ) ;
133
- CopyFile ( NuGetPackagePath , tempDirectory / NuGetPackageFileName ) ;
132
+ CopyFile ( NuGetPackagePath , tempDirectory / riderMetaDirectoryName / NuGetPackageFileName ) ;
134
133
135
134
var riderMetaFile = targetMetaFolder / "META-INF" / "plugin.xml" ;
136
135
XmlPoke ( riderMetaFile , "idea-plugin/version" , ExtensionVersion ) ;
137
136
XmlPoke ( riderMetaFile , "idea-plugin/idea-version/@since-build" , WaveMajorVersion ) ;
138
137
XmlPoke ( riderMetaFile , "idea-plugin/idea-version/@until-build" , WaveMajorVersion + ".*" ) ;
139
138
140
139
// We should re-save wile with UTF-8 without BOM, otherwise Rider fails to install plugin
140
+ // This workaround can be removed when the feature will be released https://github.com/nuke-build/nuke/pull/734
141
141
File . WriteAllText ( riderMetaFile , File . ReadAllText ( riderMetaFile ) , new UTF8Encoding ( false ) ) ;
142
142
143
143
CompressZip ( tempDirectory , RiderPackagePath , fileMode : FileMode . Create ) ;
You can’t perform that action at this time.
0 commit comments