Skip to content

Commit

Permalink
Merge pull request mozilla#1449 from rosahbruno/1786272-QT-sample-pro…
Browse files Browse the repository at this point in the history
…j-updates

Bug 1786272 - QT sample project updates
  • Loading branch information
rosahbruno committed Aug 23, 2022
2 parents cf8736b + 6d59d6f commit 51addbe
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Expand Up @@ -2,6 +2,9 @@

[Full changelog](https://github.com/mozilla/glean.js/compare/v1.1.0...main)

* [#1449](https://github.com/mozilla/glean.js/pull/1449): BUGFIX: Add missing quotes to `prepare-release` script to fix issues with version numbers in Qt sample README & circle ci config.
* [#1449](https://github.com/mozilla/glean.js/pull/1449): Update Qt sample project docs to include note about problems with different version numbers of Qt commands.

# v1.1.0 (2022-07-18)

[Full changelog](https://github.com/mozilla/glean.js/compare/v1.0.0...v1.1.0)
Expand Down
4 changes: 2 additions & 2 deletions bin/prepare-release.sh
Expand Up @@ -142,13 +142,13 @@ run rm "${WORKSPACE_ROOT}/${FILE}.bak"

FILE=samples/qt/README.md
run $SED -i.bak -E \
-e "s/--option platform=qt --option version=[0-9a-z.-]+/--option platform=qt --option version=\"${GLEAN_VERSION_FOR_QML}\"/" \
-e "s/--option platform=qt --option version=\"[0-9a-z.-]+\"/--option platform=qt --option version=\"${GLEAN_VERSION_FOR_QML}\"/" \
"${WORKSPACE_ROOT}/${FILE}"
run rm "${WORKSPACE_ROOT}/${FILE}.bak"

FILE=.circleci/config.yml
run $SED -i.bak -E \
-e "s/--option platform=qt --option version=[0-9a-z.-]+/--option platform=qt --option version=\"${GLEAN_VERSION_FOR_QML}\"/" \
-e "s/--option platform=qt --option version=\"[0-9a-z.-]+\"/--option platform=qt --option version=\"${GLEAN_VERSION_FOR_QML}\"/" \
"${WORKSPACE_ROOT}/${FILE}"
run rm "${WORKSPACE_ROOT}/${FILE}.bak"

Expand Down
4 changes: 3 additions & 1 deletion samples/qt/README.md
Expand Up @@ -33,9 +33,11 @@ pip3 install -r requirements.txt # Install glean_parser

4. Generate metrics and pings files:

> **Note**: The version number below should match the last [released version](https://github.com/mozilla/glean.js/releases) number (minus the trailing `.0`). If the version numbers are different you will run into issues with QML code compilation. To resolve these errors you have to adjust the versions manually in the QML files
```bash
glean_parser translate src/App/metrics.yaml src/App/pings.yaml -f javascript -o src/App/generated \
--option platform=qt --option version="0.31"
--option platform=qt --option version="1.1"
```

5. Build the app:
Expand Down

0 comments on commit 51addbe

Please sign in to comment.