Skip to content

Commit

Permalink
Updated to v1.2.1
Browse files Browse the repository at this point in the history
* Changed Icon path and Assembly Data to now literalize escape characters
* Added check for Assembly Version to ensure that it contains only numbers
  • Loading branch information
UnamSanctam committed Sep 18, 2021
1 parent 2ea7de1 commit 647fca7
Show file tree
Hide file tree
Showing 7 changed files with 366 additions and 14 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
### v1.2.1 (18/09/2021)
* Changed Icon path and Assembly Data to now literalize escape characters
* Added check for Assembly Version to ensure that it contains only numbers
### v1.2.0 (14/09/2021)
* Replaced windres with a custom compiled windres that supports spaces in file paths
* Removed Base64 encoding/decoding in favor of using bytes directly, meaning no build file size overhead and much faster decoding
Expand Down
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

<img src="https://github.com/UnamSanctam/UnamBinder/blob/master/UnamBinder.png?raw=true">

# UnamBinder 1.2.0 - A free silent native file binder
# UnamBinder 1.2.1 - A free silent native file binder

A free silent (hidden) open-source native file binder.

Expand All @@ -24,6 +24,9 @@ You can find the wiki [here](https://github.com/UnamSanctam/UnamBinder/wiki) or

## Changelog

### v1.2.1 (18/09/2021)
* Changed Icon path and Assembly Data to now literalize escape characters
* Added check for Assembly Version to ensure that it contains only numbers
### v1.2.0 (14/09/2021)
* Replaced windres with a custom compiled windres that supports spaces in file paths
* Removed Base64 encoding/decoding in favor of using bytes directly, meaning no build file size overhead and much faster decoding
Expand Down
6 changes: 3 additions & 3 deletions UnamBinder/Builder.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 9 additions & 9 deletions UnamBinder/Builder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ public partial class Builder : Form
public Vanity vanity = new Vanity();
private string key = RandomString(32);

public static int MAX_PATH = 255;

public Builder()
{
InitializeComponent();
Expand Down Expand Up @@ -73,11 +71,13 @@ public void NativeCompiler(string savePath)

if (buildResource)
{
if (BuildErrorTest(!string.Join("", new string[] { vanity.txtAssemblyVersion1.Text, vanity.txtAssemblyVersion2.Text, vanity.txtAssemblyVersion3.Text, vanity.txtAssemblyVersion4.Text }).All(char.IsDigit), "Error: Assembly Version must only contain numbers.")) return;

StringBuilder resource = new StringBuilder(Properties.Resources.resource);
string defs = "";
if (vanity.checkIcon.Checked)
{
resource.Replace("#ICON", vanity.txtIconPath.Text);
resource.Replace("#ICON", ToLiteral(vanity.txtIconPath.Text));
defs += " -DDefIcon";
}
if (checkAdmin.Checked)
Expand All @@ -87,12 +87,12 @@ public void NativeCompiler(string savePath)
}
if (vanity.checkAssembly.Checked)
{
resource.Replace("#TITLE", vanity.txtAssemblyTitle.Text);
resource.Replace("#DESCRIPTION", vanity.txtAssemblyDescription.Text);
resource.Replace("#COMPANY", vanity.txtAssemblyCompany.Text);
resource.Replace("#PRODUCT", vanity.txtAssemblyProduct.Text);
resource.Replace("#COPYRIGHT", vanity.txtAssemblyCopyright.Text);
resource.Replace("#TRADEMARK", vanity.txtAssemblyTrademark.Text);
resource.Replace("#TITLE", ToLiteral(vanity.txtAssemblyTitle.Text));
resource.Replace("#DESCRIPTION", ToLiteral(vanity.txtAssemblyDescription.Text));
resource.Replace("#COMPANY", ToLiteral(vanity.txtAssemblyCompany.Text));
resource.Replace("#PRODUCT", ToLiteral(vanity.txtAssemblyProduct.Text));
resource.Replace("#COPYRIGHT", ToLiteral(vanity.txtAssemblyCopyright.Text));
resource.Replace("#TRADEMARK", ToLiteral(vanity.txtAssemblyTrademark.Text));
resource.Replace("#VERSION", string.Join(",", new string[] { vanity.txtAssemblyVersion1.Text, vanity.txtAssemblyVersion2.Text, vanity.txtAssemblyVersion3.Text, vanity.txtAssemblyVersion4.Text }));
defs += " -DDefAssembly";
}
Expand Down
2 changes: 1 addition & 1 deletion UnamBinder/File.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions UnamBinder/Vanity.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 647fca7

Please sign in to comment.