UPX Stable version 2.01 released !

For everything that's not in any way related to PureBasic. General chat etc...
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

UPX Stable version 2.01 released !

Post by gnozal »

UPX Stable version 2.00 released !
The main news in version 2 are:
new format: added support for arm/pe (ARM executables running on WinCE)
new format: added support for linux elf/amd64
new format: added support for linux elf/ppc32
new format: added support for mach/ppc32 (Apple Mac OS X)
new format: added support for bootable Linux kernels ("vmlinuz/386")
new format: added support for Playstation exes ("ps1/exe")
slightly better compression using the new NRV2E algorithm
new options for compression tuning (e.g. '--brute')
improved win32/pe compatibility
direct ELF-to-memory decompression
various bug fixes
http://upx.sourceforge.net/
Last edited by gnozal on Thu Jun 08, 2006 12:40 pm, edited 2 times in total.
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
va!n
Addict
Addict
Posts: 1104
Joined: Wed Apr 20, 2005 12:48 pm

Post by va!n »

coool ^^ thanks for the info...
still thought they will never bring an update (i mean final release ;)
va!n aka Thorsten

Intel i7-980X Extreme Edition, 12 GB DDR3, Radeon 5870 2GB, Windows7 x64,
User avatar
Joakim Christiansen
Addict
Addict
Posts: 2452
Joined: Wed Dec 22, 2004 4:12 pm
Location: Norway
Contact:

Post by Joakim Christiansen »

lol, see their copyrigth!
Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
Markus F.X.J. Oberhumer, László Molnár & John F. Reiser
Shouldn't that be written like this?:
Copyright (C) 1996-2006 Markus F.X.J. Oberhumer, László Molnár & John F. Reiser

But thanks for notifying me, UPX rocks! :D
Killswitch
Enthusiast
Enthusiast
Posts: 731
Joined: Wed Apr 21, 2004 7:12 pm

Post by Killswitch »

I think (under British Copyright law) you have to specify every single year you worked on/altered the source.
~I see one problem with your reasoning: the fact is thats not a chicken~
User avatar
Joakim Christiansen
Addict
Addict
Posts: 2452
Joined: Wed Dec 22, 2004 4:12 pm
Location: Norway
Contact:

Post by Joakim Christiansen »

Well, here is a simple GUI I made for it!
Don't think there are any bugs, but please report if you find them.

Code: Select all

Enumeration ;-Enumerate gadgets
  #Path
  #Browse
  #Level
  #Compress
EndEnumeration

