File tree Expand file tree Collapse file tree 3 files changed +9
-5
lines changed
Expand file tree Collapse file tree 3 files changed +9
-5
lines changed Original file line number Diff line number Diff line change 1+ 0.36.0
Original file line number Diff line number Diff line change 1313
1414def main (platform , arch ):
1515 is_zip = False
16+ with open ("VERSION" , "r" ) as fh :
17+ version = fh .read ().strip ()
1618 if arch == 'AMD64' :
1719 arch = 'x86_64'
1820 if platform == 'linux' :
19- filename = 'wasmtime-dev -{}-linux-c-api.tar.xz' .format (arch )
21+ filename = 'wasmtime-v{} -{}-linux-c-api.tar.xz' .format (version , arch )
2022 libname = '_libwasmtime.so'
2123 elif platform == 'win32' :
22- filename = 'wasmtime-dev -{}-windows-c-api.zip' .format (arch )
24+ filename = 'wasmtime-v{} -{}-windows-c-api.zip' .format (version , arch )
2325 is_zip = True
2426 libname = '_wasmtime.dll'
2527 elif platform == 'darwin' :
26- filename = 'wasmtime-dev -{}-macos-c-api.tar.xz' .format (arch )
28+ filename = 'wasmtime-v{} -{}-macos-c-api.tar.xz' .format (version , arch )
2729 libname = '_libwasmtime.dylib'
2830 else :
2931 raise RuntimeError ("unknown platform: " + sys .platform )
3032
31- url = 'https://github.com/bytecodealliance/wasmtime/releases/download/dev/'
33+ url = 'https://github.com/bytecodealliance/wasmtime/releases/download/v{}/' . format ( version )
3234 url += filename
3335 print ('Download' , url )
3436 dirname = '{}-{}' .format (platform , arch )
Original file line number Diff line number Diff line change 66with open ("README.md" , "r" ) as fh :
77 long_description = fh .read ()
88
9- version = "0.35.0"
9+ with open ("VERSION" , "r" ) as fh :
10+ version = fh .read ().strip ()
1011
1112# Give unique version numbers to all commits so our publication-on-each commit
1213# works on main
You can’t perform that action at this time.
0 commit comments