1 Star 0 Fork 0

Kinkley / homebrew-cask

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
source_is_not_there_error.md 1.91 KB
一键复制 编辑 原始数据 按行查看 历史

First, you need to identify which artifact is not being handled correctly anymore. It’s explicit in the error message: if it says It seems the App source…' the problem is app. The pattern is the same across all artifacts.

Fixing this error is typically easy, and requires only a bit of time on your part. Start by downloading the package for the cask: brew fetch {{cask_name}}. The last line of output will inform you of the location of the download. Navigate there and manually unpack it. As an example, lets say the structure inside the archive is as follows:

.
├─ Files/SomeApp.app
├─ Files/script.sh
└─ README.md

Now, let's look at the cask (brew cat {{cask_name}}):

(…)
app "SomeApp.app"
(…)

The cask was expecting SomeApp.app to be in the top directory of the archive (see how it says simply SomeApp.app) but the developer changed it to inside a Files directory. All we have to do is update that line of the cask to follow the new structure: app 'Files/SomeApp.app'.

Note that occasionally the app’s name changes completely (from SomeApp.app to OtherApp.app, let's say). In these instances, the filename of the cask itself, as well as its token, must also change. Consult the token reference for complete instructions on the new name.

Help us by submitting a fix. If you get stumped, open an issue explaining your steps so far and where you’re having trouble.

1
https://gitee.com/jinxin.70/homebrew-cask.git
git@gitee.com:jinxin.70/homebrew-cask.git
jinxin.70
homebrew-cask
homebrew-cask
master

搜索帮助

53164aa7 5694891 3bd8fe86 5694891