2017-04-23 56 views
0

我的用例是将一个ruby应用程序转换为mac上的可执行应用程序。当我在github上创建一个发行版时...意味着用户可以将该项目下载为zip并运行该程序。Platypus错误:应用程序包中缺少脚本

error message: script missing from application bundle

我有如图所示创建应用程序时选择的所有复选框:enter image description here

我把我的回答如下。这是一个快速解决方案。但是,可能不是最佳实践。如果有人提出由社区决定的更好的答案。我会做出答案。关于ruby脚本的这个问题的答案应该适用于其他脚本鸭嘴兽变成.app的

回答

0

我的解决方案,应用程序创建后;

right click .app file 
select "show package" contents 
navigate to path ... 
Contents -> Resources 

copy the script that you linked to ... in my case it was a ruby script.rb 
delete the script alias names "script" 
rename your copied script "script" without the .rb extension. 

now since the script is inside the app 
it will no longer have an issue finding the script location.