【问题标题】:OSX - Publishing Unity GamesOSX - 发布 Unity 游戏
【发布时间】:2012-11-02 21:41:41
【问题描述】:

如何将适用于 Mac OSX 的 Unity Games 推送到 Mac 商店?我似乎无法弄清楚,并且到处都看过。我知道你必须修改 info.plist 和包,但没有明确的指南!

谢谢 注意

【问题讨论】:

    标签: xcode macos unity3d


    【解决方案1】:

    提交应用到 Mac Store:

    1. 仅适用于 Mac 英特尔的 Unity 构建

    2. 从 Unity 编译后显示 .app 的包内容

    2.a.编辑 Info.plist

    <key>CFBundleShortVersionString</key>
    <string>1.0.0</string>
    <key>LSApplicationCategoryType</key>
    <string>public.app-category.sports-games</string>
    <key>NSHumanReadableCopyright</key>
    <string>© 2012 Apollo Software Solutions. All rights reserved.</string>
    <key>CFBundleIdentifier</key>
    <string>com.apolloss.GolfProHD</string>
    <key>CFBundleVersion</key>
    <string>1.0.0</string>
    

    2.b。将 Resources/UnityPlayer.icns 替换为 1024x1024(您可能需要 icns 编辑器/生成器)

    2.c。将“所有人”的 /Data 权限从“无权访问”更改为“只读”

    1. 在终端中...(您可能需要权利,如果需要,请创建权利 xml 文件并添加到 codesign 命令)。

      codesign -f -s“第 3 方 Mac 开发者应用程序:Amit Barman”GolfProHD.app

      productbuild --component GolfProHD.app /Applications --sign "3rd Party Mac Developer Installer: Amit Barman" GolfProHD.pkg

    在 productbuild 创建 .pkg 后删除 .app 文件(否则安装程序测试将不起作用)。

    sudo 安装程序 -store -pkg GolfProHD.pkg -target /

    1. 验证您的应用是否已安装在应用程序中

    2. 准备好将 .pkg 提交到 iTunes Connect!

    【讨论】:

    • 注意点:正如@AppolloSoftware 所说,要删除当前目录和后续父目录中的应用程序来测试安装它,否则它将在现有目录中简单地替换它。我错过了这部分,浪费了 2 个小时来弄清楚为什么它没有安装在 Applications 目录中
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-04-25
    • 2019-02-10
    • 1970-01-01
    • 2018-03-30
    • 1970-01-01
    相关资源
    最近更新 更多