-
Notifications
You must be signed in to change notification settings - Fork 26
/
Copy pathTemplate.yml
137 lines (131 loc) · 3.27 KB
/
Template.yml
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
# region General Information
'##': Cosi # Since '#' is comment, it's need to be quoted
version: '1.0' # Floats or ints need to be quoted
# version: '1' # Quotes needed
# version: 1.0.5 Not number == good
description: Cosi
homepage: https://ash258.com
license:
identifier: MIT
url: https://ash258.com/license.md # Whenever it's possible attach program specific URL, otherwise don't use
notes: Some notes printed after installation
# or
# notes:
# - COSI
# - COSI 2
# endregion General Information
# region Requirements
# depends: STRING
# or Array of strings
depends:
- bucket/cosi
- COSI # bucket will be evaluated automatically as normal installation
suggest:
SOME NAME: dependingmanifest
# COSI:
# - bucket/COSI
# - NEXT
# endregion Requirements
# region Downloading
cookie:
Name Of Cookie: Value to be set
architecture: # Or platform specific below (URL Hash extracts)
64bit:
url: https://ash258.com
hash: 899346f9f283a4fd5aa03015a3f58cde5b9c0b6a5c4d64c2cc74e9b22c1348d7
extract_dir: COSI
32bit:
url:
- https://ash258.com#/newFileName.zip
- https://ash2582.com
hash:
- 899346f9f283a4fd5aa03015a3f58cde5b9c0b6a5c4d64c2cc74e9b22c1348d7
- md5:899346f9f283a4fd5aa03015a3f58cde
extract_dir:
- DirectoryInFirstArchive
- DirectoryInSecondArchive
# endregion Downloading
# region Extracting
innosetup: true
extract_dir: COSI
extract_to: COSI
# endregion Extracting
# region Installing
pre_install: |
CreateSomeFile $newFile
$file = 'someFile.ini'
if (-not (Test-Path "$persist_dir\$file")) {
Write-Host 'File' $file 'does not exists. Creating.' -f Yellow
$CONT = @('Some content to be added to file.')
Set-Content "$dir\$file" ($CONT -join "`r`n") -Encoding Ascii
}
Write-Host $DONE
installer:
file: somefile.exe # No need to specify if it's downloaded file
args: COSI
# installer with file above or using script
# installer:
# script: |
# RemoveSomething $newFile
# Write-Host $DONE
post_install: |
RemoveSomething $newFile
Write-Host $DONE
# region UnInstalling
uninstaller:
file: file.exe
args:
- COSI
- COSI2
# endregion UnInstalling
# endregion Installing
# region Links
bin:
- SINGLE.exe
- NEXTSingle.ps1
- - FILE.exe # Array with overrided properties
- NEW NAME
- ARGUMENTS
# or
# bin: SINGLE
shortcuts:
- - FILE
- NAME
- ARGS
- ICON
- - FILE2
- NAME
- ARGS
- ICON
psmodule:
name: AdequateName
env_add_path: SINGLE
# or
# env_add_path:
# - MULTIPLE
# - MULTIPLE
env_set:
SomeENVKey: Value
persist: FOLDER
# OR array of Strings
# persist:
# - FOLDER
# - FILE.file
# endregion Links
# region Updating
checkver:
url: https://url.com # Do not include when checkver url is equal to homepage
jsonpath: $.whatever # or xmlpath: /element/child
regex: ([\d.]+)(?<NamedGrou>.*)\|(?<otherNamedGroup>.+)$
replace: ${NamedGroup}-${otherNamedGroup}
# or
# checkver: regex to be mached on homepage URL
# or
# checkver: github # if homepage is set to github repository
autoupdate:
url: https://ash258.com
hash: # Some vendors does not ship hashes
url: https://ash258.com
regex: do not write regexes for hash algorithms, use variables ($md5, $sha1, $sha256, $sha512, $checksum) # or jsonpath
note: Some note after autoupdate
# endregion Updating