Skip to content

Commit

Permalink
temporary revert downloaded artifacts' handling with wrong access rights
Browse files Browse the repository at this point in the history
  • Loading branch information
neodix42 committed Sep 13, 2024
1 parent 875dfde commit f51a94f
Showing 1 changed file with 122 additions and 6 deletions.
128 changes: 122 additions & 6 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -406,32 +406,148 @@
<then>
<echo>"Building MyLocalTon x86-64 ${ton_branch}"</echo>
<get retries="3" src="${linux.amd64.ton.binaries.uri}"
dest="${basedir}/src/main/resources/org/ton/binaries/ton-linux-x86_64.zip"
dest="${project.build.directory}/binaries-linux-x86_64.zip"
verbose="false"
usetimestamp="true"/>
<if>
<available file="${project.build.directory}/binaries-linux-x86_64"/>
<then>
</then>
<else>
<unzip src="${project.build.directory}/binaries-linux-x86_64.zip"
dest="${project.build.directory}/binaries-linux-x86_64"/>
</else>
</if>

<get retries="3" src="${mac.amd64.ton.binaries.uri}"
dest="${basedir}/src/main/resources/org/ton/binaries/ton-mac-x86_64.zip"
dest="${project.build.directory}/binaries-mac-x86_64.zip"
verbose="false"
usetimestamp="true"/>

<if>
<available file="${project.build.directory}/binaries-mac-x86_64"/>
<then>
</then>
<else>
<unzip src="${project.build.directory}/binaries-mac-x86_64.zip"
dest="${project.build.directory}/binaries-mac-x86_64"/>
</else>
</if>

<get retries="3" src="${win.amd64.ton.binaries.uri}"
dest="${basedir}/src/main/resources/org/ton/binaries/ton-win-x86_64.zip"
dest="${project.build.directory}/binaries-windows-x86_64.zip"
verbose="false"
usetimestamp="true"/>
<if>
<available file="${project.build.directory}/binaries-windows-x86_64"/>
<then>
</then>
<else>
<unzip src="${project.build.directory}/binaries-windows-x86_64.zip"
dest="${project.build.directory}/binaries-windows-x86_64"/>
</else>
</if>

<if>
<available
file="${basedir}/src/main/resources/org/ton/binaries/ton-linux-x86_64.zip"/>
<then>
</then>
<else>
<zip destfile="${basedir}/src/main/resources/org/ton/binaries/ton-linux-x86_64.zip">
<zipfileset filemode="777"
dir="${project.build.directory}/binaries-linux-x86_64/"
includes="**/*"/>
</zip>
</else>
</if>

<if>
<available
file="${basedir}/src/main/resources/org/ton/binaries/ton-mac-x86_64.zip"/>
<then>
</then>
<else>
<zip destfile="${basedir}/src/main/resources/org/ton/binaries/ton-mac-x86_64.zip">
<zipfileset filemode="777"
dir="${project.build.directory}/binaries-mac-x86_64/"
includes="**/*"/>
</zip>
</else>
</if>

<if>
<available
file="${basedir}/src/main/resources/org/ton/binaries/ton-win-x86_64.zip"/>
<then>
</then>
<else>
<zip destfile="${basedir}/src/main/resources/org/ton/binaries/ton-win-x86_64.zip">
<zipfileset filemode="777"
dir="${project.build.directory}/binaries-windows-x86_64/"
includes="**/*"/>
</zip>
</else>
</if>

</then>
<else>
<echo>"Building MyLocalTon arm64 ${ton_branch}"</echo>
<get retries="3" src="${linux.arm64.ton.binaries.uri}"
dest="${basedir}/src/main/resources/org/ton/binaries/ton-linux-arm64.zip"
dest="${project.build.directory}/binaries-linux-arm64.zip"
verbose="false"
usetimestamp="true"/>
<if>
<available file="${project.build.directory}/binaries-linux-arm64"/>
<then>
</then>
<else>
<unzip src="${project.build.directory}/binaries-linux-arm64.zip"
dest="${project.build.directory}/binaries-linux-arm64"/>
</else>
</if>

<get retries="3" src="${mac.arm64.ton.binaries.uri}"
dest="${basedir}/src/main/resources/org/ton/binaries/ton-mac-arm64.zip"
dest="${project.build.directory}/binaries-mac-arm64.zip"
verbose="false"
usetimestamp="true"/>
<if>
<available file="${project.build.directory}/binaries-mac-arm64"/>
<then>
</then>
<else>
<unzip src="${project.build.directory}/binaries-mac-arm64.zip"
dest="${project.build.directory}/binaries-mac-arm64"/>
</else>
</if>

<if>
<available
file="${basedir}/src/main/resources/org/ton/binaries/ton-linux-arm64.zip"/>
<then>
</then>
<else>
<zip destfile="${basedir}/src/main/resources/org/ton/binaries/ton-linux-arm64.zip">
<zipfileset filemode="777"
dir="${project.build.directory}/binaries-linux-arm64/"
includes="**/*"/>
</zip>
</else>
</if>

<if>
<available
file="${basedir}/src/main/resources/org/ton/binaries/ton-mac-arm64.zip"/>
<then>
</then>
<else>
<zip destfile="${basedir}/src/main/resources/org/ton/binaries/ton-mac-arm64.zip">
<zipfileset filemode="777"
dir="${project.build.directory}/binaries-mac-arm64/"
includes="**/*"/>
</zip>
</else>
</if>

</else>
</if>
</target>
Expand Down

0 comments on commit f51a94f

Please sign in to comment.