Simplification of the msbuild signing projects (#624)
* Adding initial version of msbuild signing files * Fixing msbuild syntax error * Adding signing exclusion list * Fixing errors in the signing exclusion list * Hopefully last fix to signing exclusion list * Including i18n loc folder into signing microbuild project * MSBuild signing project changes to remove unwanted files * Simplification of the msbuild signing project
This commit is contained in:
Родитель
b1192af414
Коммит
5a6001bb56
|
@ -5,46 +5,23 @@
|
|||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<LocFilesToCopy Include="..\i18n\**\*" />
|
||||
<ImagesToCopy Include="..\images\**\*" />
|
||||
<NodeModulesToCopy Include="..\node_modules\**\*" />
|
||||
<SrcToCopy Include="..\out\src\**\*" />
|
||||
<RootFilesToCopy Include="..\.gitignore;..\.travis.yml;..\appveyor.yml;..\ISSUE_TEMPLATE.md;..\CHANGELOG.md;..\CONTRIBUTING.md;..\LICENSE.txt;..\package.json;..\package.nls.de.json;..\package.nls.es.json;..\package.nls.fr.json;..\package.nls.it.json;..\package.nls.ja.json;..\package.nls.json;..\package.nls.ko.json;..\package.nls.ru.json;..\package.nls.zh-cn.json;..\package.nls.zh-tw.json;..\README.md;..\ThirdPartyNotices.txt" />
|
||||
<ExtensionFilesToCopy Include="..\vsix\extension\**\*" />
|
||||
</ItemGroup>
|
||||
|
||||
<Target Name="CopyFilesToSign" BeforeTargets="DeleteUnwantedFiles">
|
||||
<Copy SourceFiles="@(LocFilesToCopy)"
|
||||
DestinationFiles="@(LocFilesToCopy->'$(OutDir)\i18n\%(RecursiveDir)%(Filename)%(Extension)')" />
|
||||
<Copy SourceFiles="@(ImagesToCopy)"
|
||||
DestinationFiles="@(ImagesToCopy->'$(OutDir)\images\%(RecursiveDir)%(Filename)%(Extension)')" />
|
||||
<Copy SourceFiles="@(NodeModulesToCopy)"
|
||||
DestinationFiles="@(NodeModulesToCopy->'$(OutDir)\node_modules\%(RecursiveDir)%(Filename)%(Extension)')" />
|
||||
<Copy SourceFiles="@(SrcToCopy)"
|
||||
DestinationFiles="@(SrcToCopy->'$(OutDir)\out\src\%(RecursiveDir)%(Filename)%(Extension)')" />
|
||||
<Copy SourceFiles="@(RootFilesToCopy)"
|
||||
DestinationFolder="$(OutDir)" />
|
||||
<Copy SourceFiles="@(ExtensionFilesToCopy)"
|
||||
DestinationFiles="@(ExtensionFilesToCopy->'$(OutDir)\ziproot\%(RecursiveDir)%(Filename)%(Extension)')" />
|
||||
</Target>
|
||||
|
||||
<Target Name="DeleteUnwantedFiles" DependsOnTargets="CopyFilesToSign" BeforeTargets="GetFilesToSign">
|
||||
<Delete Files="$(OutDir)ChromeDebugAdapter.dll;
|
||||
$(OutDir)ChromeDebugAdapter.pdb;
|
||||
$(OutDir)ChromeDebugAdapter.deps.json;
|
||||
$(OutDir)node_modules\gulp-vinyl-zip\test\assets\archive.zip;
|
||||
$(OutDir)node_modules\globule\test\fixtures\expand\js\foo.js;
|
||||
$(OutDir)node_modules\globule\test\fixtures\expand\js\bar.js;
|
||||
$(OutDir)node_modules\resolve\test\resolver\mug.js;
|
||||
$(OutDir)node_modules\resolve\test\pathfilter\deep_ref\main.js;
|
||||
$(OutDir)node_modules\resolve\test\resolver\baz\doom.js;
|
||||
$(OutDir)node_modules\vsce\node_modules\tmp\test\symlinkme\file.js;
|
||||
$(OutDir)node_modules\resolve\test\resolver\other_path\lib\other-lib.js;
|
||||
$(OutDir)node_modules\resolve\test\resolver\other_path\root.js;
|
||||
$(OutDir)node_modules\union\test\fixtures\index.js;
|
||||
$(OutDir)node_modules\union\test\helpers\index.js;"/>
|
||||
$(OutDir)ChromeDebugAdapter.deps.json;"/>
|
||||
</Target>
|
||||
|
||||
<Target Name="GetFilesToSign" DependsOnTargets="DeleteUnwantedFiles" BeforeTargets="SignFiles">
|
||||
<ItemGroup>
|
||||
<FilesToSign Include="$(OutDir)\**\*.js">
|
||||
<FilesToSign Include="$(OutDir)ziproot\**\*.js">
|
||||
<Authenticode>Microsoft400</Authenticode>
|
||||
</FilesToSign>
|
||||
</ItemGroup>
|
||||
|
|
Загрузка…
Ссылка в новой задаче