将 exe 打包为一个文件,类似于 mac 上的 .app
我正在尝试创建一个带有可写资源文件夹的独立应用程序。我想将其包含在 exe 中,类似于在 OSX 上使用 .app 完成的操作。这可能吗?
谢谢!
I am trying to create a standalone app with a resources folder that is writable. I would like to include this in the exe, similar as to how it is done on OSX with an .app. Is this possible?
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
假设您正在谈论现代 Windows 操作系统,即使您可以提出解决方案,您也可能会遇到问题。大多数应用程序都放在 Program Files 目录下,默认情况下只有管理员具有写入权限,因此将应用程序需要写入的任何内容存储在 Windows 中的可执行文件旁边通常被认为是一件坏事。
Assuming that you're talking about a modern Windows OS you're probably going to have problems with this even if you could come up with a solution. Most apps gets put under the Program Files directory and by default only Admins have write permissions there so it's generally seen as a bad thing to store anything the app needs to write to next to the executable in Windows.