microsoft / Mobius

C# and F# language binding and extensions to Apache Spark
MIT License
943 stars 213 forks source link

set correct permissions on build artifacts #465

Open skaarthik opened 8 years ago

skaarthik commented 8 years ago

All files in the Mobius build output have 664 permissions. To use Mobius in Linux, one has to manually do chmod on sparkclr-submit.sh and .exe files (CSharpWorker, samples, examples etc.). Mobius users should not have to do this. We have to take care of this right after build is done or before packaging bits for release.

@kai-zeng - comments?

kai-zeng commented 8 years ago

Shall we always release the one built on Linux?

BTW, since now we always set the modes of.exe files to 755 when we zip the dependencies, so only the mode of sparkclr-submit.sh is a problem.

skaarthik commented 8 years ago

@kai-zeng - release is now done on AppVeyor. I do not know how easy it is to move that over to Travis.

skaarthik commented 8 years ago

Will add instructions in M3

Myasuka commented 8 years ago

Currently, when AppVeyor release spark-clr-*.zip, Build.cmd script uses 7z to generate *.zip in which all files are 644 permission under Linux. However if we generate *.tar file, all files are 755 permission under Linux. Although it behaves a little strange, user would not manually do chmod on sparkclr-submit.sh and .exe files.