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