diff --git a/.github/workflows/artifact-links.yml b/.github/workflows/artifact-links.yml index d2ea7736..411d0fb2 100644 --- a/.github/workflows/artifact-links.yml +++ b/.github/workflows/artifact-links.yml @@ -7,7 +7,7 @@ on: jobs: artifacts-url-comments: name: Add artifact links to PR and issues - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 steps: - name: Add artifact links to PR and issues uses: tonyhallett/artifacts-url-comments@v1.1.0 diff --git a/.github/workflows/build-release.yml b/.github/workflows/build-release.yml index 97810cbf..9ac12115 100644 --- a/.github/workflows/build-release.yml +++ b/.github/workflows/build-release.yml @@ -16,7 +16,7 @@ jobs: release: name: Attach Release Artifacts needs: ci - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 steps: - name: Code Checkout uses: actions/checkout@v2 diff --git a/.github/workflows/hide-artifact-links.yml b/.github/workflows/hide-artifact-links.yml index 5f61c9e7..3312ee7c 100644 --- a/.github/workflows/hide-artifact-links.yml +++ b/.github/workflows/hide-artifact-links.yml @@ -7,7 +7,7 @@ on: jobs: hide-artifacts-link-comments: name: Hide artifact links - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 steps: - name: Hide comments uses: int128/hide-comment-action@v1 diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index 935d9061..ed07a355 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -30,7 +30,7 @@ jobs: release: name: Nightly release needs: ci - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 steps: - name: Fetch build artifacts uses: actions/download-artifact@v2 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index cc5b9c80..7d3e5c33 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -31,7 +31,7 @@ jobs: release: name: Release needs: ci - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 steps: - name: Fetch build artifacts uses: actions/download-artifact@v2 diff --git a/.nvmrc b/.nvmrc index ed9f5a0a..99cdd800 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1 @@ -14.18.2 +16.15.0 diff --git a/gulpfile.js b/gulpfile.js index 946c9295..c094db34 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -48,7 +48,7 @@ const NODE_ENV = process.env.NODE_ENV || 'production'; const NAME_REGEX = /-/g; const nwBuilderOptions = { - version: os.platform() === 'linux' ? '0.54.1' : '0.60.0', // linux has a bug with moving OSD elements + version: '0.62.0', files: `${DIST_DIR}**/*`, macIcns: './src/images/bf_icon.icns', macPlist: { 'CFBundleDisplayName': 'Betaflight Configurator'}, diff --git a/package.json b/package.json index e5ff7ea5..dc08f95e 100644 --- a/package.json +++ b/package.json @@ -48,7 +48,7 @@ "author": "The Betaflight open source project.", "license": "GPL-3.0", "engines": { - "node": "14.x" + "node": "16.x" }, "dependencies": { "@fortawesome/fontawesome-free": "^5.13.0", diff --git a/src/js/tabs/osd.js b/src/js/tabs/osd.js index d4e7c718..d949b30d 100644 --- a/src/js/tabs/osd.js +++ b/src/js/tabs/osd.js @@ -2352,7 +2352,11 @@ OSD.GUI.preview = { ev.dataTransfer.setData("text/plain", $(ev.target).data('field').index); ev.dataTransfer.setData("x", ev.currentTarget.dataset.x); ev.dataTransfer.setData("y", ev.currentTarget.dataset.y); - ev.dataTransfer.setDragImage($(this).data('field').preview_img, offsetX, offsetY); + + if (GUI.operating_system !== "Linux") { + // latest NW.js (0.6x.x) has introduced an issue with Linux displaying a rectangle while moving an element + ev.dataTransfer.setDragImage($(this).data('field').preview_img, offsetX, offsetY); + } }, onDragOver(e) { const ev = e.originalEvent;