Skip to content

Conversation

@nicomiguelino
Copy link
Contributor

Description

  • Writes a script that builds WebView (via a pre-built version of Qt 6) for Raspberry Pi 4 devices running 64-bit Raspberry Pi OS

Checklist

  • I have performed a self-review of my own code.
  • New and existing unit tests pass locally and on CI with my changes.
  • I have done an end-to-end test for Raspberry Pi devices.
  • I have tested my changes for x86 devices.
  • I added a documentation for the changes I have made (when necessary).

@sonarqubecloud
Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
2 Security Hotspots

See analysis details on SonarQube Cloud

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Refactor common attributes.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We can maybe create a script that generates custom Dockerfiles based on the given platform (e.g., pi1, pi2, pi3, pi4, pi4-64, pi5, etc.).

Comment on lines 17 to 19
QRect screenGeometry = QGuiApplication::primaryScreen()->geometry();
setGeometry(screenGeometry);
showFullScreen();
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Make use of macros, which gets resolved before compilation.

You should now be able to invoke a run executing either of the following commands:

```bash
$ docker compose exec builder-pi5 /webview/build_webview.sh
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Suggested change
$ docker compose exec builder-pi5 /webview/build_webview.sh
$ docker compose exec builder-pi5 /scripts/build_webview.sh

```bash
$ docker compose exec builder-pi5 /webview/build_webview.sh
# or
$ docker compose exec builder-pi4-64 /webview/build_webview.sh
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Suggested change
$ docker compose exec builder-pi4-64 /webview/build_webview.sh
$ docker compose exec builder-pi4-64 /scripts/build_webview.sh

@sonarqubecloud
Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
1 Security Hotspot

See analysis details on SonarQube Cloud

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.

1 participant