diff --git a/FreeMote.PsBuild/Properties/AssemblyInfo.cs b/FreeMote.PsBuild/Properties/AssemblyInfo.cs index bbe4f23..a3f5035 100644 --- a/FreeMote.PsBuild/Properties/AssemblyInfo.cs +++ b/FreeMote.PsBuild/Properties/AssemblyInfo.cs @@ -18,5 +18,5 @@ [assembly: InternalsVisibleTo("FreeMote.Editor")] // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("4.0.0.0")] -[assembly: AssemblyFileVersion("4.0.0.0")] \ No newline at end of file +[assembly: AssemblyVersion("4.0.1.0")] +[assembly: AssemblyFileVersion("4.0.1.0")] \ No newline at end of file diff --git a/FreeMote.PsBuild/PsbCompiler.cs b/FreeMote.PsBuild/PsbCompiler.cs index 1f84e96..0488cb1 100644 --- a/FreeMote.PsBuild/PsbCompiler.cs +++ b/FreeMote.PsBuild/PsbCompiler.cs @@ -767,6 +767,10 @@ void AddFileInfo(PsbDictionary fileInfoDic, string relativePathWithoutSuffix, lo var content = LoadPsbAndContextFromJsonFile(kv.Value.Path); var stream = content.Psb.ToStream(); var shellType = kv.Key.DefaultShellType(); //MARK: use shellType in filename, or use suffix in info? + if (content.Context.TryGetValue(Context_PsbShellType, out var contextShellType)) + { + shellType = contextShellType as string; + } if (!string.IsNullOrEmpty(shellType)) { var packedStream = itemContext.PackToShell(stream, shellType); //disposed later diff --git a/FreeMote.PsBuild/PsbDecompiler.cs b/FreeMote.PsBuild/PsbDecompiler.cs index 39840f3..fdfb057 100644 --- a/FreeMote.PsBuild/PsbDecompiler.cs +++ b/FreeMote.PsBuild/PsbDecompiler.cs @@ -627,9 +627,10 @@ public static void ExtractArchive(string filePath, string key, Dictionary