Add terms of use to DMG in the bundle script

Co-Authored-By: Max Brunsfeld <max@zed.dev>
This commit is contained in:
Nathan Sobo 2023-03-13 15:47:15 -06:00
parent 1b4f783b97
commit 818a514110
3 changed files with 1585 additions and 4 deletions

View file

@ -119,10 +119,14 @@ hdiutil create -volname Zed -srcfolder "${dmg_source_directory}" -ov -format UDZ
# This symlink causes CPU issues with Zed if the Zed codebase is the project being worked on, so we simply remove it for now.
rm ${dmg_source_directory}/Applications
echo "Adding license agreement to DMG"
npm install --global dmg-license minimist
dmg-license script/terms/terms-of-use.json "${dmg_file_path}"
if [[ -n $MACOS_CERTIFICATE && -n $MACOS_CERTIFICATE_PASSWORD && -n $APPLE_NOTARIZATION_USERNAME && -n $APPLE_NOTARIZATION_PASSWORD ]]; then
echo "Notarizing DMG with Apple"
npm install -g notarize-cli
npx notarize-cli --file ${dmg_file_path} --bundle-id dev.zed.Zed --username "$APPLE_NOTARIZATION_USERNAME" --password "$APPLE_NOTARIZATION_PASSWORD"
npx notarize-cli --file "${dmg_file_path}" --bundle-id dev.zed.Zed --username "$APPLE_NOTARIZATION_USERNAME" --password "$APPLE_NOTARIZATION_PASSWORD"
fi
if [ "$open_result" = true ]; then

View file

@ -0,0 +1,9 @@
{
"body": [
{
"lang": "en-US",
"type": "rtf",
"file": "terms-of-use.rtf"
}
]
}

File diff suppressed because it is too large Load diff