Kotlin: Fix build on Mac (Arm)

We were getting:

$ echo foo > bar
$ jar -c -f baz.jar bar
-f : no such file or directory
baz.jar : no such file or directory
K-*��ϳR0�3��r.JM,IM�u�MEX��)h8������y�xk�r�rPYJO�?y_wTbarK���P�e2`wT    META-INF/�`wTYJO�??=META-INF/MANIFEST.My_wT�e2~�barPK��
This commit is contained in:
Ian Lynagh
2022-03-23 15:48:01 +00:00
parent 7c571dd551
commit c5e3aefe10

View File

@@ -75,7 +75,7 @@ def compile_to_jar(srcs, classpath, java_classpath, output):
compile_to_dir(srcs, classpath, java_classpath, builddir)
run_process(['jar', '-c', '-f', output,
run_process(['jar', 'cf', output,
'-C', builddir, '.',
'-C', 'src/main/resources', 'META-INF'])
shutil.rmtree(builddir)