[Feature Request] Packer Option

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
Warmonger
Enthusiast
Enthusiast
Posts: 156
Joined: Wed Apr 20, 2011 4:24 pm

[Feature Request] Packer Option

Post by Warmonger »

I would say its safe to say it would be cool and extremely useful to have a option for a command line packer. The packer would be ran after the compiler is finished so that we can pack our binarys all in one step with the compile. Instead of having to compile and then pack which takes much longer (and is a pain in the rear end). I know this can be done and should be fairly simple for the team to implement. All we need is a file browser for selecting the packer.exe, then a input for packer command line options, and lastly a file variable for the full path to the compiled binary (such as %File%).

Example UPX

Code: Select all

Use Packer On Every Compile? (x)Yes ()No
Packer: ["C:\upx\upx.exe"] (Browse)
Command Line: [%File% --best]
Which would result in "upx.exe %File% --best".

Example Prtite32

Code: Select all

Use Packer On Every Compile? (x)Yes ()No
Packer: ["C:\petite\petite.exe"] (Browse)
Command Line: [-9 -r* %File%]
Which would result in "petite.exe -9 -r* %File%".

I don't know exactly but I think you get the idea, would save us who compile a lot, a lot of time between switching to a packer. Before we can distribute our software, most common and popular packers have a command line version as well.
Its Not A Bug, Its An Undocumented Feature!
Relax Its All Just Ones And Zeros
There Is No Place Like 127.0.0.1 Except ::1
I do things TO my computer, not WITH my computer... I am a nerd.
jamirokwai
Enthusiast
Enthusiast
Posts: 796
Joined: Tue May 20, 2008 2:12 am
Location: Cologne, Germany
Contact:

Re: [Feature Request] Packer Option

Post by jamirokwai »

Hi Warmonger,

couldn't you use the Tools-menu for adding this?
Regards,
JamiroKwai
MachineCode
Addict
Addict
Posts: 1482
Joined: Tue Feb 22, 2011 1:16 pm

Re: [Feature Request] Packer Option

Post by MachineCode »

Warmonger wrote:All we need is a file browser for selecting the packer.exe, then a input for packer command line options, and lastly a file variable for the full path to the compiled binary (such as %File%).
You've just described the Tools menu. ;)
Microsoft Visual Basic only lasted 7 short years: 1991 to 1998.
PureBasic: Born in 1998 and still going strong to this very day!
User avatar
luis
Addict
Addict
Posts: 3895
Joined: Wed Aug 31, 2005 11:09 pm
Location: Italy

Re: [Feature Request] Packer Option

Post by luis »

I actually do that using per-project specific settings (some have it, some doesn't), and as the others before me said, using the tools menu in the PB IDE.
"Have you tried turning it off and on again ?"
A little PureBasic review
Warmonger
Enthusiast
Enthusiast
Posts: 156
Joined: Wed Apr 20, 2011 4:24 pm

Re: [Feature Request] Packer Option

Post by Warmonger »

Ah, im still new at PB thanks guys I will give it a look. :oops:
Its Not A Bug, Its An Undocumented Feature!
Relax Its All Just Ones And Zeros
There Is No Place Like 127.0.0.1 Except ::1
I do things TO my computer, not WITH my computer... I am a nerd.
MachineCode
Addict
Addict
Posts: 1482
Joined: Tue Feb 22, 2011 1:16 pm

Re: [Feature Request] Packer Option

Post by MachineCode »

This old thread will be of immense interest to you -> http://www.purebasic.fr/english/viewtop ... 12&t=31040
Microsoft Visual Basic only lasted 7 short years: 1991 to 1998.
PureBasic: Born in 1998 and still going strong to this very day!
Post Reply