Repository navigation
Install from latest GitHub release and show Installed vs PLC version on the HMI - #37
Merged
Merged
Conversation
curl still fetches install-pi.sh from main so installer fixes ship immediately. The clone now uses releases/latest (same tree as the source zip) unless --ref / ARFBOT_REF is set. --ref main tracks tip-of-tree.
The installer records the git tag (or git describe from a checkout) as a one-line file the PLC can read with SysFile as Application/RELEASE. Written before re-exec so an older cloned installer still leaves the file.
PRs into main fail unless Codesys/ArfBot.xml differs from main, ArfBot.project changes are paired with an XML export, and GVL_Version.sPlcVersion is set and not equal to main.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
curl | bashnow clones the latest GitHub release (notmain). The HMI shows both that installer tag and the compiled PLC stamp so a mixed box is obvious. PRs intomainmust re-exportArfBot.xmland bumpGVL_Version.sPlcVersion.Installer
install-pi.shstill curls the script frommain, then clonesreleases/latest(same tree as the source zip).--ref mainfor tip-of-tree;--ref <tag>to pin;--ref latestis the default./var/opt/codesys/PlcLogic/Application/RELEASE(one line) before re-exec so an older cloned installer still leaves the file.RELEASEwerev2.2026.37.0-RobotAnimator.Wiki curl line does not change. After this is on
mainand a new release is cut, that curl installs the new release.HMI
Application/RELEASEvia SysFile inM_Init(MemUtils.MemCpyinto the STRING; length atADR - 1).GVL_Version.sPlcVersion(git describe --tags --always, currentlyv2.2026.37.0-RobotAnimator-7-gcb5df5e).Installer <tag> PLC <describe>.PR gate
.github/workflows/plc-gate.ymlon PRs tomain:Codesys/ArfBot.xmlmust differ frommain.ArfBot.projectchanged, XML must have changed too.sPlcVersionmust exist, not beunknown, and not matchmain.Enable Settings → Branches →
main→ require status checkPLC export and version stampso it actually blocks merge.Test
curl | bash(no--ref) clones the current latest release, notmain.cat /var/opt/codesys/PlcLogic/Application/RELEASEmatches that tag.--ref mainstill tracks tip-of-tree.