roachadam / bytepress Goto Github PK
View Code? Open in Web Editor NEWCompressor for .NET executables
License: MIT License
Compressor for .NET executables
License: MIT License
My application normally reports 10.0.16299 from Environment.OSVersion but after running it through bytepress it reports 6.2.9200.0.
Compressing some files causes a negative compression ratio:
Compression Results
--------------------------------------------
Initial File Size: 8Kb
Compressed File Size: 2.67Kb
Compression Ratio: -556.25%
Warning: Compressed size is larger than original.
--------------------------------------------
Can you add a "don't allow negative compression" option? It could either stop the bytepressed version from being generated in the final location or overwrite the bytepressed version with the original.
Command-line apps that have been bytepressed fail to output to the terminal.
C:\Download\bytepress.v1.0.0.2>bytepress bytepress.exe
██████╗ ██╗ ██╗████████╗███████╗██████╗ ██████╗ ███████╗███████╗███████╗
██╔══██╗╚██╗ ██╔╝╚══██╔══╝██╔════╝██╔══██╗██╔══██╗██╔════╝██╔════╝██╔════╝
██████╔╝ ╚████╔╝ ██║ █████╗ ██████╔╝██████╔╝█████╗ ███████╗███████╗
██╔══██╗ ╚██╔╝ ██║ ██╔══╝ ██╔═══╝ ██╔══██╗██╔══╝ ╚════██║╚════██║
██████╔╝ ██║ ██║ ███████╗██║ ██║ ██║███████╗███████║███████║
╚═════╝ ╚═╝ ╚═╝ ╚══════╝╚═╝ ╚═╝ ╚═╝╚══════╝╚══════╝╚══════╝
Version: 1.0.0.2
Author: Adam Roach
Project: github.com/roachadam/bytepress
09:18:06.846: Verifying file is .NET assembly...
09:18:06.853: Calculating the best compression algorithm...
09:18:06.856: --------------------------------------------
09:18:06.857: Testing algorithm: Gzip...
09:18:06.863: Gzip Compression Ratio: 56.12%
09:18:06.863: --------------------------------------------
09:18:06.864: Testing algorithm: QuickLZ...
09:18:06.874: QuickLZ Compression Ratio: 47.12%
09:18:06.874: --------------------------------------------
09:18:06.875: Testing algorithm: LZMA...
09:18:06.970: LZMA Compression Ratio: 61.44%
09:18:06.971: --------------------------------------------
09:18:06.971: Chosen algorithm: LZMA
09:18:06.971: Writing compressed payload to %temp%...
09:18:06.972: Copying assembly information and icon...
09:18:06.985: Compiling...
09:18:07.087: Compression Results
09:18:07.089: --------------------------------------------
09:18:07.092: Initial File Size: 72.5Kb
09:18:07.092: Compressed File Size: 27.96Kb
09:18:07.093: Compression Ratio: -6.21%
09:18:07.100: Warning: Compressed size is larger than original.
09:18:07.102: --------------------------------------------
09:18:07.103: Cleaning up...
09:18:07.106: Done! File successfully bytepressed to: C:\Download\bytepress.v1.0.0.2\bytepress_bytepressed.exe
C:\Download\bytepress.v1.0.0.2>bytepress_bytepressed.exe bytepress_bytepressed.exe
C:\Download\bytepress.v1.0.0.2>
Even though the referenced assemblies are for 4.5, it still is showing as 4.0 in dnSpy
Consider using dnlib to merge assemblies instead.
in addition to the "l" and "lib" arguments, users should be able to just drop all assemblies onto bytepress and merge
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.