Compilation 使用Nessery文件为Unix和Mac编译.sh

Compilation 使用Nessery文件为Unix和Mac编译.sh,compilation,sh,Compilation,Sh,有没有办法让我可以为Unix和Mac编译一个.sh,所以: 代码被混淆了 我可以将它工作所需的文件放入实际编译的产品中 任何帮助都将不胜感激。我绝不会推荐混淆代码。 但如果你必须的话 该计划: Flatten indentation Remove full-line comments (except the initial hashbang (#!)) and blank lines Renames all lowercase variables in basic declarations (t

有没有办法让我可以为Unix和Mac编译一个.sh,所以:

代码被混淆了

我可以将它工作所需的文件放入实际编译的产品中


任何帮助都将不胜感激。

我绝不会推荐混淆代码。 但如果你必须的话

该计划:

Flatten indentation
Remove full-line comments (except the initial hashbang (#!)) and blank lines
Renames all lowercase variables in basic declarations (to avoid renaming variables like PATH), for     
loops, array access, and 'read' statements.

我如何在可执行文件中添加必要的文件,我只是想将其隐藏?你这是什么意思?您有什么特别的问题吗?我有file.jar,我在.sh中有一些参数来正确加载.jar。我希望.jar可以嵌入到可执行文件中,我需要查看这两个代码来告诉您如何执行。set+v java-Xincgc-Xmx800m-jar minecraft.jar sleep是.sh&minecraft.jar只是一个定制的minecraft启动器,您可能会在超级用户上运气更好。