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);
|
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>
|
<ImplicitUsings>enable</ImplicitUsings>
|
||||||
<AssemblyName>glyph</AssemblyName>
|
<AssemblyName>glyph</AssemblyName>
|
||||||
<Nullable>enable</Nullable>
|
<Nullable>enable</Nullable>
|
||||||
<Version>0.1.105</Version>
|
<Version>0.1.106</Version>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
await new CliApplicationBuilder()
|
await new CliApplicationBuilder()
|
||||||
.AddCommand<RunCommand>()
|
.AddCommand<RunCommand>()
|
||||||
.AddCommand<CompileCommand>()
|
.AddCommand<CompileCommand>()
|
||||||
|
.SetExecutableName("Glyph")
|
||||||
.Build()
|
.Build()
|
||||||
.RunAsync();
|
.RunAsync();
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
namespace Glyph;
|
namespace Glyph;
|
||||||
|
|
||||||
|
using System.Text;
|
||||||
|
|
||||||
public static class ScriptHelper
|
public static class ScriptHelper
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -10,7 +12,7 @@ public static class ScriptHelper
|
||||||
// https://arcanecode.com/2007/03/21/encoding-strings-to-base64-in-c/
|
// https://arcanecode.com/2007/03/21/encoding-strings-to-base64-in-c/
|
||||||
static public string EncodeTo64(string toEncode)
|
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);
|
string returnValue = System.Convert.ToBase64String(toEncodeAsBytes);
|
||||||
return returnValue;
|
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