LibreOffice Language Pack

LibreOffice community · 为匹配的 LibreOffice still 安装添加所选语言包。

Cask办公Apple 芯片 · Intel
主页
来自 homebrew/cask
近 30 天安装50App榜第 1078
近一年安装966365 天累计
最新版本26.2.69月4日 · 9月4日
下载大小10MBarm64 / x86_64 · dmg
更新节奏每月近 30 天 0 个版本
来源仓库
homebrew/cask
其他名称
LibreOffice Language Pack · libreoffice-still-language-pack
SHA-256
43f55457932e0d47…

安装与卸载内容

  • 卸载 uninstall

    查看完整声明
    {
      "uninstall": [
        {
          "delete": "$HOMEBREW_PREFIX/Caskroom/libreoffice-still-language-pack/26.2.6/libreoffice-still-language-pack"
        }
      ]
    }
  • 安装 generated_script

    来源文件: SilentInstall.sh

    查看完整声明
    {
      "generated_script": [
        "SilentInstall.sh",
        {
          "content": "#!/bin/bash\npathOfApp=$(mdfind \"kMDItemContentType == 'com.apple.application-bundle' && kMDItemFSName == 'LibreOffice.app'\")\nif [[ $(mdls --raw --name kMDItemFSName --name kMDItemVersion \"$pathOfApp\" | xargs -0) == \"LibreOffice.app 26.2.6\"* ]]\nthen\n  #Test if the .app have quarantine attribute, or if they are already launched once.\n  if [[ $(xattr -l \"$pathOfApp\") != *'com.apple.quarantine'* || $(xattr -p com.apple.quarantine \"$pathOfApp\") != '0181;'* ]]\n  then\n    echo \"Silent installation has started, you didn't need to use the .app\"\n    echo \"Add language pack support for $pathOfApp\"\n    /usr/bin/tar -C \"$pathOfApp\" -xjf \"$HOMEBREW_PREFIX/Caskroom/libreoffice-still-language-pack/26.2.6/LibreOffice Language Pack.app/Contents/Resources/tarball.tar.bz2\" && touch \"$pathOfApp\"\n  else\n    echo \"You need to run $pathOfApp once before you can silently install language pack\"\n  fi\nelse\n  echo 'Silent installation cannot match the prerequisite'\n  echo \"To complete the installation of Cask libreoffice-still-language-pack, you must also run the installer at:\"\n  echo \"$HOMEBREW_PREFIX/Caskroom/libreoffice-still-language-pack/26.2.6/LibreOffice Language Pack.app\"\nfi\n"
        }
      ]
    }
  • 安装 installer

    查看完整声明
    {
      "installer": [
        {
          "script": {
            "executable": "$HOMEBREW_PREFIX/Caskroom/libreoffice-still-language-pack/26.2.6/SilentInstall.sh",
            "sudo": true
          }
        }
      ]
    }
  • 安装 postflight_steps

    查看完整声明
    {
      "postflight_steps": [
        {
          "steps": [
            {
              "paths": [
                {
                  "base": "staged_path",
                  "path": "SilentInstall.sh"
                }
              ],
              "type": "remove"
            }
          ]
        }
      ]
    }

注意事项

libreoffice-still-language-pack cannot be upgraded, instead use:

  brew reinstall --cask libreoffice-still-language-pack