Datei: Tools/AddMappingToVsix/Program.cs
Last Commit (db278e7)
1 | -- File didn't exist -- |
New Commit (8489775)
1 | using System.IO.Compression; |
2 | |
3 | namespace AddMappingToVsix |
4 | { |
5 | ····internal class Program |
6 | ····{ |
7 | ········static void Main(string[] args) |
8 | ········{ |
9 | ············var vsixFile = args[0]; |
10 | ············string releasePath = Path.GetDirectoryName(vsixFile)!; |
11 | ············var root = Path.GetFullPath(Path.Combine(releasePath, @"..\..\..")); |
12 | ············var mappingDir = Path.Combine( root, @"SimpleMappingTool\bin\Release\net8.0-windows" ); |
13 | ············var files = Directory.GetFiles(mappingDir); |
14 | ············using (var zipFile = ZipFile.Open( args[0], ZipArchiveMode.Update )) |
15 | ············{ |
16 | ················foreach (var file in files) |
17 | ················{ |
18 | ····················FileInfo fi = new FileInfo(file); |
19 | ····················zipFile.CreateEntryFromFile( fi.FullName, "MappingTool/" + fi.Name ); |
20 | ················} |
21 | ············} |
22 | ········} |
23 | ····} |
24 | } |
25 |