-
Notifications
You must be signed in to change notification settings - Fork 0
/
any-install.yaml
57 lines (55 loc) · 1.88 KB
/
any-install.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# yaml-language-server: $schema=./.any-install/schema.json
sh:
file: ./dist/release/install.sh
install:
- |
# Copyright 2024 OpsBR Software Technology Inc. and contributors
# SPDX-License-Identifier: Apache-2.0
- statement: setInstallDir
with:
env: ANY_INSTALL
defaultValue: ${HOME}/.any-install
- statement: setOs
- statement: setArch
- statement: switchCases
with:
target: ${os}-${arch}
cases:
linux-x64:
- statement: download
with:
url: https://github.com/opsbr/any-install/releases/download/{{ tag }}/any-install_linux-x64.tar.gz
linux-arm64:
- statement: download
with:
url: https://github.com/opsbr/any-install/releases/download/{{ tag }}/any-install_linux-arm64.tar.gz
macos-x64:
- statement: download
with:
url: https://github.com/opsbr/any-install/releases/download/{{ tag }}/any-install_macos-x64.tar.gz
macos-arm64:
- statement: download
with:
url: https://github.com/opsbr/any-install/releases/download/{{ tag }}/any-install_macos-arm64.tar.gz
- statement: installDirectory
ps1:
file: ./dist/release/install.ps1
install:
- |
# Copyright 2024 OpsBR Software Technology Inc. and contributors
# SPDX-License-Identifier: Apache-2.0
- statement: setInstallDir
with:
env: ANY_INSTALL
defaultValue: ${HOME}/.any-install
- statement: setOs
- statement: setArch
- statement: switchCases
with:
target: ${os}-${arch}
cases:
windows-x64:
- statement: download
with:
url: https://github.com/opsbr/any-install/releases/download/{{ tag }}/any-install_windows-x64.zip
- statement: installDirectory