2024-12-18, 08:46 PM
(This post was last modified: 2024-12-18, 08:48 PM by qwerty12. Edited 2 times in total.)
(2024-12-17, 11:16 PM)raulo1985 Wrote: But the thing is that I'm trying to create an installer (like the official ones), specially if you say that probably by doing so it would bundle everything together, including the missing resources. That's where I get stuck, I'm trying to figure how to create an installer.
I'm not at all familiar with programs used for creating installers, let alone the specific installer workflow employed by JMP, so there's not really much I can suggest. From a quick look at the README and the workflow file again, you're meant to install WiX Toolset v3.11.2, and then after successfully building with
ninja
(as you have done) you're meant to run set PATH=%PATH%;C:\Program Files (x86)\WiX Toolset v3.11\bin;%CD%
and ninja windows_package
which, hopefully, churns out an installer. I think that process may require Python to be installed.However, that probably won't work without this first: because the program depends on the Microsoft Visual C++ 2015-2022 Redistributable, you need to download that separately and have that as a part of the installer. You can see that being done here: https://github.com/jellyfin/jellyfin-med...ml#L79-L80
Looking at that, I'm confused as to what practical purpose that
sed
invocation serves. Maybe it's some WiX thing that I'm unfamiliar with. You can try running that, I guess, but I'd start by simply trying to save https://aka.ms/vs/17/release/vc_redist.x64.exe as bundle/win/Bundle.wxsI don't actually know if there's any basis for what I said regarding as to why it won't start. To check, install the usual Jellyfin Media Player from its installer and then replace JellyfinMediaPlayer.exe and the libmpv-2.dll in C:\Program Files\Jellyfin Media Player (or wherever it actually installs to) with the ones you built and see if that starts.
(Looking at your other thread, if this is to autofill the server address, username and password, I reckon you would have an easier time trying something like modifying
web-client\extension\find-webclient.js
instead and just having the recipient install the usual Jellyfin Media Player instead and creating a self-extracting 7-Zip archive that will replace the existing find-webclient.js. Or, if JMP saves the credentials in plaintext, a script that just writes out an initial config file. Dunno.)