Skip to content

Commit

Permalink
Updated to v1.5.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 6e49b92 commit 55067bf
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 10 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
### v1.5.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.5.0 (14/09/2021)
* Replaced windres with a custom compiled windres that supports spaces in file paths
* Added new Fake Error option that will display a custom error when the build is started
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/UnamDownloader/blob/master/UnamDownloader.png?raw=true">

# UnamDownloader 1.5.0 - A free silent downloader
# UnamDownloader 1.5.1 - A free silent downloader

A free silent (hidden) open-source downloader (binder) that can be built as a native C file. A downloader is essentially the same as a binder although it downloads the files instead of storing them in memory, you can also see my [UnamBinder](https://github.com/UnamSanctam/UnamBinder) for a normal file binder.

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

## Changelog

### v1.5.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.5.0 (14/09/2021)
* Replaced windres with a custom compiled windres that supports spaces in file paths
* Added new Fake Error option that will display a custom error when the build is started
Expand Down
4 changes: 2 additions & 2 deletions UnamDownloader/Builder.Designer.cs

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

16 changes: 9 additions & 7 deletions UnamDownloader/Builder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,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 @@ -88,12 +90,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

0 comments on commit 55067bf

Please sign in to comment.