将Shell脚本转换为* .app文件(Converting a Shell Script Into a *.app File)

使用Automator.app和Platypus.app,我已经能够将我创建的一个简单的shell脚本绑定到我的MacBook Pro上的Wi-Fi循环。 这两个结果应用程序运行正常,但有一个明显的问题,我想纠正:应用程序从程序外引用shell脚本。 我如何嵌入shell脚本并从应用程序资源中引用它,以便应用程序即使在原始源文件被移动的情况下也能运行?

Using Automator.app and Platypus.app, I have been able to bundle a simple shell script I created to power cycle wi-fi on my MacBook Pro. Both resulting apps run properly, but have one glaring issue that I want to correct: The apps reference the shell script from outside of the program. How can I embed the shell script and reference it from the app's resources so that the app can run even if the original source file is moved?

将Shell脚本转换为* .app文件(Converting a Shell Script Into a *.app File)

使用Automator.app和Platypus.app,我已经能够将我创建的一个简单的shell脚本绑定到我的MacBook Pro上的Wi-Fi循环。 这两个结果应用程序运行正常,但有一个明显的问题,我想纠正:应用程序从程序外引用shell脚本。 我如何嵌入shell脚本并从应用程序资源中引用它,以便应用程序即使在原始源文件被移动的情况下也能运行?

Using Automator.app and Platypus.app, I have been able to bundle a simple shell script I created to power cycle wi-fi on my MacBook Pro. Both resulting apps run properly, but have one glaring issue that I want to correct: The apps reference the shell script from outside of the program. How can I embed the shell script and reference it from the app's resources so that the app can run even if the original source file is moved?