Home | About | Account | Forums | Games
Guest   | Login
  Index  | Recent Threads  | Register  | Search  | Help  | RSS feeds  | View Unanswered Threads  
  Search  


Quick Go »
Thread Status: Normal
Forum Status: Locked
Total posts in this thread: 5
[Add To My Favorites] [Watch this Thread]
Author
Previous Thread This topic has been viewed 2589 times and has 4 replies Next Thread
BehindCurtai
Newbie



Joined: May 24, 2004
Posts: 26
Status: Offline

Generating digest.txt and digest.txt.sig for getdown

Is there any automated tool for generating digest.txt for getdown? And how do you generate digest.txt.sig?
----------------------------------------
Sig? Sig? We don't need no stinking sig.
[Feb 14, 2008 11:54:00 AM] Show Printable Version of Post        Send Private Message [Link]  Go to top 
bitbasher
Stranger



Joined: Jan 13, 2008
Posts: 7
Status: Offline

Re: Generating digest.txt and digest.txt.sig for getdown

com.threerings.getdown.tools.DigesterTask

May be used for creating the digest.txt file. You need an ant file like this:

<project name="getdown-pro" basedir="." default="use">
<target name="use" description="Use the Task" >
<taskdef name="digest"
classname="com.threerings.getdown.tools.DigesterTask"
classpath="getdown.jar:samskivert.jar"/>
<digest appdir="scenepainter-2.3" />
</target>
</project>


(Edited by mdb to avoid formatting wackiness.)
----------------------------------------
[Edit 2 times, last edit by mdb at Feb 19, 2008 2:21:24 PM]
[Feb 15, 2008 4:07:16 AM] Show Printable Version of Post        Send Private Message [Link]  Go to top 
bitbasher
Stranger



Joined: Jan 13, 2008
Posts: 7
Status: Offline

Re: Generating digest.txt and digest.txt.sig for getdown

Hrmpf, I begin to truly dislike mvnforum. It should be possible, to edit one's own posts and it shouldn't be nescessary to have to reset the password prior to login.

Anyway, here's the ant file again (hopefully more readable):




<project name="getdown-pro" basedir="." default="use">


<target name="use" description="Use the Task" >
<taskdef name="digest" classname="com.threerings.getdown.tools.DigesterTask" classpath="getdown.jar:samskivert.jar"/>
<digest appdir="scenepainter-2.3" />
</target>

</project>


[Feb 15, 2008 4:12:30 AM] Show Printable Version of Post        Send Private Message [Link]  Go to top 
BehindCurtai
Newbie



Joined: May 24, 2004
Posts: 26
Status: Offline

Re: Generating digest.txt and digest.txt.sig for getdown

... and my hosting site doesn't have ant. Go figger.
----------------------------------------
Sig? Sig? We don't need no stinking sig.
[Feb 19, 2008 8:21:40 PM] Show Printable Version of Post        Send Private Message [Link]  Go to top 
bitbasher
Stranger



Joined: Jan 13, 2008
Posts: 7
Status: Offline

Re: Generating digest.txt and digest.txt.sig for getdown

 
... and my hosting site doesn't have ant. Go figger.



You do not need ant on the webserver (neither do you need anything beyond the capability to upload files there). Everything can be prepeared on your local workstation and then simply put in place. As far as I remember, the whole process works something like this (I still have scenepainter lying around, so I use that as an example. Also I use linux, so your milleage might vary):


  • Create a tmpdir on your local machine (mkdir -p ~/tmp/scenepainter).
  • Within that tmpdir create a directory for the initial version, you wish to distribute with getdown and install the software therein (mkdir -p ~/tmp/scenepainter-2.3 ; cd ~/tmp/scenepainter/scenepainter-2.3 ; unzip ~/scenepainter-2.3.zip)
  • create your getdown.txt in that directory

    appbase = http://www.home.unix-ag.org/patrick/software/scenepainter/getdown/
    code = scenepainter.jar
    code = versionchecker.jar

    resource = README.html
    resource = tools/basic.jar
    resource = tools/ypp.jar
    resource = tools/rainbow.jar
    resource = tools/punch.jar
    resource = background.png

    jvmarg = -Xmx160M
    class = de.opalpiraten.scenepainter.versionchecker.Checker

    apparg=http://www.home.unix-ag.org/patrick/software/scenepainter/getdown/update.php

    ui.name = ScenePainter


    (note: scenepainter itself is not written to work with getdown, so I implemented versionchecker.jar as a wrapper/starter, that actually checks, if a new version is available).
  • Change to your base directory, create and run the build.xml file:

    <project name="getdown-pro" basedir="." default="use">


    <target name="use" description="Use the Task" >
    <taskdef name="digest" classname="com.threerings.getdown.tools.DigesterTask"
    classpath="getdown.jar:samskivert.jar"/>
    <digest appdir="scenepainter-2.3" />
    </target>

    </project>

  • Zip the basedir and upload it to your webserver
  • distribute getdown-pro.jar along with the getdown.txt


This is roughly, how it works, but not really how to use it. The real strength of getdown lies in automatic updates, which the above example does not show.
[Feb 22, 2008 6:20:54 AM] Show Printable Version of Post        Send Private Message [Link]  Go to top 
[Show Printable Version of Thread]

Home | About | Account | Forums | Games           ©2005 Three Rings Design, Inc