Re: Script command to download archive and calculate SHA etc.?
Mateusz Czaplinski <[email protected]> Thu, 23 Jan 2020 22:33:55 +0100
| Newsgroups | gmane.comp.file-systems.zero-install.devel |
|---|---|
| Message-ID | <CACZYt3R6nLYK0n0h7Uev8Kdi92GUZx6VryT+JnZww0mkBkmH9Q@mail.gmail.com> |
--===============0232110815954371483== Content-Type: multipart/alternative; boundary="000000000000c62181059cd566f0" --000000000000c62181059cd566f0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Bastian, Awesome, it worked, thanks!!! :) /M. On Wed, Jan 1, 2020 at 10:29 PM Bastian Eicher <[email protected]> wrote: > Hi Mateusz, > > the version of 0publish bundled with the Zero Install Publishing Tools > (Feed Editor) has an option that does exactly that: > > 0install run --command=3D0publish > http://0install.de/feeds/ZeroInstall_Tools.xml --add-missing > path\to\feed.xml > > Regards > Bastian > > -----Original Message----- > From: Mateusz Czaplinski <[email protected]> > Sent: Mittwoch, 1. Januar 2020 22:15 > To: The Zero Install system <[email protected]> > Subject: [Zero-install-devel] Script command to download archive and > calculate SHA etc.? > > Hi, > > Is there a command I could use in my script, other than 0template, that > would take a nearly-complete feed.xml, and just download the > .zip/.tar.gz/... archive I specified, and then calculate the missing SHA, > size, and other derived data, and insert them back into the .xml file? > > I'm writing a script to bulk-generate feeds for Vim plugins I use. I am > currently passing them through 0template as a workaround, but 0template > fetched a surprising amount of dependencies, and generally I'm using it i= n > a very hackish way. I have kinda suspicion there might be just some simpl= e > option in 0publish instead, that would do what I'm trying to describe? > There are quite many commands and options in 0install, and I'm still havi= ng > hard time wrapping my head around them and finding what I need - thus I'm > not sure if it's not there, or did I simply miss it? > > Thanks & Best Regards, > /Mateusz Czapli=C5=84ski. > > > > _______________________________________________ > Zero-install-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/zero-install-devel > --000000000000c62181059cd566f0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div>Hi Bastian,</div><div><br></div><div>Awesome, it work= ed, thanks!!! :)</div><div><br></div><div>/M.<br></div></div><br><div class= =3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail_attr">On Wed, Jan 1, 2020 = at 10:29 PM Bastian Eicher <<a href=3D"mailto:[email protected]">bastia= [email protected]</a>> wrote:<br></div><blockquote class=3D"gmail_quote" styl= e=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);paddin= g-left:1ex">Hi Mateusz,<br> <br> the version of 0publish bundled with the Zero Install Publishing Tools (Fee= d Editor) has an option that does exactly that:<br> <br> 0install run --command=3D0publish <a href=3D"http://0install.de/feeds/ZeroI= nstall_Tools.xml" rel=3D"noreferrer" target=3D"_blank">http://0install.de/f= eeds/ZeroInstall_Tools.xml</a> --add-missing path\to\feed.xml<br> <br> Regards<br> Bastian<br> <br> -----Original Message-----<br> From: Mateusz Czaplinski <<a href=3D"mailto:[email protected]" target= =3D"_blank">[email protected]</a>> <br> Sent: Mittwoch, 1. Januar 2020 22:15<br> To: The Zero Install system <<a href=3D"mailto:zero-install-devel@lists.= sourceforge.net" target=3D"_blank">[email protected]= </a>><br> Subject: [Zero-install-devel] Script command to download archive and calcul= ate SHA etc.?<br> <br> Hi,<br> <br> Is there a command I could use in my script, other than 0template, that wou= ld take a nearly-complete feed.xml, and just download the .zip/.tar.gz/... = archive I specified, and then calculate the missing SHA, size, and other de= rived data, and insert them back into the .xml file?<br> <br> I'm writing a script to bulk-generate feeds for Vim plugins I use. I am= currently passing them through 0template as a workaround, but 0template fe= tched a surprising amount of dependencies, and generally I'm using it i= n a very hackish way. I have kinda suspicion there might be just some simpl= e option in 0publish instead, that would do what I'm trying to describe= ? There are quite many commands and options in 0install, and I'm still = having hard time wrapping my head around them and finding what I need - thu= s I'm not sure if it's not there, or did I simply miss it? <br> <br> Thanks & Best Regards,<br> /Mateusz Czapli=C5=84ski.<br> <br> <br> <br> _______________________________________________<br> Zero-install-devel mailing list<br> <a href=3D"mailto:[email protected]" target=3D"_blan= k">[email protected]</a><br> <a href=3D"https://lists.sourceforge.net/lists/listinfo/zero-install-devel"= rel=3D"noreferrer" target=3D"_blank">https://lists.sourceforge.net/lists/l= istinfo/zero-install-devel</a><br> </blockquote></div> --000000000000c62181059cd566f0-- --===============0232110815954371483== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline --===============0232110815954371483== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Zero-install-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/zero-install-devel --===============0232110815954371483==--