mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-09 17:31:45 +00:00
Make IfcConvert downloads also come consistently from github releases
This commit is contained in:
@@ -48,14 +48,21 @@ with open(os.path.join(cwd, "..", "..", "..", "VERSION"), "r") as f:
|
||||
from docutils import nodes
|
||||
|
||||
|
||||
def versioned_link_role(name, rawtext, text, lineno, inliner, options={}, content=[]):
|
||||
def ios_python_url(name, rawtext, text, lineno, inliner, options={}, content=[]):
|
||||
url = f"https://github.com/IfcOpenShell/IfcOpenShell/releases/download/ifcopenshell-python-{release}/ifcopenshell-python-{release}-{text}.zip"
|
||||
node = nodes.reference(rawtext, text, refuri=url, **options)
|
||||
return [node], []
|
||||
|
||||
|
||||
def ifcconvert_url(name, rawtext, text, lineno, inliner, options={}, content=[]):
|
||||
url = f"https://github.com/IfcOpenShell/IfcOpenShell/releases/download/ifcconvert-{release}/ifcconvert-{release}-{text}.zip"
|
||||
node = nodes.reference(rawtext, text, refuri=url, **options)
|
||||
return [node], []
|
||||
|
||||
|
||||
def setup(app):
|
||||
app.add_role("ios_python_url", versioned_link_role)
|
||||
app.add_role("ios_python_url", ios_python_url)
|
||||
app.add_role("ifcconvert_url", ifcconvert_url)
|
||||
|
||||
|
||||
# -- General configuration ---------------------------------------------------
|
||||
|
||||
@@ -14,17 +14,11 @@ Pre-built packages
|
||||
|
||||
1. Download the appropriate version for your operating system.
|
||||
|
||||
+----------------+----------------+----------------+----------------+------------------+
|
||||
| Linux 64bit | Windows 32bit | Windows 64bit | MacOS 64bit | MacOS M1 64bit |
|
||||
+================+================+================+================+==================+
|
||||
| build-linux64_ | build-win32_ | build-win64_ | build-macos64_ | build-macosm164_ |
|
||||
+----------------+----------------+----------------+----------------+------------------+
|
||||
|
||||
.. _build-linux64: https://s3.amazonaws.com/ifcopenshell-builds/IfcConvert-v0.8.0-c18e4ea-linux64.zip
|
||||
.. _build-win32: https://s3.amazonaws.com/ifcopenshell-builds/IfcConvert-v0.8.0-c18e4ea-win32.zip
|
||||
.. _build-win64: https://s3.amazonaws.com/ifcopenshell-builds/IfcConvert-v0.8.0-c18e4ea-win64.zip
|
||||
.. _build-macos64: https://s3.amazonaws.com/ifcopenshell-builds/IfcConvert-v0.8.0-c18e4ea-macos64.zip
|
||||
.. _build-macosm164: https://s3.amazonaws.com/ifcopenshell-builds/IfcConvert-v0.8.0-c18e4ea-macosm164.zip
|
||||
+---------------------------+-------------------------+-------------------------+---------------------------+-----------------------------+
|
||||
| Linux 64bit | Windows 32bit | Windows 64bit | MacOS 64bit | MacOS M1 64bit |
|
||||
+===========================+=========================+=========================+===========================+=============================+
|
||||
| :ifcconvert_url:`linux64` | :ifcconvert_url:`win32` | :ifcconvert_url:`win64` | :ifcconvert_url:`macos64` | :ifcconvert_url:`macosm164` |
|
||||
+---------------------------+-------------------------+-------------------------+---------------------------+-----------------------------+
|
||||
|
||||
2. Unzip the downloaded file and run IfcConvert using the command line.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user