Changeset 0bef852


Ignore:
Timestamp:
Jul 31, 2009 2:36:15 AM (11 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
1cba7b8
Parents:
7ffb3f4
Message:

try to automate the release process

File:
1 edited

Legend:

Unmodified
Added
Removed
  • build.xml

    r7ffb3f4 r0bef852  
    572572        <ant dir="apps/desktopgui" target="build_clean" />
    573573    </target>
     574    <target name="release" depends="pkg">
     575        <echo message="================================================================" />
     576        <echo message="Did you update these files?" />
     577        <exec executable="ls">
     578            <arg value="-l" />
     579            <arg value="history.txt" />
     580            <arg value="initialNews.xml" />
     581            <arg value="installer/install.xml" />
     582            <arg value="news.xml" />
     583            <arg value="core/java/src/net/i2p/CoreVersion.java" />
     584            <arg value="router/java/src/net/i2p/router/RouterVersion.java" />
     585        </exec>
     586        <echo message="Everything is checked in, right?" />
     587        <input message="Enter new version number:" addproperty="release.number" />
     588        <fail message="You must enter a version number." >
     589            <condition>
     590                <equals arg1="${release.number}" arg2=""/>
     591            </condition>
     592        </fail>
     593        <copy file="i2pupdate.zip" tofile="i2pupdate_${release.number}.zip" />
     594        <copy file="i2pinstall.exe" tofile="i2pinstall_${release.number}.exe" />
     595        <delete file="i2pupdate.sud" failonerror="false" />
     596        <input message="Enter private signing key file:" addproperty="release.privkey" />
     597        <fail message="You must enter a path." >
     598            <condition>
     599                <equals arg1="${release.privkey}" arg2=""/>
     600            </condition>
     601        </fail>
     602        <java classname="net.i2p.crypto.TrustedUpdate" fork="true" failonerror="true">
     603            <classpath>
     604                <pathelement location="build/i2p.jar" />
     605            </classpath>
     606            <arg value="sign" />
     607            <arg value="i2pupdate.zip" />
     608            <arg value="i2pupdate.sud" />
     609            <arg value="${release.privkey}" />
     610            <arg value="${release.number}" />
     611        </java>
     612        <fail message="i2pupdate.sud generation failed!" >
     613            <condition>
     614                <length file="i2pupdate.sud" when="lt" length="1000000" />
     615            </condition>
     616        </fail>
     617        <echo message="Verify version and VALID signature:" />
     618        <java classname="net.i2p.crypto.TrustedUpdate" fork="true" failonerror="true">
     619            <classpath>
     620                <pathelement location="build/i2p.jar" />
     621            </classpath>
     622            <arg value="verifysig" />
     623            <arg value="i2pupdate.sud" />
     624        </java>
     625        <java classname="net.i2p.crypto.TrustedUpdate" fork="true" failonerror="true">
     626            <classpath>
     627                <pathelement location="build/i2p.jar" />
     628            </classpath>
     629            <arg value="showversion" />
     630            <arg value="i2pupdate.sud" />
     631        </java>
     632        <!-- will this use the monotonerc file in the current workspace? -->
     633        <echo message="Checking out fresh copy into ../i2p-${release-number} for tarballing:" />
     634        <exec executable="mtn">
     635            <arg value="co" />
     636            <arg value="-b" />
     637            <arg value="i2p.i2p" />
     638            <arg value="../i2p-${release.number}/" />
     639        </exec>
     640        <exec executable="tar">
     641            <arg value="cjf" />
     642            <arg value="i2psource_${release.number}.tar.bz2" />
     643            <arg value="-C" />
     644            <arg value=".." />
     645            <arg value="--exclude" />
     646            <arg value="i2p-${release.number}/_MTN/" />
     647            <arg value="i2p-${release.number}/" />
     648        </exec>
     649        <echo message="Sign the files:" />
     650        <exec executable="gpg">
     651            <arg value="-b" />
     652            <arg value="i2pinstall_${release.number}.exe" />
     653        </exec>
     654        <exec executable="gpg">
     655            <arg value="-b" />
     656            <arg value="i2psource_${release.number}.tar.bz2" />
     657        </exec>
     658        <exec executable="gpg">
     659            <arg value="-b" />
     660            <arg value="i2pupdate_${release.number}.zip" />
     661        </exec>
     662        <echo message="File sizes:" />
     663        <exec executable="ls">
     664            <arg value="-l" />
     665            <arg value="i2pinstall_${release.number}.exe" />
     666            <arg value="i2psource_${release.number}.tar.bz2" />
     667            <arg value="i2pupdate_${release.number}.zip" />
     668            <arg value="i2pupdate.sud" />
     669            <arg value="i2pinstall_${release.number}.exe.sig" />
     670            <arg value="i2psource_${release.number}.tar.bz2.sig" />
     671            <arg value="i2pupdate_${release.number}.zip.sig" />
     672        </exec>
     673        <echo message="SHA256 sums:" />
     674        <exec executable="sha256sum">
     675            <arg value="i2pinstall_${release.number}.exe" />
     676            <arg value="i2psource_${release.number}.tar.bz2" />
     677            <arg value="i2pupdate_${release.number}.zip" />
     678            <arg value="i2pupdate.sud" />
     679        </exec>
     680        <echo message="Don't forget to mtn tag h: i2p-${release-number}" />
     681    </target>
    574682</project>
Note: See TracChangeset for help on using the changeset viewer.