mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-12 18:27:24 +01:00
Change repo workflow to work similar to json.
This commit is contained in:
parent
3b1032cd1d
commit
853fc37601
2 changed files with 27 additions and 26 deletions
31
.github/workflows/release.yml
vendored
31
.github/workflows/release.yml
vendored
|
|
@ -62,32 +62,11 @@ jobs:
|
||||||
- name: Write out repo.json
|
- name: Write out repo.json
|
||||||
run: |
|
run: |
|
||||||
$ver = '${{ github.ref }}' -replace 'refs/tags/',''
|
$ver = '${{ github.ref }}' -replace 'refs/tags/',''
|
||||||
|
$path = './base_repo.json'
|
||||||
$json = '[' + '\n'
|
$new_path = './repo.json'
|
||||||
$json += ' {' + '\n'
|
$content = get-content -path $path
|
||||||
$json += ' "Author": "Adam",' + '\n'
|
$content = $content -replace '1.0.0.0',$ver
|
||||||
$json += ' "Name": "Penumbra",' + '\n'
|
set-content -Path $new_path -Value $content
|
||||||
$json += ' "Description": "Runtime mod loader and manager.",' + '\n'
|
|
||||||
$json += ' "InternalName": "Penumbra",' + '\n'
|
|
||||||
$json += ' "AssemblyVersion": "1.0.0.0",' + '\n'
|
|
||||||
$json += ' "TestingAssemblyVersion": "1.0.0.0",' + '\n'
|
|
||||||
$json += ' "RepoUrl": "https://github.com/xivdev/Penumbra",' + '\n'
|
|
||||||
$json += ' "ApplicableVersion": "any",' + '\n'
|
|
||||||
$json += ' "DalamudApiLevel": 4,' + '\n'
|
|
||||||
$json += ' "IsHide": "False",' + '\n'
|
|
||||||
$json += ' "IsTestingExclusive": "False",' + '\n'
|
|
||||||
$json += ' "DownloadCount": 0,' + '\n'
|
|
||||||
$json += ' "LastUpdate": 0,' + '\n'
|
|
||||||
$json += ' "LoadPriority": 69420,' + '\n'
|
|
||||||
$json += ' "DownloadLinkInstall": "https://github.com/xivdev/Penumbra/releases/download/1.0.0.0/Penumbra.zip",' + '\n'
|
|
||||||
$json += ' "DownloadLinkTesting": "https://github.com/xivdev/Penumbra/releases/download/1.0.0.0/Penumbra.zip",' + '\n'
|
|
||||||
$json += ' "DownloadLinkUpdate": "https://github.com/xivdev/Penumbra/releases/download/1.0.0.0/Penumbra.zip",' + '\n'
|
|
||||||
$json += ' "IconUrl": "https://raw.githubusercontent.com/xivdev/Penumbra/master/images/icon.png"' + '\n'
|
|
||||||
$json += ' }' + '\n'
|
|
||||||
$json += ']' + '\n'
|
|
||||||
|
|
||||||
$json = $json -replace '1.0.0.0',$ver
|
|
||||||
set-content -Path "./repo.json" -Value $json
|
|
||||||
|
|
||||||
- name: Commit repo.json
|
- name: Commit repo.json
|
||||||
run: |
|
run: |
|
||||||
|
|
|
||||||
22
base_repo.json
Normal file
22
base_repo.json
Normal file
|
|
@ -0,0 +1,22 @@
|
||||||
|
[
|
||||||
|
{
|
||||||
|
"Author": "Adam",
|
||||||
|
"Name": "Penumbra",
|
||||||
|
"Description": "Runtime mod loader and manager.",
|
||||||
|
"InternalName": "Penumbra",
|
||||||
|
"AssemblyVersion": "1.0.0.0",
|
||||||
|
"TestingAssemblyVersion": "1.0.0.0",
|
||||||
|
"RepoUrl": "https://github.com/xivdev/Penumbra",
|
||||||
|
"ApplicableVersion": "any",
|
||||||
|
"DalamudApiLevel": 4,
|
||||||
|
"IsHide": "False",
|
||||||
|
"IsTestingExclusive": "False",
|
||||||
|
"DownloadCount": 0,
|
||||||
|
"LastUpdate": 0,
|
||||||
|
"LoadPriority": 69420,
|
||||||
|
"DownloadLinkInstall": "https://github.com/xivdev/Penumbra/releases/download/1.0.0.0/Penumbra.zip",
|
||||||
|
"DownloadLinkTesting": "https://github.com/xivdev/Penumbra/releases/download/1.0.0.0/Penumbra.zip",
|
||||||
|
"DownloadLinkUpdate": "https://github.com/xivdev/Penumbra/releases/download/1.0.0.0/Penumbra.zip",
|
||||||
|
"IconUrl": "https://raw.githubusercontent.com/xivdev/Penumbra/master/images/icon.png"
|
||||||
|
}
|
||||||
|
]
|
||||||
Loading…
Add table
Add a link
Reference in a new issue