-
Notifications
You must be signed in to change notification settings - Fork 0
How to update the installer link
This page shows how to update the link the a new installer for the bhom.xyz website.
Each link, in every part of the website, points to a single page https://bhom.xyz/installer, which contains the link to the actual installer.
There are two main assets to take care of:
- Upload the new installer file
- Update the installer link in the website source code
The installer files are locate in the bhom.github.io\assets\installers
folder:
bhom.github.io
|-_data
|-_includes
|-_layouts
|-_sass
|-assets
|-assets
|-css
|-fonts
|-images
|-installers
|-installer.exe
|-samples
|-video
|-docs
|-pages
Upload the new installer file in that folder.
The source code of the page can be found at: https://github.com/BHoM/bhom.github.io/blob/master/pages/installer.html
bhom.github.io
|-_data
|-_includes
|-_layouts
|-_sass
|-assets
|-docs
|-pages
|-installer
The source code will look similar to this:
---
permalink: /installer/
---
<head>
<script>
(function redirect() {
window.location = window.location = "https://bhom.xyz/assets/installers/BHoM_v2.2.beta.0.exe";
setTimeout(function(){
window.location = "https://github.com/BHoM/documentation/wiki";
}, 500);
})();
</script>
</head>
<body>
</body>
To update the link to the installer, replace the value of window.location
with
window.location = "https://bhom.xyz/assets/installers/{NAME_OF_THE_UPLOADED_INSTALLER_FILE}.exe";
There are two places where the version of the installer is explicitly written, they require update, e.g. 2.3.β.0 to 2.4.β.0.
In the _includes/why.html
file, search for <span class="fas fa-arrow-down x2">
(you can CTRL + F in most browsers), you'll find two occurrences. This is how they look like at the time of writing:
- Desktop version
<div class="col right">
<a class="button-link noborder" href="{{ "installer" | relative_url }}"><span class="fas fa-arrow-down x2"></span><span class="new">New!</span> 2.3.β.0 installer</a></button>
</div>
- Mobile version
<div class="col s-and-lower left">
<a class=" button-link noborder" href="{{ "installer" | relative_url }}"><span class="fas fa-arrow-down x2"></span><span class="new">New 2.3.β.0 installer!</span></a>
</div>