是否有一个脚本可以将 Pharo 核心图像变成更有用的东西,其中包括 OmniBrowser?
由于 Pharo 内置的编译器存在一些奇怪的问题,我无法使用最新的开发 Pharo 版本。 出色地。 我想知道是否有一种快速方法可以将核心映像与开发映像相比所缺少的所有漂亮的附加功能安装到 Pharo 中。
I cannot use the most recent dev Pharo release because of some strange issues with the compiler built into Pharo. Well. I was wondering if there is a quick way to install all the nifty extras into Pharo that the core image misses, as compared to the dev image.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
好的,OB 本身可以使用 ScriptLoader loadSuperOB 轻松下载。
达米安补充道(来自下面的评论):
Ok, OB itself can be easily downloaded using
ScriptLoader loadSuperOB
.Damien adds (from comment below):
所有非核心 Pharo 映像都会附带一个用于构建该映像的脚本。 只需编辑该文件并将其拖放到新的核心上即可。
您也可以告诉我您不喜欢 Pharo 图像中的哪些内容,以便我可以对其进行增强。
With all non-core Pharo images come a script which was used to build that image. Just edit that file and drag&drop it on a new core.
You could also tell me what you don't like in the Pharo images so that I can enhance them.
还有我在 Pharo wiki 上发布的用于构建图像的脚本:
http ://code.google.com/p/pharo/wiki/ImageBuildScripts
当然,它非常适合我的喜好和需求,但您可以将其作为示例并根据自己的需求进行调整。
There is also the script I published on the Pharo wiki that I use to build my images:
http://code.google.com/p/pharo/wiki/ImageBuildScripts
Of course it is very specific to my preferences and needs, but you can take it as an example and adapt it to your own needs.
CommandShell 适用于 Pharo 9.10.10。 由于 Pharo 缺乏 MVC,当您尝试加载包时,您会遇到几个错误,但您可以简单地继续执行第一组并放弃最后一个(尝试在 Morphic 中实际打开 CommandShell)。 此时,您将拥有一个名为
PipeableOSProcess
的类,可以非常轻松地使用它来获取输出。 例如:将以字符串形式返回 bin 目录的内容。
CommandShell works with Pharo 9.10.10. You will hit several errors as you try to load the package due to Pharo lacking MVC, but you can simply proceed past the first bunch and abandon the last one (that tries to actually open a CommandShell in Morphic). At that point, you'll have a class called
PipeableOSProcess
that can be used very easily to grab output. For example:will return the contents of your bin directory as a string.