Skip to content

Commit 273c9b3

Browse files
committed
Fix launch4j extraction if cross compiling from linux
1 parent 7da7eaf commit 273c9b3

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

build/build.xml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -899,6 +899,10 @@
899899
<echo>Untarring ${archive_file} into folder ${dest_folder}</echo>
900900
<untar src="${archive_file}" dest="${dest_folder}" compression="bzip2"/>
901901
</target>
902+
<target name="untar-gzip" depends="untar-unzip-checksum" unless="${archive_file}_installed">
903+
<echo>Untarring ${archive_file} into folder ${dest_folder}</echo>
904+
<untar src="${archive_file}" dest="${dest_folder}" compression="gzip"/>
905+
</target>
902906

903907
<target name="unzip" depends="untar-unzip-checksum" unless="${archive_file}_installed">
904908
<echo>Unzipping ${archive_file} into folder ${dest_folder}</echo>
@@ -989,12 +993,15 @@
989993
</target>
990994

991995
<target name="download-launch4j-linux">
992-
<antcall target="untar">
996+
<antcall target="untar-gzip">
993997
<param name="archive_file" value="windows/launch4j-3.9-linux.tgz"/>
994998
<param name="archive_url" value="https://downloads.arduino.cc/tools/launch4j-3.9-linux.tgz"/>
995999
<param name="final_folder" value="windows/launcher/launch4j"/>
9961000
<param name="dest_folder" value="windows/launcher/"/>
9971001
</antcall>
1002+
<antcall target="make-file-executable">
1003+
<param name="file" value="windows/launcher/launch4j/bin/*" />
1004+
</antcall>
9981005
</target>
9991006

10001007
<target name="windows-build"

0 commit comments

Comments
 (0)