Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NWjs versioning depending on OS #698

Closed

Conversation

nerdCopter
Copy link
Member

@nerdCopter nerdCopter commented Jan 31, 2024

@nerdCopter nerdCopter force-pushed the 20240131_variable_NWjs branch from 2f47580 to ee49dec Compare January 31, 2024 20:25
@haslinghuis

This comment was marked as outdated.

@haslinghuis
Copy link
Member

Yeah - working again - no 504

image

@nerdCopter
Copy link
Member Author

nerdCopter commented Jan 31, 2024

  • i don't like this solution; however, it seems to work.
  • NW.js and ffmpeg may be un-syncronized with this.
  • @ctzsnooze , can you test the executable-package created by this PR?

This comment has been minimized.

Co-authored-by: Mark Haslinghuis <[email protected]>
Copy link

Quality Gate Passed Quality Gate passed

Kudos, no new issues were introduced!

0 New issues
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@haslinghuis
Copy link
Member

One issue might be with the ffmpeg libraries - not sure if we could retrieve the exact OSX version used - so to minimize impact of this change only applying to older versions.

@haslinghuis
Copy link
Member

Copy link

Do you want to test this code? Here you have an automated build:
Betaflight-Blackbox-Explorer-Linux
Betaflight-Blackbox-Explorer-macOS
Betaflight-Blackbox-Explorer-Windows
WARNING: It may be unstable and result in corrupted configurations or data loss. Use only for testing!

@nerdCopter
Copy link
Member Author

nerdCopter commented Jan 31, 2024

i found some issue with any logic for when using gulpfile to retrieve the OS version (kernel). it is built on modern OSX (kernel), therefore will still choose modern NWjs, and thusly not be backward compatible.
i tried os.release().startsWith('1') , where kernel is 1x.x.x for any OSX 10.x. kernel 2x.x.x for any OSX 11.x

@haslinghuis
Copy link
Member

Can we have a macOSDeprecated strategy in the workflow matrix?

jobs:
build:
name: Build (${{ matrix.name }})
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- name: Linux
os: ubuntu-22.04
releaseArgs: --linux64
- name: macOS
os: macos-12
releaseArgs: --osx64
- name: Windows
os: windows-2022
releaseArgs: --win64

@haslinghuis
Copy link
Member

But guess soon we won't be able to do so:

image

@nerdCopter
Copy link
Member Author

the future is now 😄 ☹️

@nerdCopter
Copy link
Member Author

nerdCopter commented Jan 31, 2024

saw some NWjs issue tracker comments alluding to custom universal packages , but this is just more effort / maintenance :(

finding some more stuff.
maybe [only] a newer nw-builder is required: nwutils/nw-builder#783
basically this nwjs/nw.js#8009 lead me down a rabbit-hole.

@ctzsnooze
Copy link
Member

Solves the problem on my older Mac. So long as newer Macs are OK, I'm happy!
Thank you!

Copy link
Member

@haslinghuis haslinghuis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes needs testing on most recent Macs - otherwise we might have two implement separate builds for new and old Macs

@ikherty
Copy link

ikherty commented Feb 11, 2024

looks and works as usual, no problems noticed. MacBook Air M2 13.6" 512/16 GB, macOS Sonoma 14.3

Do you want to test this code? Here you have an automated build: Betaflight-Blackbox-Explorer-macOS WARNING: It may be unstable and result in corrupted configurations or data loss. Use only for testing!

haslinghuis
haslinghuis previously approved these changes Feb 11, 2024
@haslinghuis
Copy link
Member

@ikherty did you also test ffmpeg part?

@ikherty
Copy link

ikherty commented Feb 12, 2024

@ikherty did you also test ffmpeg part?

oh, sorry, I didn't try to play the video file. now I tried to open it, but the app closes immediately after selecting the file. I tried with different files, the behaviour is the same..

@haslinghuis haslinghuis dismissed their stale review February 12, 2024 11:31

Issues found

@nerdCopter
Copy link
Member Author

nerdCopter commented Feb 14, 2024

thank you @ikherty . sorry @haslinghuis @ctzsnooze , i don't know a way to import different ffmpeg versions depending on NWjs version ☹️ .

maybe a BASH script at build-time ☹️ .

Copy link

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs within a week.

Copy link

Pull request closed automatically as inactive.

@github-actions github-actions bot closed this Mar 24, 2024
@nerdCopter nerdCopter deleted the 20240131_variable_NWjs branch August 1, 2024 14:31
@nerdCopter nerdCopter restored the 20240131_variable_NWjs branch August 1, 2024 14:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cannot open BBE on Mac Intel 64 since 687 since bumping NWJS and FFMPEG
4 participants