Page 1 of 1

[Feature Request] Packer Option

Posted: Wed Mar 21, 2012 1:08 am
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.

Re: [Feature Request] Packer Option

Posted: Wed Mar 21, 2012 8:28 am
by jamirokwai
Hi Warmonger,

couldn't you use the Tools-menu for adding this?

Re: [Feature Request] Packer Option

Posted: Wed Mar 21, 2012 12:41 pm
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. ;)

Re: [Feature Request] Packer Option

Posted: Wed Mar 21, 2012 3:17 pm
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.

Re: [Feature Request] Packer Option

Posted: Wed Mar 21, 2012 11:06 pm
by Warmonger
Ah, im still new at PB thanks guys I will give it a look. :oops:

Re: [Feature Request] Packer Option

Posted: Thu Mar 22, 2012 9:04 am
by MachineCode
This old thread will be of immense interest to you -> http://www.purebasic.fr/english/viewtop ... 12&t=31040