Version Bump 5.0.6 + fixes

- Version Bump 5.0.6
- Updated Readme with better AnimeJaNai install Instructions
- Fix build script not closing on end and anime4k being applied by default.
This commit is contained in:
Zarg 2025-01-07 08:57:49 +01:00
parent 8296fe342d
commit 5d230db535
6 changed files with 44 additions and 7 deletions

View file

@ -1,6 +1,6 @@
cmake_minimum_required(VERSION 3.30)
project(stremio VERSION "5.0.5")
project(stremio VERSION "5.0.6")
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/CMakeModules/")

View file

@ -89,15 +89,19 @@ Enhance your Stremio experience by customizing the MPV player settings. Below ar
- 🎨 **AnimeJaNai**
- ❌ Not included by default.
- 📥 Download from the **Stremio-Desktop-v5** [release tab](https://github.com/Zaarrg/stremio-desktop-v5) the adjusted version for Stremio.
- 📥 Download from the **Stremio-Desktop-v5** [release tab](https://github.com/Zaarrg/stremio-desktop-v5) the `stremio-animejanai-3.x.x.7z` for Stremio and drop the content of the 7z into `%localAppData%\Programs\LNV\Stremio-5\` and `replace all`
- 🛠️ **Changes made:**
- Removed `mpvnet.exe` as Stremio is used as the player.
- Adjusted `mpv.conf` to work with Stremio.
- Adjusted `input.conf` to work with Stremio.
> **⏳ Note:** When using AnimeJaNai on first playback Stremio will be unresponsive and a console will open to build the model via e.g. TensorRT. You will need to wait until the console closes for playback to start. This happens only once per model.
- 🚀 **Nvidia RTX and Intel VSR Scaling**
- 🔜 Coming soon!
> **⏳ Note:** Nvidia RTX and Intel VSR Scaling support might take some time as this requires quite a big rewrite to support mpv wid embedding with d3d as current libmpv implementation only supports opengl
## 📚 **Guide / Docs**

View file

@ -26,7 +26,7 @@ const BLOC97_API_URL = 'https://api.github.com/repos/bloc97/Anime4K/releases/lat
const TEMP_DIR = path.join(os.tmpdir(), 'anime4k_build_temp');
const OUTPUT_DIR = path.resolve(__dirname, '..', 'utils', 'mpv');
const OUTPUT_ZIP_NAME = 'anime4k-High-end.zip';
const EXTRACTION_DIR = path.join(OUTPUT_DIR, 'anime4k');
const EXTRACTION_DIR = path.join(OUTPUT_DIR, 'anime4k', 'portable_config');
// Common 7z.exe installation paths on Windows
const COMMON_7Z_PATHS = [
@ -184,12 +184,44 @@ function find7zExecutable() {
execCommand(`${sevenZipPath} x "${outputZipPath}" -o"${EXTRACTION_DIR}" -y`);
console.log('Extraction complete.');
// Path to the mpv.conf file inside the extraction directory
const mpvConfPath = path.join(EXTRACTION_DIR, 'mpv.conf');
// Check if mpv.conf exists before attempting to modify it
if (fs.existsSync(mpvConfPath)) {
console.log(`Modifying ${mpvConfPath} to comment out glsl-shaders lines...`);
// Read the existing content of mpv.conf
let confData = fs.readFileSync(mpvConfPath, 'utf8');
// Split the file into lines
const lines = confData.split(/\r?\n/);
// Map over lines to comment out ones that start with 'glsl-shaders='
const modifiedLines = lines.map(line => {
// Trim whitespace at beginning of line for accurate check
const trimmedLine = line.trim();
if (trimmedLine.startsWith('glsl-shaders=')) {
// If not already commented out, add a comment marker
if (!trimmedLine.startsWith('#')) {
return `# ${line}`;
}
}
return line;
});
// Join the modified lines back together
confData = modifiedLines.join(os.EOL);
// Write the changes back to mpv.conf
fs.writeFileSync(mpvConfPath, confData, 'utf8');
console.log('Modification complete.');
} else {
console.log(`Warning: ${mpvConfPath} not found. Skipping modification.`);
}
// Cleanup
console.log(`Cleaning up temporary files at ${TEMP_DIR}...`);
fs.rmSync(TEMP_DIR, { recursive: true, force: true });
console.log('Cleanup complete.');
console.log('=== Build Anime4K Script Completed Successfully ===');
process.exit(1);
} catch (error) {
console.error('Error during build:', error.message);
process.exit(1);

View file

@ -346,6 +346,7 @@ function find7zExecutable() {
console.log('Cleanup complete.');
console.log('=== Build AnimeJaNai Script Completed Successfully ===');
process.exit(1);
} catch (error) {
console.error('Error during build:', error.message);
process.exit(1);

View file

@ -1,9 +1,9 @@
{
"shellVersion": "5.0.5",
"shellVersion": "5.0.6",
"files": {
"windows": {
"url": "https://github.com/Zaarrg/stremio-desktop-v5/releases/download/5.0.0-beta.6/Stremio.5.0.5.exe",
"checksum": "de7496b60c06e1f9aa88a2ebc1be71c4d3a0cef0a2c3f5b37c676794f2443378"
"url": "https://github.com/Zaarrg/stremio-desktop-v5/releases/download/5.0.0-beta.7/Stremio.5.0.6.exe",
"checksum": "1beb923b7bc23bafb6b8886449f869b2ae01bea908ae9d3619e070a51ed31599"
},
"server.js": {
"url": "https://dl.strem.io/server/v4.20.8/desktop/server.js",

View file

@ -1,5 +1,5 @@
{
"upToDate": false,
"versionDesc": "https://raw.githubusercontent.com/Zaarrg/stremio-desktop-v5/refs/heads/master/version/version-details.json",
"signature": "azR/68JZqRwsR5fhaNYMONvsvOR/h7zQb5G/z8OTMXYn3xDREF46kMymtN/2mbY2EK68RxTDnNkDuK11ooh7kmXKFVf1IIz1hrDu7IUg9RBmHomxBnRvjTh1cBfMz3Yu6gUECAqrxa2gNpGBmEFZYhmn7ZHDO9yfCWhIb2sk+cCnmbSxCigvAUJRJ7grupYG8KnMo2R/IpEjlFLRWJUevu0raxTD3ZM4rbN0RhuAbMVOv2q6qc0KEDLC3t//hjOHA4+xFoQVnl5l04OcjUZA3E8lLi+vX37B1nQ3iy5Z7HFqyfqQrKScbLNFNIqL7gRw1mIW82SpjPYsFqtGTAfYIA=="
"signature": "Ciki2TRxCoCsogCiX53ZFz04hvl8QjPQ7hTA5obJRbIEmdgqSGNBNx0KHb3R1DpWiwnC8SwqdAcNDZPVZ+etBc4JHeUbqm5nxLGHRYceQaxsfK4vUhc7eCmWJsS8MCIyvrnzsSxvCdWAMMZwQGqngsJP+n9MI9vVlQxO5mkTFD6SSpsQZHFta7vbUrY0M1a7NE/CDHSNVeUeYy9Hdw5q/ZynYUxDzbEak4K8W/7fnNrzW5Vv34zXuBN8Rd5744epTAz/dgz7K2diF7OssHLMxJp5Owlpdg+vI7C+pq7z2qH7LXIojgscr4Bd4fe6kC3vcxglbSmc9jfGMX3bO7Xm/w=="
}