问题标签 [pkgbuild]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
258 浏览

osx-mavericks - OS X application crashes when installed from pkg but copying the .app folder runs fine

I created a .pkg installer using Iceberg on OS X.

The installer runs fine, but when I try to run the installed application, it crashes within a couple seconds.

However if I take the same .app folder from the XCode build and copy it in the Finder to the Applications folder, the application runs fine and does not crash.

So the only difference is the copy method. From the .pkg installer the app crashes. If I just do a simple copy, the application runs fine.

In Iceberg, I even turned off "compress" in the archiving options to see if that was causing problems.

Can you think of any reason why the .PKG .app folder would be different?

Thanks for your help.

0 投票
1 回答
868 浏览

macos - Mac productbuild 给出 JavaScriptError

我正在尝试使用 Macproductbuild应用程序为我的应用程序制作安装程序。

运行productbuild它不会引发任何错误,但是当我尝试打开包时它说:

当我试图查看安装程序日志时,它说:

我如何调试/解决这个问题?我错过了一些文件吗?

0 投票
1 回答
1668 浏览

python - 应用程序加载程序:使用 productbuild 创建 .pkg 文件时出错

我正在测试命令“productbuild”来归档我的应用程序包 CEMHapp。这个想法是将构建的 .pkg 文件提交到 Mac App Store。目前,我遇到以下问题:

当我尝试运行基本命令时:

我收到以下错误消息:

我也试过命令“pkgbuild”,即

但是出现以下错误

奇怪的是,CEMHapp.app 文件运行起来就像一个魅力,所以我不明白为什么系统会给我上述错误。任何人都可以阐明这个话题并给我一些指导吗?

CEMHapp 是使用 QtCreator 和 Python 开发的开源免费应用程序。捆绑包 (CEMHapp.app) 是使用 pyinstaller 创建的,可以在http://concrete.fsv.cvut.cz/~wilson/Software/CEMHapp_v.1.0_MacOSX_10.9.2.dmg下载

最好的问候和提前感谢,W。

0 投票
0 回答
105 浏览

compiler-construction - 安装 XDS-x86 modula 2 编译器

我正在尝试安装编译器 XDS-x86。我已经下载了包,但是当我输入 makepkg 时出现错误: 错误:PKGBUILD 不存在 任何提示?

0 投票
1 回答
1708 浏览

xcode - productbuild:将第三方产品存档添加到安装程序?

我需要制作 Mac OS 应用程序安装程序,它还安装其他第三方包。

当尝试通过 productbuild --synthesize 添加它时,它会告诉“ThirdPartyPackage.pkg 是产品存档,而不是组件包”。

那么,我应该如何正确地将第三方产品安装程序插入到我的安装程序中呢?

0 投票
1 回答
287 浏览

macos - 通用用户库/颜色文件夹的路径?

我正在构建一个将.clr文件安装到用户library/color文件夹中的包。问题在于以下路径:

导致在他们的 Mac 上使用我的计算机名称和 clr 创建一个新文件夹。里面的文件。

如果我使用

然后它只是将它存储在 Macintosh HD 文件夹中的 Main Library 文件夹中。或者,如果我希望它出现在 Mac 上的所有用户面前,这是否是正确的文件夹?

我究竟做错了什么?谢谢!

0 投票
1 回答
452 浏览

installation - OS X Mavericks 不安装平面包

我有小牛队 10.9.4。我使用 pkgbuild 和 productbuild 创建了一个平面包并尝试安装它。一切正常,用户界面显示包安装成功,日志没有显示任何错误。除了,该软件包未安装。我搜索了这些文件,但在系统的任何地方都找不到它们,所以指定位置有问题。禁用 Gatakeeper 没有帮助。在命令行中使用安装程序不会安装软件包,也不会显示任何问题。

此外,“pkgbuild --analyze”会生成一个空属性列表。

我从互联网上下载了 MacPorts 包 (.pkg) 并尝试安装它,同样的事情。

我安装 bundle-stype 包没有问题。

0 投票
1 回答
585 浏览

xcode - OSX 安装程序包:如何在我的应用程序的安装程序中选择安装语言?

我已经使用 pkgbuild 和 productbuild 为我的应用程序创建了一个安装程序,它工作正常。我有不同语言(英语、日语、法语)的许可证文件。如何允许用户选择阅读他们选择的许可证文件?我想我需要在 Distribution.xml 文件中的“license”标签中指定它。我可以在那里指定多个文件吗?

0 投票
7 回答
18228 浏览

macos - 使用 shell 脚本编辑 plist 文件

我使用 pkgbuild 创建了一个默认的组件属性列表文件。该文件如下所示:

我想通过使用 shell 脚本来修改这个文件。我尝试使用默认写入,但它没有做任何事情。

怎么做?(例如:我想设置BundleIsRelocatable为false)

0 投票
1 回答
1255 浏览

macos - Adding files in creating pkg in mac os x

How can I include files needed by preinstall/postinstall scripts when creating .pkg in mac osx?

I have performed this command in the terminal and have generated .pkg; however, nothing happens when I double click the generated .pkg file.

pkgbuild --root ./files --scripts ./scripts --identifier com.example.myapp --version 1 --install-location /Applications mypackage.pkg

where: /files (contains necessary files for preinstall/postinstall scripts) and /scripts (contains preinstall/postinstall scripts)