Skip to content

Cleanup build script + fix -v#27

Open
tectrixdev wants to merge 12 commits into
Jvr2022:v1from
tectrixdev:v1
Open

Cleanup build script + fix -v#27
tectrixdev wants to merge 12 commits into
Jvr2022:v1from
tectrixdev:v1

Conversation

@tectrixdev

@tectrixdev tectrixdev commented Jun 28, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Cleaned up some lines for the AppImage building.
  • Updated LinuxDeploy.
  • Pointed out unfixable GTK issue in the README as known issue.
  • Fix -v always reporting v0.1.0.
  • Make application name dynamic and follow the environment variable in the build-release script.

Verification

  • I've ran both builds from my fork and there seem to be no regressions or failures.
  • image

(the version numbers on my fork are all over the place but it is correct in this image.)

@tectrixdev tectrixdev requested a review from Jvr2022 as a code owner June 28, 2026 16:25
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Credits must be used to enable repository wide code reviews.

@coderabbitai

coderabbitai Bot commented Jun 28, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 90c12a65-b3c2-4c9b-9d9a-d43ecdd3883a

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@tectrixdev tectrixdev changed the title V1 Cleanup build script + fix -v Jun 28, 2026
@Jvr2022

Jvr2022 commented Jun 28, 2026

Copy link
Copy Markdown
Owner

I will take some time to review this.

@Jvr2022

Jvr2022 commented Jun 28, 2026

Copy link
Copy Markdown
Owner

LGTM but I will ask copilot to look if I missed anything.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR aims to improve release/build packaging and version reporting by wiring build-time version/package metadata into the application, refreshing the AppImage tooling version, and documenting a known WebKitGTK/AppImage runtime limitation.

Changes:

  • Export VERSION/PACKAGE_NAME in the release build script and pass them into the C++ binary via CMake compile definitions to fix -v reporting.
  • Update linuxdeploy AppImage version/SHA and simplify parts of the AppImage build script.
  • Add a “Known issues” section to the README describing a WebKitGTK/AppImage limitation and workarounds.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 8 comments.

File Description
src/main.cpp Uses build-provided version/package values for --version and desktop file name.
scripts/build-release.sh Exports version/package variables and updates linuxdeploy version/SHA.
CMakeLists.txt Pulls env-provided metadata into compile-time definitions for the build.
README.md Documents a known WebKitGTK/AppImage runtime issue and suggested workarounds.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/main.cpp Outdated
Comment thread src/main.cpp Outdated
Comment thread src/main.cpp Outdated
Comment thread CMakeLists.txt
Comment on lines +5 to +6
set(VERSION "$ENV{VERSION}")
set(PACKAGE_NAME "$ENV{PACKAGE_NAME}")

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Yeah maybe we should fix this but I don't like the Copilot suggestion. Any thoughts on this one? @tectrixdev

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Honestly, I think we should trust our build script and put the environment variable in the requirements for building, as falling back to a non-existent version is a bit weird behavior for user builds. We could also source from git and use commits as versions or tags but that'd be a bit to complicated for this small of an issue in my opinion. As for the package name, maybe this isn't a bad suggestion, or we should keep it static as the human readable name isn't dynamic anyways.

Comment thread CMakeLists.txt
Comment on lines +404 to +405
add_compile_definitions(VERSION="${VERSION}")
add_compile_definitions(PACKAGE_NAME="${PACKAGE_NAME}")

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

I am fine with that.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

As in fine with the proposed solution or how it is now?

Comment thread scripts/build-release.sh
Comment on lines +6 to +7
export VERSION="${1:-0.1.0}"
export PACKAGE_NAME="safe-exam-browser"

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Yep, should be fixed too.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

I don't think this is a problem, as with version it is an argument given to the script, but package name is specified in this script or in an environment variable, hence it wouldn't need a fallback as it is defined just fine.

Comment thread README.md Outdated
Comment thread README.md Outdated
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@tectrixdev

Copy link
Copy Markdown
Collaborator Author

Allright, I'll fix the issues in a moment. Thanks for pointing them out!

@tectrixdev tectrixdev added this to the V1 milestone Jul 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants