Skip to content

Commit 833558c

Browse files
author
Ratchanan Srirattanamet
committed
Add The Qt Company's family of Qt extensions
These extensions all live in a single repository. Most extensions are relatively straight-forward to build (non-extension-pack ones require building common library first). However, qt-core comes with a binary written in Go, which requires us to use custom commands to facilitate building it using GoReleaser. Build commands have handling for difference between the currently- published version and the current Git tip, in anticipation that the Git tip will eventually be released. GitHub workflows are modified to ensure Go environment is available. Extensions are dual-licensed between Qt's commercial license and LGPL 3.0 only. The issue which request publishing on Open-VSX [1] gets some interest from upstream, but does not have any update since September 2024. [1]: https://bugreports.qt.io/browse/VSCODEEXT-96 Signed-off-by: Ratchanan Srirattanamet <[email protected]>
1 parent 079cb30 commit 833558c

File tree

3 files changed

+53
-0
lines changed

3 files changed

+53
-0
lines changed

.github/workflows/publish-extensions.yml

+3
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,9 @@ jobs:
4949
with:
5050
distribution: "microsoft"
5151
java-version: "17"
52+
- uses: actions/setup-go@v5
53+
with:
54+
go-version: 'stable'
5255
- name: Install dependencies for native modules
5356
run: |
5457
sudo apt-get update

.github/workflows/validate-pr.yml

+3
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ jobs:
3030
run: |
3131
pyenv install 3.8
3232
pyenv global 3.8
33+
- uses: actions/setup-go@v5
34+
with:
35+
go-version: 'stable'
3336
- run: EXTENSIONS=$(node diff-extensions) node publish-extensions
3437
env:
3538
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

extensions.json

+47
Original file line numberDiff line numberDiff line change
@@ -1375,6 +1375,53 @@
13751375
"tecosaur.latex-utilities": {
13761376
"repository": "https://github.com/tecosaur/LaTeX-Utilities"
13771377
},
1378+
"theqtcompany.qt": {
1379+
"repository": "https://github.com/qt-labs/vscodeext",
1380+
"location": "extension_packs/qt/"
1381+
},
1382+
"theqtcompany.qt-cpp": {
1383+
"repository": "https://github.com/qt-labs/vscodeext",
1384+
"location": "qt-cpp/",
1385+
"prepublish": "npm run ci:qt-lib && npm run compile:qt-lib && npm run compile:qt-cpp"
1386+
},
1387+
"theqtcompany.qt-cpp-pack": {
1388+
"repository": "https://github.com/qt-labs/vscodeext",
1389+
"location": "extension_packs/cpp/"
1390+
},
1391+
"theqtcompany.qt-core": {
1392+
"repository": "https://github.com/qt-labs/vscodeext",
1393+
"location": "qt-core/",
1394+
"custom": [
1395+
"npm ci",
1396+
"npm run ci:qt-lib",
1397+
"npm run ci:qt-core",
1398+
1399+
"npm run compile:qt-lib",
1400+
1401+
"go install github.com/goreleaser/goreleaser/v2@latest",
1402+
"cd qt-cli && GORELEASER_CURRENT_TAG=${VERSION} goreleaser release --snapshot --clean",
1403+
"mkdir -p qt-core/res/qtcli",
1404+
"if [ -e qt-cli/dist/bin ]; then cp -r qt-cli/dist/bin/* qt-core/res/qtcli; else cp qt-cli/dist/qtcli_{linux,windows,darwin_fat}* qt-core/res/qtcli; fi",
1405+
1406+
"npm run package:qt-core",
1407+
"mv qt-core/out/qt-core-*.vsix qt-core/out/qt-core.vsix"
1408+
],
1409+
"extensionFile": "out/qt-core.vsix"
1410+
},
1411+
"theqtcompany.qt-qml": {
1412+
"repository": "https://github.com/qt-labs/vscodeext",
1413+
"location": "qt-qml/",
1414+
"prepublish": "npm run ci:qt-lib && npm run compile:qt-lib && npm run compile:qt-qml"
1415+
},
1416+
"theqtcompany.qt-ui": {
1417+
"repository": "https://github.com/qt-labs/vscodeext",
1418+
"location": "qt-ui/",
1419+
"prepublish": "npm run ci:qt-lib && npm run compile:qt-lib && npm run compile:qt-ui"
1420+
},
1421+
"theqtcompany.qt-wasm-pack": {
1422+
"repository": "https://github.com/qt-labs/vscodeext",
1423+
"location": "extension_packs/wasm/"
1424+
},
13781425
"Tobiah.unity-tools": {
13791426
"repository": "https://github.com/TobiahZ/unity-tools"
13801427
},

0 commit comments

Comments
 (0)