加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 站长学院 > PHP教程 > 正文

如何用PHP,Ruby或Python编写程序,并使一般用户(如Win32应用程序)

发布时间:2020-12-13 18:19:44 所属栏目:PHP教程 来源:网络整理
导读:我想知道当我们用 PHP,Ruby或 Python编写程序时,我们如何让它像Win32应用程序一般用户可以轻松下载和安装? 是否有可能轻松制作Mac应用程序? ruby RubyScript2Exe RubyScript2Exe transforms your Ruby application into a standalone,compressed Windows,L
我想知道当我们用 PHP,Ruby或 Python编写程序时,我们如何让它像Win32应用程序一般用户可以轻松下载和安装?

是否有可能轻松制作Mac应用程序?

ruby

RubyScript2Exe

RubyScript2Exe transforms your Ruby application into a standalone,compressed Windows,Linux or Mac OS X (Darwin) executable.

还有一个不错的blog post about it

另一个可能的选项是Shoes GUI framework,它可以从您的Shoes应用程序创建Widows,Linux和OS X可执行文件.

蟒蛇

py2exe

py2exe is a Python Distutils extension which converts Python scripts into executable Windows programs,able to run without requiring a Python installation.

py2exe is used by BitTorrent,SpamBayes,and thousands more

PHP

Bambalam PHP EXE Compiler/Embedder

Bambalam PHP EXE Compiler/Embedder is a free command line tool to convert PHP applications to standalone Windows .exe applications. The exe files produced are totally standalone,no need for php dlls etc.

是否有可能轻松制作Mac应用程序?

Py2App

py2app is a Python setuptools command which will allow you to make standalone application bundles and plugins from Python scripts. py2app is similar in purpose and design to py2exe for Windows.

此外,开发人员工具中还包含一个实用程序“Build Applet”.将Python脚本拖放到它上面,它就变成了一个.app.该实用程序位于/ Developer / Applications / Utilities / MacPython 2.5 /

注意,以上所有内容基本上都是您的脚本,将其与Python解释器和任何依赖项一起打包,并在启动时运行您的脚本.如果您使用的GUI平台无法在Windows上运行,那么通过Py2EXE运行它将无法正常运行!

同样如Peter D所述,您需要注意依赖性 – 如果您的应用程序需要MySQL数据库,您的用户将必须单独安装以使用您的应用程序,并且您使用的每个库都会为您的可执行文件添加大小.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读