add arm64 info to Cask-Cookbook.md
This commit is contained in:
parent
fed93bb934
commit
ab8d372272
@ -502,6 +502,7 @@ The available symbols for hardware are:
|
|||||||
| ---------- | -------------- |
|
| ---------- | -------------- |
|
||||||
| `:x86_64` | 64-bit Intel |
|
| `:x86_64` | 64-bit Intel |
|
||||||
| `:intel` | 64-bit Intel |
|
| `:intel` | 64-bit Intel |
|
||||||
|
| `:arm64` | Apple M1 |
|
||||||
|
|
||||||
The following are all valid expressions:
|
The following are all valid expressions:
|
||||||
|
|
||||||
@ -509,10 +510,9 @@ The following are all valid expressions:
|
|||||||
depends_on arch: :intel
|
depends_on arch: :intel
|
||||||
depends_on arch: :x86_64 # same meaning as above
|
depends_on arch: :x86_64 # same meaning as above
|
||||||
depends_on arch: [:x86_64] # same meaning as above
|
depends_on arch: [:x86_64] # same meaning as above
|
||||||
|
depends_on arch: :arm64
|
||||||
```
|
```
|
||||||
|
|
||||||
Since as of now all the macOS versions we support only run on 64-bit Intel, `depends_on arch:` is never necessary.
|
|
||||||
|
|
||||||
#### All depends_on Keys
|
#### All depends_on Keys
|
||||||
|
|
||||||
| key | description |
|
| key | description |
|
||||||
@ -750,7 +750,7 @@ strategy :header_match do |headers|
|
|||||||
v = headers["content-disposition"][/MyApp-(\d+(?:\.\d+)*)\.zip/i, 1]
|
v = headers["content-disposition"][/MyApp-(\d+(?:\.\d+)*)\.zip/i, 1]
|
||||||
id = headers["location"][%r{/(\d+)/download$}i, 1]
|
id = headers["location"][%r{/(\d+)/download$}i, 1]
|
||||||
next if v.blank? || id.blank?
|
next if v.blank? || id.blank?
|
||||||
|
|
||||||
"#{v},#{id}"
|
"#{v},#{id}"
|
||||||
end
|
end
|
||||||
```
|
```
|
||||||
@ -761,7 +761,7 @@ Similarly, the `:page_match` strategy can also be used for more complex versions
|
|||||||
strategy :page_match do |page|
|
strategy :page_match do |page|
|
||||||
match = page.match(%r{href=.*?/(\d+)/MyApp-(\d+(?:\.\d+)*)\.zip}i)
|
match = page.match(%r{href=.*?/(\d+)/MyApp-(\d+(?:\.\d+)*)\.zip}i)
|
||||||
next if match.blank?
|
next if match.blank?
|
||||||
|
|
||||||
"#{match[2]},#{match[1]}"
|
"#{match[2]},#{match[1]}"
|
||||||
end
|
end
|
||||||
```
|
```
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user