Home Download Buy Blog Forum Support

Output a zip file on bulid?

Output a zip file on bulid?

Postby firefusion on Mon Dec 13, 2010 7:59 am

I'd like to get the build process to output a zip file to a location I specify and of course exclude any files or directories i've excluded in the project settings. Is this possible?

I'm assuming this can somehow be done by passing 7zip a command line argument but it is beyond my skills. So far i've got this which says it's incorrect...

Code: Select all
build "C:\Program Files\7-Zip\7z.exe" "a C:\Users\me\Desktop\${ProjectName:Default}.Zip $ProjectDir -r"
lineNumberRegex ^(...*?):([0-9]*):?([0-9]*)
showWhenFinished true


http://www.codejacked.com/zip-up-files- ... mand-line/
firefusion
 
Posts: 218
Joined: Fri Oct 16, 2009 7:37 am

Re: Output a zip file on bulid?

Postby firefusion on Mon Dec 13, 2010 11:28 am

Yep. But excluding the files i've told the project to ignore.
firefusion
 
Posts: 218
Joined: Fri Oct 16, 2009 7:37 am

Re: Output a zip file on bulid?

Postby firefusion on Tue Dec 21, 2010 9:13 am

No one know?
firefusion
 
Posts: 218
Joined: Fri Oct 16, 2009 7:37 am

Re: Output a zip file on bulid?

Postby guillermooo on Tue Dec 21, 2010 10:49 am

The obvious solution seems to code a script (bat, shell, powershell, python...) that will do exactly what you want; I don't think there's any built-in functionality to do what you need. I believe build files simply run the executable they're pointed to and output to the console. Point the build system to your script and its output would be visible there too.

Because you can pass the $ProjectDir location to your script, you can inspect the project file for the information you need and use it to exclude files, etc.

HTH,
Guillermo
guillermooo
 
Posts: 728
Joined: Thu Jul 23, 2009 9:06 am


Return to Technical Support

Who is online

Users browsing this forum: No registered users and 31 guests