Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/upgrade_version.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
sed -i "s/VersionCheck_[0-9]*_[0-9]*_[0-9]*;/VersionCheck_`echo ${{ github.event.inputs.new_version }} | sed "s/\([0-9]*\)\.\([0-9]*\).\([0-9]*\)/\1/"`_`echo ${{ github.event.inputs.new_version }} | sed "s/\([0-9]*\)\.\([0-9]*\).\([0-9]*\)/\2/"`_`echo ${{ github.event.inputs.new_version }} | sed "s/\([0-9]*\)\.\([0-9]*\).\([0-9]*\)/\3/"`;/" api/rs/slint/lib.rs api/slint-sc/lib.rs

# Version in the AboutSlint widget
sed -i "s/Version [0-9]*\.[0-9]*\.[0-9]*\\\\n/Version ${{ github.event.inputs.new_version }}\\\\n/" internal/compiler/widgets/common/about-slint.slint
sed -i "s/@tr(\"Version {}\", \"[0-9]*\.[0-9]*\.[0-9]*\")/@tr(\"Version {}\", \"${{ github.event.inputs.new_version }}\")/" internal/compiler/widgets/common/about-slint.slint

# Version in the docs (cargo add slint@<VERSION>):
git ls-files | grep "\(^\|/\)docs/.*\.\(md\|rst\)\$" | grep -v "/LICENSES/" | xargs sed --follow-symlinks -i 's/slint@[0-9]\+\.[0-9]\+\.[0-9]\+/slint@${{ github.event.inputs.new_version }}/'
Expand Down
2 changes: 1 addition & 1 deletion internal/compiler/widgets/common/about-slint.slint
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export component AboutSlint {
}

Text {
text: "Version 1.19.0\nhttps://slint.dev/";
text: @tr("Version {}", "1.19.0") + "\nhttps://slint.dev/";
font-size: 10px;
horizontal-alignment: center;
}
Expand Down
Loading