Skip to content

Commit 51addbe

Browse files
authored
Merge pull request #1449 from rosahbruno/1786272-QT-sample-proj-updates
Bug 1786272 - QT sample project updates
2 parents cf8736b + 6d59d6f commit 51addbe

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

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

5+
* [#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.
6+
* [#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.
7+
58
# v1.1.0 (2022-07-18)
69

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

bin/prepare-release.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,13 +142,13 @@ run rm "${WORKSPACE_ROOT}/${FILE}.bak"
142142

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

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

samples/qt/README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,11 @@ pip3 install -r requirements.txt # Install glean_parser
3333

3434
4. Generate metrics and pings files:
3535

36+
> **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
37+
3638
```bash
3739
glean_parser translate src/App/metrics.yaml src/App/pings.yaml -f javascript -o src/App/generated \
38-
--option platform=qt --option version="0.31"
40+
--option platform=qt --option version="1.1"
3941
```
4042

4143
5. Build the app:

0 commit comments

Comments
 (0)