Minor hotfixes
This commit is contained in:
parent
b01f83f93e
commit
09b52a4f28
5 changed files with 6 additions and 3 deletions
|
@ -27,6 +27,6 @@ public class CompileCommand : ICommand
|
|||
}
|
||||
|
||||
var binary = ScriptHelper.EncodeTo64(source);
|
||||
File.WriteAllText(Path.Combine(Path.GetDirectoryName(FilePath), "output.glb"), binary);
|
||||
File.WriteAllText(Path.Combine(Path.GetDirectoryName(FilePath), "output.glyb"), binary);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<AssemblyName>glyph</AssemblyName>
|
||||
<Nullable>enable</Nullable>
|
||||
<Version>0.1.105</Version>
|
||||
<Version>0.1.106</Version>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
await new CliApplicationBuilder()
|
||||
.AddCommand<RunCommand>()
|
||||
.AddCommand<CompileCommand>()
|
||||
.SetExecutableName("Glyph")
|
||||
.Build()
|
||||
.RunAsync();
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
namespace Glyph;
|
||||
|
||||
using System.Text;
|
||||
|
||||
public static class ScriptHelper
|
||||
{
|
||||
/// <summary>
|
||||
|
@ -10,7 +12,7 @@ public static class ScriptHelper
|
|||
// https://arcanecode.com/2007/03/21/encoding-strings-to-base64-in-c/
|
||||
static public string EncodeTo64(string toEncode)
|
||||
{
|
||||
byte[] toEncodeAsBytes = System.Text.ASCIIEncoding.ASCII.GetBytes(toEncode);
|
||||
byte[] toEncodeAsBytes = System.Text.UnicodeEncoding.Default.GetBytes(toEncode);
|
||||
string returnValue = System.Convert.ToBase64String(toEncodeAsBytes);
|
||||
return returnValue;
|
||||
|
||||
|
|
0
install.sh
Normal file → Executable file
0
install.sh
Normal file → Executable file
Loading…
Add table
Add a link
Reference in a new issue