我已经使用pkgbuild创建默认的组件属性列表文件。该文件看起来像:使用shell脚本编辑plist文件
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList- 1.0.dtd">
<plist version="1.0">
<array>
<dict>
<key>BundleHasStrictIdentifier</key>
<true/>
<key>BundleIsRelocatable</key>
<true/>
<key>BundleIsVersionChecked</key>
<true/>
<key>BundleOverwriteAction</key>
<string>upgrade</string>
<key>RootRelativeBundlePath</key>
<string>MyApp.app</string>
</dict>
</array>
</plist>
我想通过使用shell脚本来修改此文件。我尝试使用默认写入但它没有做任何事情。
什么是做到这一点?(例如:我想BundleIsRelocatable设置为false)