-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathrsdk.json
More file actions
31 lines (31 loc) · 1.12 KB
/
rsdk.json
File metadata and controls
31 lines (31 loc) · 1.12 KB
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
{
"version": "1.0.0",
"description": "A native manager for command-line JVM tools.",
"homepage": "https://your-rsdk-repo-url",
"license": "MIT",
"architecture": {
"64bit": {
"url": "https://path-to-your-release/rsdk-windows-1.0.0-x86_64.zip",
"hash": "SHA256_HASH", // Replace with the actual SHA256 hash of the zip
"bin": "rsdk.exe",
"post_install": [
"$modulePath = \"$env:USERPROFILE\\Documents\\PowerShell\\Modules\\Rsdk\"",
"if (!(Test-Path $modulePath)) {",
" New-Item -ItemType Directory -Path $modulePath -Force | Out-Null",
"}",
"Copy-Item -Path \"$dir\\powershell\\Rsdk.psd1\" -Destination \"$modulePath\\Rsdk.psd1\" -Force",
"Copy-Item -Path \"$dir\\powershell\\Rsdk.psm1\" -Destination \"$modulePath\\Rsdk.psm1\" -Force"
],
"checkver": {
"url": "https://your-repo/releases/latest",
"regex": "rsdk-windows-([\\d.]+)-x86_64.zip"
},
"autoupdate": {
"url": "https://path-to-your-release/rsdk-windows-$version-x86_64.zip",
"hash": {
"url": "$url.sha256"
}
}
}
}
}