Updater url fix

- Updated version.json wrong url
- Updated windows.md with better deploy description
This commit is contained in:
Zarg 2025-01-16 02:58:31 +01:00
parent a44ef8f54d
commit cc0e10b22f
6 changed files with 30 additions and 13 deletions

1
.gitattributes vendored
View file

@ -1 +0,0 @@
* text eol=lf

View file

@ -5,7 +5,7 @@
<h1>🌌 Stremio Desktop<br/><span style="font-size: 0.6em; font-weight: normal;">Community</span></h1>
</div>
<p align="center">Stremio Desktop app with the latest Stremio web UI v5, built with Qt6</p>
<p align="center">Stremio Desktop app with the latest Stremio web UI v5, built with WebView2</p>
<p align="center">
<!-- C++ badge -->
<img src="https://img.shields.io/badge/C++-00599C?style=for-the-badge&logo=c%2B%2B&logoColor=white" alt="C++" />

View file

@ -12,7 +12,7 @@
node build_checksums.js <OpenSSL_Bin> <Git_Tag> <Shell_Version> <Server.js_Version>
```
```
node build_checksums.js "C:\Program Files\OpenSSL-Win64\bin" "5.0.0-beta.1" "5.0.0" v4.20.8
node build_checksums.js "C:\Program Files\OpenSSL-Win64\bin" "5.0.0-beta.8" "5.0.8" v4.20.11
```
> **⏳Note:** Only Windows at the moment

View file

@ -32,9 +32,7 @@ Ensure the following are installed on your system:
### 1⃣ **Install Essential Tools**
- **Git**: [Download](https://git-scm.com/download/win) and install.
- **Visual Studio**: [Download Community 2022](https://visualstudio.microsoft.com/de/downloads/).
- **Node.js**: Get version [v8.17.0](https://nodejs.org/dist/v8.17.0/win-x86/node.exe).
- **FFmpeg**: [Download](https://ffmpeg.zeranoe.com/builds/win32/static/ffmpeg-3.3.4-win32-static.zip).
*(Other versions may also work)*.
- **Vcpkg**: [Download](https://github.com/microsoft/vcpkg)
---
@ -43,14 +41,18 @@ Ensure the following are installed on your system:
1. Download vcpkg [here](https://github.com/microsoft/vcpkg).
2. Install using vcpkg ``openssl:x64-windows-static`` and ``nlohmann-json:x64-windows-static``
2. Install using vcpkg ``openssl:x64-windows-static``, ``nlohmann-json:x64-windows-static`` and ``curl:x64-windows-static``
> **⏳ Note:** To deploy x86 install the x86 versions of the dependencies above.
---
### 3⃣ **Prepare the MPV Library**
- Download the MPV library: [MPV libmpv](https://sourceforge.net/projects/mpv-player-windows/files/libmpv/).
- Use the `mpv-x86_64` version.
- **Optional step as mpv is included as submodule:**
- Download the MPV library: [MPV libmpv](https://sourceforge.net/projects/mpv-player-windows/files/libmpv/).
- Use the `mpv-x86_64` version.
> **⏳ Note:** The submodule https://github.com/Zaarrg/libmpv already includes .lib, just make sure to unzip the actual .dll for x64 systems.
---
@ -66,9 +68,9 @@ Ensure the following are installed on your system:
-DCMAKE_TOOLCHAIN_FILE=C:/bin/vcpkg/scripts/buildsystems/vcpkg.cmake
-DVCPKG_TARGET_TRIPLET=x64-windows-static
```
As Oneliner:
```cmd
-DCMAKE_TOOLCHAIN_FILE=C:\bin\vcpkg\scripts\buildsystems\vcpkg.cmake -DVCPKG_TARGET_TRIPLET=x86-windows-static
-DCMAKE_TOOLCHAIN_FILE=C:\bin\vcpkg\scripts\buildsystems\vcpkg.cmake -DVCPKG_TARGET_TRIPLET=x64-windows-static
```
3. Download the `server.js` file:
```cmd
@ -101,6 +103,22 @@ Ensure the following are installed on your system:
node deploy_windows.js --x86 --portable
```
2. **Requirements**
- To run the deploy_window.js script successfully the following is always required:
1. ``libmpv-2.dll`` in ``deps/libmpv/i686`` for ``x86`` or ``deps/libmpv/x86_64`` for ``x64``
2. ``server.js`` and ``stremio-runtime.exe`` in ``utils/windows``
3. ``ffmpeg`` folder with ffmpeg and .dlls in ``utils/windows/ffmpeg``
4. ``anime4k`` in ``utils/mpv/anime4k/portable_config``
5. ``stremio-settings.ini`` as default settings in ``utils/stremio``
6. ```vcpkg toolchain``` in `C:/bin/vcpkg/scripts/buildsystems/vcpkg.cmake` or change the `VCPKG_CMAKE` path in the script.
7. ``cmake-build-release-x64`` or ``cmake-build-release-x86`` folders in project root. Run cmake once before deployment for this.
- For the installer
1. ``nsis`` in ``C:\Program Files (x86)\NSIS\makensis.exe`` or change path manually
2. ``nsprocess`` nsis plugin. Can be found in ``utils/window/NsProcess``. Drop the contents into your nsis install folder.
- For Portable
1. ``7zip`` in ``C:\Program Files\7-Zip\7z.exe`` or ``C:\Program Files (x86)\7-Zip\7z.exe``
2. ``WebView2 Runtime`` in ``utils/windows/WebviewRuntime/x64/EdgeWebView`` or ``../x86/EdgeWebView``. The Runtime can be found at ``C:\Program Files (x86)\Microsoft\EdgeWebView\Application\131.0.2903.146``. Copy the contents of this to our ``utils/windows/WebviewRuntime/x64/EdgeWebView``. For ``x86`` install ``WebView2 Runtime x86`` and do the same.
> **⏳ Note:** This script uses common path for ``DCMAKE_TOOLCHAIN_FILE`` of vcpkg, make sure the script has the correct one. If running with ``--installer`` make sure u installed ``nsis`` with the needed ``nsprocess`` plugin at least once.

View file

@ -2380,7 +2380,7 @@ static void RunAutoUpdaterOnce() {
}
}
}
std::cout<<"[UPDATER]: Update check done! \n";
}
static void RunInstallerAndExit() {

View file

@ -1,5 +1,5 @@
{
"upToDate": false,
"versionDesc": "https://raw.githubusercontent.com/Zaarrg/stremio-desktop-v5/refs/heads/master/version/version-details.json",
"versionDesc": "https://raw.githubusercontent.com/Zaarrg/stremio-desktop-v5/refs/heads/webview-windows/version/version-details.json",
"signature": "BQGEy+dlt7aFHyDm2hceaG7Mz+PRQVvqs3BlQwOerMGK+eG9Ip27ZNMVwHapAI13QOs/nRhHPYG8vtL6lE764GyUKvMJ2geXVn4+Ki4gyx7enBd1IfmPZfE9GCnApDNyMlB+WWrcveow4MTo/kzFMJ+O5bjzuotuz/ChdLA9tXNBc7N5oJMKTVAraaScjIdqC+Qpl98t14QhZpfdeFx9pfG7gJBFnn7xOa0Z0qxR8LNJcIjlydEHOs9cmdPpuQ9nq5Ubf1DYdL6zAGa9cr4xuQjBoEyxmkDU1pqk8pYQHgJZM+cR4k5C0YI6+8xVwn6O5uxxapjUOepMc0kMq2v4yg=="
}