Skip to content

Conversation

@ballessay
Copy link

@ballessay ballessay commented Apr 17, 2025

Builds the project on different triggers/branches and creates an AppImage which will be uploaded to the GH relases page on tags.

Note: the missing header commit is included here to get a successful build

@ballessay ballessay force-pushed the github-action branch 2 times, most recently from 8792d2d to b2a141b Compare April 21, 2025 11:23
@ballessay
Copy link
Author

ballessay commented Sep 17, 2025

Should be ready now for merge. There is on hacky build step regarding the translation files, but I didn't want to investigate linuxdeploy further at the moment and it seems to work fine this way.

Another thing I don't really like but wasn't sure I should change it is the AppImage name, which seems to be generated/deducted by the name in phototonic.appdata.xml or phototonic.desktop file. It starts with upper case P but the rest of the project uses a lower case p. ¯\_ (ツ)_/¯

Use github actions as CI tool.
Build the code and create and release on AppImage on tags.
Copy link
Owner

@luebking luebking left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Idk how appimages typically handle this, but if the startmenu etc. token is "Phototonic", the equal appimage name seems reasonable?

- name: Build
run: make -j $(nproc)

- name: Update and create translations
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There're precompiled translation modules in the git repo.

Copy link
Author

@ballessay ballessay Sep 22, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay. But why? (Referencing the Ryan Reynolds meme image. It's completely normal to update and generate them in a build pipeline. ¯_(ツ)_/¯

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dunno. Was like this when I showed up and didn't saw a reason to change it.
I'll say that the linguist tools tend to draw in Qt dependencies one otherwise might not need, so it's probably nice for individually building users.

- name: HACK - symlink translation files (linuxdeploy fails to do so)
run : |
pushd . > /dev/null
mkdir -p AppDir/usr/translations
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you know whether AppDir/usr is either QM_FILES_INSTALL_PATH or QTDIR ?
Maybe the qmake should simply not hardcode the destination…

Copy link
Author

@ballessay ballessay Sep 22, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not yet. But I just had a look into the .pro and maybe the hardcoded *.path entries a the culprit. I'll do a bit of testing and rereading the qmake documentation.

@ballessay
Copy link
Author

Idk how appimages typically handle this, but if the startmenu etc. token is "Phototonic", the equal appimage name seems reasonable?

Yes, it seems that way. With a quick search I found this (another appimage tool but I guess they work the same)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants