Changeset e004b0e for build.xml


Ignore:
Timestamp:
Sep 30, 2013 7:21:25 PM (7 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
32f2500
Parents:
a5c5917
Message:

Build:

  • Generate su3 file in release target
  • Add my new RSA 4096 pubkey cert for updates
  • Fix checkcerts.sh
File:
1 edited

Legend:

Unmodified
Added
Removed
  • build.xml

    ra5c5917 re004b0e  
    14971497        </fail>
    14981498        <echo message="Key file is ${release.privkey}" />
     1499        <!-- now build and verify the unpacked sud from the unpacked zip -->
    14991500        <java classname="net.i2p.crypto.TrustedUpdate" fork="true" failonerror="true">
    15001501            <classpath>
     
    15291530            <arg value="i2pupdate.sud" />
    15301531        </java>
    1531         <!-- now build and verify the packed sud from the packed zip -->
     1532        <!-- now build and verify the packed su2 from the packed zip -->
    15321533        <java classname="net.i2p.crypto.TrustedUpdate" fork="true" failonerror="true">
    15331534            <classpath>
     
    15621563            <arg value="i2pupdate.su2" />
    15631564        </java>
     1565        <!-- now build and verify the packed su3 from the packed zip -->
     1566        <input message="Enter su3 private signing key store:" addproperty="release.privkey.su3" />
     1567        <fail message="You must enter a path." >
     1568            <condition>
     1569                <equals arg1="${release.privkey.su3}" arg2=""/>
     1570            </condition>
     1571        </fail>
     1572        <input message="Enter key name (you@mail.i2p):" addproperty="release.signer.su3" />
     1573        <fail message="You must enter a name." >
     1574            <condition>
     1575                <equals arg1="${release.signer.su3}" arg2=""/>
     1576            </condition>
     1577        </fail>
     1578        <input message="Enter key password for ${release.signer.su3}:" addproperty="release.password.su3" />
     1579        <fail message="You must enter a password." >
     1580            <condition>
     1581                <equals arg1="${release.password.su3}" arg2=""/>
     1582            </condition>
     1583        </fail>
     1584        <java classname="net.i2p.crypto.SU3File" inputstring="${release.password.su3}" fork="true" failonerror="true">
     1585            <classpath>
     1586                <pathelement location="build/i2p.jar" />
     1587            </classpath>
     1588            <arg value="sign" />
     1589            <arg value="-c" />
     1590            <arg value="ROUTER" />
     1591            <arg value="-t" />
     1592            <arg value="RSA_SHA512_4096" />
     1593            <arg value="i2pupdate200.zip" />
     1594            <arg value="i2pupdate.su3" />
     1595            <arg value="${release.privkey.su3}" />
     1596            <arg value="${release.number}" />
     1597            <arg value="${release.signer.su3}" />
     1598        </java>
     1599        <echo message="Verify version and VALID signature:" />
     1600        <java classname="net.i2p.crypto.SU3File" fork="true" failonerror="true">
     1601            <classpath>
     1602                <pathelement location="build/i2p.jar" />
     1603            </classpath>
     1604            <!-- set base dir so it can find the pubkey cert -->
     1605            <jvmarg value="-Di2p.dir.base=installer/resources" />
     1606            <arg value="verifysig" />
     1607            <arg value="i2pupdate.su3" />
     1608        </java>
     1609        <java classname="net.i2p.crypto.SU3File" fork="true" failonerror="true">
     1610            <classpath>
     1611                <pathelement location="build/i2p.jar" />
     1612            </classpath>
     1613            <!-- set base dir so it can find the pubkey cert -->
     1614            <jvmarg value="-Di2p.dir.base=installer/resources" />
     1615            <arg value="showversion" />
     1616            <arg value="i2pupdate.su3" />
     1617        </java>
    15641618        <!-- will this use the monotonerc file in the current workspace? -->
    15651619        <echo message="Checking out fresh copy into ../i2p-${release.number} for tarballing:" />
     
    16091663            <arg value="i2pupdate_${release.number}.zip" />
    16101664            <arg value="i2pupdate.su2" />
     1665            <arg value="i2pupdate.su3" />
    16111666            <arg value="i2pupdate.sud" />
    16121667            <arg value="i2pinstall_${release.number}_windows.exe.sig" />
     
    16231678            <arg value="i2pupdate_${release.number}.zip" />
    16241679            <arg value="i2pupdate.su2" />
     1680            <arg value="i2pupdate.su3" />
    16251681            <arg value="i2pupdate.sud" />
    16261682            <arg value="i2pinstall_${release.number}_windows.exe.sig" />
     
    16361692            <arg value="i2pupdate_${release.number}.zip" />
    16371693            <arg value="i2pupdate.su2" />
     1694            <arg value="i2pupdate.su3" />
    16381695            <arg value="i2pupdate.sud" />
    16391696        </exec>
     
    16551712            </classpath>
    16561713            <arg value="i2pupdate-${release.number}.su2" />
     1714            <arg value="http://tracker2.postman.i2p/announce.php" />
     1715        </java>
     1716        <copy file="i2pupdate.su3" tofile="i2pupdate-${release.number}.su3" />
     1717        <java classname="org.klomp.snark.Storage" fork="true" failonerror="true">
     1718            <classpath>
     1719                <pathelement location="build/i2p.jar" />
     1720                <pathelement location="build/i2psnark.jar" />
     1721            </classpath>
     1722            <arg value="i2pupdate-${release.number}.su3" />
    16571723            <arg value="http://tracker2.postman.i2p/announce.php" />
    16581724        </java>
Note: See TracChangeset for help on using the changeset viewer.