Skip to content

Commit 08800e6

Browse files
committed
Remove checksum block from pre-release page when there are no pre-releases
1 parent 1270e0a commit 08800e6

File tree

2 files changed

+3
-42
lines changed

2 files changed

+3
-42
lines changed
Lines changed: 0 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +0,0 @@
1-
Checksum Files
2-
--------------
3-
4-
Checksum files are released alongside the packages. These files can be used to verify the downloaded package.
5-
6-
* **Linux AppImage:** :octicon:`download` `Checksum File <https://github.com/vkbo/novelWriter/releases/download/v2.7rc1/novelWriter-2.7rc1.AppImage.sha256>`__
7-
* **Debian Package:** :octicon:`download` `Checksum File <https://github.com/vkbo/novelWriter/releases/download/v2.7rc1/novelwriter_2.7rc1_all.deb.sha256>`__
8-
* **Windows Installer:** :octicon:`download` `Checksum File <https://github.com/vkbo/novelWriter/releases/download/v2.7rc1/novelwriter-2.7rc1-amd64-setup.exe.sha256>`__
9-
* **MacOS DMG Image (Intel):** :octicon:`download` `Checksum File <https://github.com/vkbo/novelWriter/releases/download/v2.7rc1/novelWriter-2.7rc1-x86_64.dmg.sha256>`__
10-
* **MacOS DMG Image (M1):** :octicon:`download` `Checksum File <https://github.com/vkbo/novelWriter/releases/download/v2.7rc1/novelWriter-2.7rc1-aarch64.dmg.sha256>`__
11-
12-
.. rubric:: Verify the Checksum
13-
14-
.. tab-set::
15-
16-
.. tab-item:: Linux
17-
18-
| :octicon:`chevron-right` Download the corresponding Checksum File to the same location
19-
| :octicon:`chevron-right` Run one of the commands below in a terminal window in the same folder
20-
21-
.. code-block:: bash
22-
23-
shasum -c novelWriter-2.7rc1.AppImage.sha256
24-
shasum -c novelwriter_2.7rc1_all.deb.sha256
25-
26-
.. tab-item:: Windows
27-
28-
| :octicon:`chevron-right` Run the following command in PowerShell from the same folder
29-
| :octicon:`chevron-right` Check the Hash value against the value displayed above
30-
31-
.. code-block:: powershell
32-
33-
Get-FileHash -Algorithm SHA256 novelwriter-2.7rc1-amd64-setup.exe | Format-List
34-
35-
.. tab-item:: MacOS
36-
37-
| :octicon:`chevron-right` Download the corresponding Checksum File to the same location
38-
| :octicon:`chevron-right` Run the command below in a terminal window in the same folder
39-
40-
.. code-block:: bash
41-
42-
shasum -c novelWriter-2.7rc1-x86_64.dmg.sha256

update.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,9 @@ def pullRelease(args):
151151
Path("source/generated/download_pre_release.rst").write_text(
152152
"*There are currently no pre-release downloads available ...*", encoding="utf-8"
153153
)
154+
Path("source/generated/checksum_pre_release.rst").write_text(
155+
"", encoding="utf-8"
156+
)
154157
return
155158

156159
print(f"Tag: {args.tag}")

0 commit comments

Comments
 (0)