LoadFont(0,"Arial",8,#PB_Font_Bold)

;-Open window
OpenWindow(0,#False,#False,250,55,"JLC's UPX GUI v1.0",#PB_Window_SystemMenu|#PB_Window_ScreenCentered)
CreateGadgetList(WindowID(0))

SetGadgetFont(TextGadget(#PB_Any,5,5,25,20,"EXE:"),FontID(0))
StringGadget(#Path,30,5,150,20,"")
ButtonGadget(#Browse,185,5,60,20,"Browse")

SetGadgetFont(TextGadget(#PB_Any,5,30,120,20,"Compression level:"),FontID(0))
ComboBoxGadget(#Level,120,30,60,200)
ButtonGadget(#Compress,185,30,60,20,"Compress")

;-Add levels
For Level=1 To 9
  AddGadgetItem(#Level,-1,"Level "+Str(Level))
Next
AddGadgetItem(#Level,-1,"Best")
AddGadgetItem(#Level,-1,"Insane")
SetGadgetState(#Level,9)

Repeat
  WindowEvent = WaitWindowEvent()
  Select WindowEvent
    Case #PB_Event_Gadget
      Select EventGadget()
        Case #Browse ;-Browse
          SetGadgetText(#Path,OpenFileRequester("Select executable:","","Executable (*.exe)|*.exe",0))
        Case #Compress ;-Compress
          If GetGadgetText(#Path) > "" And FileSize(GetGadgetText(#Path)) > 0
            Select GetGadgetState(#Level)
              Case 0 To 8
                Parameter$ = "-"+Str(GetGadgetState(#Level)+1)+" "
              Case 9
                Parameter$ = "--best "
              Case 10
                Parameter$ = "--brute "
            EndSelect
            OldSize = FileSize(GetGadgetText(#Path))
            If RunProgram("upx.exe",Parameter$+Chr(34)+GetGadgetText(#Path)+Chr(34),"",#PB_Program_Wait)
              If Oldsize = FileSize(GetGadgetText(#Path))
                MessageRequester("Warning","File was not compressed, maybe it's allready compressed?",#MB_ICONWARNING)
              Else
                MessageRequester("Done","Old size: "+Str(OldSize)+#CRLF$+"New size: "+Str(FileSize(GetGadgetText(#Path))),#MB_ICONINFORMATION) 
              EndIf
            Else
              MessageRequester("Warning","Can't open UPX, the UPX executable must be in the same directory as JLC's UPX GUI!",#MB_ICONWARNING)
            EndIf
          Else
            MessageRequester("Error","No file selected!",#MB_ICONWARNING)
          EndIf
      EndSelect
  EndSelect
Until WindowEvent = #PB_Event_CloseWindow
Last edited by Joakim Christiansen on Thu Jun 08, 2006 3:58 pm, edited 2 times in total.
Inf0Byt3
PureBasic Fanatic
PureBasic Fanatic
Posts: 2236
Joined: Fri Dec 09, 2005 12:15 pm
Location: Elbonia

Post by Inf0Byt3 »

@Gnozal
Thanks. Any plans of a new PureUPX version?
None are more hopelessly enslaved than those who falsely believe they are free. (Goethe)
User avatar
netmaestro
PureBasic Bullfrog
PureBasic Bullfrog
Posts: 8452
Joined: Wed Jul 06, 2005 5:42 am
Location: Fort Nelson, BC, Canada

Post by netmaestro »

Don't think there are any bugs
Really asking for it, eh? Good job! Works well except I found a bug. The dropdown only shows "Best" for me, clicking the downarrow doesn't give any more options. :twisted:
BERESHEIT
User avatar
netmaestro
PureBasic Bullfrog
PureBasic Bullfrog
Posts: 8452
Joined: Wed Jul 06, 2005 5:42 am
Location: Fort Nelson, BC, Canada

Post by netmaestro »

You need:

Code: Select all

ComboBoxGadget(#Level,120,30,60,200) 
BERESHEIT
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post by gnozal »

Inf0Byt3 wrote:@Gnozal
Thanks. Any plans of a new PureUPX version?
Yes, I will release a new version.
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
User avatar
Joakim Christiansen
Addict
Addict
Posts: 2452
Joined: Wed Dec 22, 2004 4:12 pm
Location: Norway
Contact:

Post by Joakim Christiansen »

netmaestro wrote:
Don't think there are any bugs
Really asking for it, eh? Good job! Works well except I found a bug. The dropdown only shows "Best" for me, clicking the downarrow doesn't give any more options. :twisted:
Sorry, I was using it with "enable xp skin support" and then it works!
But thanks, updated it now!
User avatar
netmaestro
PureBasic Bullfrog
PureBasic Bullfrog
Posts: 8452
Joined: Wed Jul 06, 2005 5:42 am
Location: Fort Nelson, BC, Canada

Post by netmaestro »

That's the stuff that makes programming fun, eh? I guess it pulls the control from a different library for the skin support and it works slightly different.
BERESHEIT
KarLKoX
Enthusiast
Enthusiast
Posts: 681
Joined: Mon Oct 06, 2003 7:13 pm
Location: France
Contact:

Post by KarLKoX »

Sweet :D
"Qui baise trop bouffe un poil." P. Desproges

http://karlkox.blogspot.com/
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post by gnozal »

UPX 2.01 has been released.
The main news in version 2 are:

* new format: added support for arm/pe (ARM executables running on WinCE)
* new format: added support for linux elf/amd64
* new format: added support for linux elf/ppc32
* new format: added support for mach/ppc32 (Apple Mac OS X)
* new format: added support for bootable Linux kernels ("vmlinuz/386")
* new format: added support for Playstation exes ("ps1/exe")
* slightly better compression using the new NRV2E algorithm
* new options for compression tuning (e.g. '--brute')
* improved win32/pe compatibility
* direct ELF-to-memory decompression
* various bug fixes
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
User avatar
NoahPhense
Addict
Addict
Posts: 1999
Joined: Thu Oct 16, 2003 8:30 pm
Location: North Florida

Re: UPX Stable version 2.01 released !

Post by NoahPhense »

kewl thx..

- np
Post Reply