From 1c72d48c059b00c69db544b5a4e2dfd79c0ff1ac Mon Sep 17 00:00:00 2001 From: watts Date: Thu, 28 Aug 2025 17:11:44 +0200 Subject: [PATCH] Update Update-Pixelator-Version --- Update-Pixelator-Version.-.md | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/Update-Pixelator-Version.-.md b/Update-Pixelator-Version.-.md index 3b8799b..019a2a5 100644 --- a/Update-Pixelator-Version.-.md +++ b/Update-Pixelator-Version.-.md @@ -63,7 +63,19 @@ The new code can be downloaded from `gitea.psi.ch`. There are 3 ways to do this: ``` unzip -z Pixelator-master.zip ``` -The other way is to copy it from the gitea.psi.ch web page when you are downloading the archive. It is a bit hidden and the easiest way to find it is to right click on the latest commit short-hash and copy the link. + The other way is to copy it from the gitea.psi.ch web page when you are downloading the archive. It is a bit hidden and the easiest way to find it is to right click on the latest commit short-hash and copy the link - to find this, start at the blue `<> Code` button, go down one line and then left to the set of 10 characters in a box, e.g. `f260922198`. The link will look like `https://gitea.psi.ch/MicroSpectro/Pixelator/commit/f2609221982772e427a1fad28679b16db256bde5` and the hash you need is the last part, e.g. `f2609221982772e427a1fad28679b16db256bde5`. + Open `gen_commit_hash.sh` in a text editor and replace the set of zeros with your hash. The file should end up looking something like this: + ``` + #!/bin/sh + + if [ -f ".git/HEAD" ]; then + v=`git rev-parse HEAD` + else + v="f2609221982772e427a1fad28679b16db256bde5" + fi + printf %s "$v" + + ```