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

mediathekview: build from source #306292

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jensbin
Copy link
Contributor

@jensbin jensbin commented Apr 23, 2024

Description of changes

  • Rewrote to build from source
  • Added .desktop item
  • Fix dependencies (libnotify, libXxf86vm, libglvnd)
  • Adding missing java parameters

Things done

Built and execution successfully and is usable.

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin

Add a 👍 reaction to pull requests you find important.

{
x86_64-linux = "-Plinux_64bit";
aarch64-linux = "-Plinux_arm_64bit";
}.${stdenv.hostPlatform.system}
Copy link
Contributor

Choose a reason for hiding this comment

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

I guess this would fail on other platforms. We should change meta.platforms to those two as well. Do you have an idea why the hash isn't the same? Are there sharedibs that are included into the jar?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

tbh, I haven't had a deeper look into this and I am not sure how to handle this properly for different architectures. Any suggestion welcome.

Is it acceptable to change:

-    platforms = lib.platforms.linux;
+    platforms = [ "x86_64-linux" "aarch64-linux" ];

Or completely remove aarch64-linux?

makeWrapper ${jre}/bin/java $out/bin/MediathekView_ipv4 \
--add-flags "-Djava.net.preferIPv4Stack=true -jar $out/lib/MediathekView.jar" \
--suffix LD_LIBRARY_PATH : "${libraryPath}"
makeShellWrapper ${jdk}/bin/java $out/bin/mediathek \
Copy link
Contributor

Choose a reason for hiding this comment

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

Upstream this is MediathekView now. I think we should change it as well.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Do you mean to include the mediathek_ipv4? This is not part of the appimage instructions, but mentioned in the troubleshoot guide. My intention was to be close to appimage creation and if somebody runs into IPv6 issues to use overwrite. But I am open to suggestions.

--add-flags "-XX:+UseStringDeduplication" \
--add-flags "-XX:MaxRAMPercentage=50.0" \
--add-flags "--add-opens java.desktop/sun.awt.X11=ALL-UNNAMED" \
--add-flags "-DexternalUpdateCheck" \
Copy link
Contributor

Choose a reason for hiding this comment

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

Does this enable or disable update checks in the app itself?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is by default set in appimage → https://github.com/mediathekview/MediathekView/blob/master/scripte/appimage.sh.

"Check whether or not we are using Install4j's external update mechanism." In the UI mentions with this parameter set, that an external updater is used.

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.

4 participants