Update
This commit is contained in:
parent
6a5e28dc1c
commit
eefc1e7aa1
@ -73,6 +73,13 @@
|
||||
"PrintSpoofer64.exe"
|
||||
]
|
||||
},
|
||||
"PowerShell/Win32-OpenSSH": {
|
||||
"local_version": "v9.2.0.0p1-Beta",
|
||||
"files": [
|
||||
"OpenSSH-Win32-{nobeta_version}.msi",
|
||||
"OpenSSH-Win64-{nobeta_version}.msi"
|
||||
]
|
||||
},
|
||||
"jpillora/chisel": {
|
||||
"local_version": "v1.8.1",
|
||||
"files": [
|
||||
|
@ -91,7 +91,9 @@ def githubmastersync(reponame, filepaths, credz):
|
||||
def githubreleasesync(reponame, repoinfo, credz):
|
||||
local_version = repoinfo['local_version']
|
||||
last_version = get_last_release_info(reponame, credz)
|
||||
|
||||
short_version = last_version.replace('v', '')
|
||||
nobeta_version = last_version.replace('p1-Beta', '') # See https://github.com/PowerShell/Win32-OpenSSH/releases
|
||||
|
||||
filenames = repoinfo['files']
|
||||
|
||||
@ -100,12 +102,12 @@ def githubreleasesync(reponame, repoinfo, credz):
|
||||
inpath = filename['inpath']
|
||||
outpath = filename['outpath']
|
||||
filename = filename['filename']
|
||||
filename = filename.replace('{last_version}', last_version).replace('{short_version}', short_version)
|
||||
filename = filename.replace('{last_version}', last_version).replace('{short_version}', short_version).replace('{nobeta_version}', nobeta_version)
|
||||
localfile = Path('files').joinpath(outpath)
|
||||
print(f" * {localfile} ", end='')
|
||||
|
||||
else:
|
||||
filename = filename.replace('{last_version}', last_version).replace('{short_version}', short_version)
|
||||
filename = filename.replace('{last_version}', last_version).replace('{short_version}', short_version).replace('{nobeta_version}', nobeta_version)
|
||||
localfile = Path('files').joinpath(Path(filename).name)
|
||||
print(f" * {localfile} ", end='')
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user