mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-26 10:11:46 +00:00
Make IfcConvert downloads also come consistently from github releases
This commit is contained in:
@@ -96,7 +96,6 @@ OLD:=c18e4ea
|
|||||||
bump:
|
bump:
|
||||||
cd . && $(SED) -b "s/$(OLD)/$(NEW)/" Makefile
|
cd . && $(SED) -b "s/$(OLD)/$(NEW)/" Makefile
|
||||||
cd ../ifcopenshell-python/ && $(SED) -b "s/$(OLD)/$(NEW)/" Makefile
|
cd ../ifcopenshell-python/ && $(SED) -b "s/$(OLD)/$(NEW)/" Makefile
|
||||||
cd ../ifcopenshell-python/docs/ifcconvert/ && $(SED) -b "s/$(OLD)/$(NEW)/" installation.rst
|
|
||||||
|
|
||||||
.PHONY: dist
|
.PHONY: dist
|
||||||
dist:
|
dist:
|
||||||
|
|||||||
@@ -48,14 +48,21 @@ with open(os.path.join(cwd, "..", "..", "..", "VERSION"), "r") as f:
|
|||||||
from docutils import nodes
|
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"
|
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)
|
node = nodes.reference(rawtext, text, refuri=url, **options)
|
||||||
return [node], []
|
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):
|
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 ---------------------------------------------------
|
# -- General configuration ---------------------------------------------------
|
||||||
|
|||||||
@@ -14,17 +14,11 @@ Pre-built packages
|
|||||||
|
|
||||||
1. Download the appropriate version for your operating system.
|
1. Download the appropriate version for your operating system.
|
||||||
|
|
||||||
+----------------+----------------+----------------+----------------+------------------+
|
+---------------------------+-------------------------+-------------------------+---------------------------+-----------------------------+
|
||||||
| Linux 64bit | Windows 32bit | Windows 64bit | MacOS 64bit | MacOS M1 64bit |
|
| Linux 64bit | Windows 32bit | Windows 64bit | MacOS 64bit | MacOS M1 64bit |
|
||||||
+================+================+================+================+==================+
|
+===========================+=========================+=========================+===========================+=============================+
|
||||||
| build-linux64_ | build-win32_ | build-win64_ | build-macos64_ | build-macosm164_ |
|
| :ifcconvert_url:`linux64` | :ifcconvert_url:`win32` | :ifcconvert_url:`win64` | :ifcconvert_url:`macos64` | :ifcconvert_url:`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
|
|
||||||
|
|
||||||
2. Unzip the downloaded file and run IfcConvert using the command line.
|
2. Unzip the downloaded file and run IfcConvert using the command line.
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user