mirror of
https://github.com/mitb-archive/filebot
synced 2024-12-23 08:18:52 -05:00
Separate stage task so we can choose to use ant-scp or rsync depending on the build machine, since rsync is much faster, but requires Linux / Mac.
This commit is contained in:
parent
da4a1d638d
commit
3a16ceb5a6
48
build.xml
48
build.xml
@ -657,39 +657,47 @@
|
|||||||
</target>
|
</target>
|
||||||
|
|
||||||
|
|
||||||
<target name="deploy-release" description="Upload release files">
|
<target name="stage" description="Stage release files">
|
||||||
<mkdir dir="${dir.release}" />
|
<mkdir dir="${dir.release}" />
|
||||||
|
|
||||||
<!-- prepare release packages -->
|
<patternset id="release.files">
|
||||||
<copy todir="${dir.release}" verbose="yes" overwrite="yes">
|
<include name="*.msi" />
|
||||||
<fileset dir="${dir.dist}">
|
<include name="*.pkg" />
|
||||||
<include name="*.msi" />
|
<include name="*.deb" />
|
||||||
<include name="*.pkg" />
|
<include name="*.tar.xz" />
|
||||||
<include name="*.deb" />
|
<include name="*.spk" />
|
||||||
<include name="*.tar.xz" />
|
</patternset>
|
||||||
<include name="*.spk" />
|
<patternset id="verification.files">
|
||||||
<include name="*.appx" />
|
<include name="*.asc" />
|
||||||
<include name="*.snap" />
|
<include name="*.sha256" />
|
||||||
</fileset>
|
</patternset>
|
||||||
</copy>
|
|
||||||
|
|
||||||
<!-- add *.asc files -->
|
<!-- add *.asc files -->
|
||||||
<release-sign>
|
<release-sign>
|
||||||
<fileset dir="${dir.release}">
|
<fileset dir="${dir.dist}">
|
||||||
<exclude name="*.asc" />
|
<patternset refid="release.files" />
|
||||||
<exclude name="*.sha256" />
|
|
||||||
</fileset>
|
</fileset>
|
||||||
</release-sign>
|
</release-sign>
|
||||||
|
|
||||||
<!-- add *.sha256 files -->
|
<!-- add *.sha256 files -->
|
||||||
<checksum algorithm="SHA-256" pattern="{0}" fileext=".sha256">
|
<checksum algorithm="SHA-256" pattern="{0}" fileext=".sha256">
|
||||||
<fileset dir="${dir.release}">
|
<fileset dir="${dir.dist}">
|
||||||
<exclude name="*.asc" />
|
<patternset refid="release.files" />
|
||||||
<exclude name="*.sha256" />
|
|
||||||
</fileset>
|
</fileset>
|
||||||
</checksum>
|
</checksum>
|
||||||
|
|
||||||
<!-- upload release files -->
|
<!-- move to release folder -->
|
||||||
|
<move todir="${dir.release}" verbose="yes" flatten="yes" overwrite="yes">
|
||||||
|
<fileset dir="${dir.dist}">
|
||||||
|
<patternset refid="release.files" />
|
||||||
|
<patternset refid="verification.files" />
|
||||||
|
</fileset>
|
||||||
|
</move>
|
||||||
|
</target>
|
||||||
|
|
||||||
|
|
||||||
|
<target name="deploy-release" description="Upload release files">
|
||||||
|
<!-- create release folder and upload release files -->
|
||||||
<release-deploy dir="${dir.release}/.." todir="${deploy.release}/${package.name}" />
|
<release-deploy dir="${dir.release}/.." todir="${deploy.release}/${package.name}" />
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user