mirror of
https://github.com/Zaarrg/stremio-community-v5.git
synced 2026-01-11 20:10:31 +00:00
Version Bump and regex fix checksum script
- Version bump to 5.0.8 to match beta.8 - Fixed ' being added repeatedly by checksums script to chocolateyinstall.ps1
This commit is contained in:
parent
1092a7d21e
commit
992ba94ce4
7 changed files with 23 additions and 31 deletions
|
|
@ -1,6 +1,6 @@
|
|||
cmake_minimum_required(VERSION 3.16)
|
||||
|
||||
project(stremio VERSION "5.0.7")
|
||||
project(stremio VERSION "5.0.8")
|
||||
|
||||
set(CMAKE_CXX_STANDARD 17)
|
||||
set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")
|
||||
|
|
|
|||
|
|
@ -286,24 +286,16 @@ function updateChocolateyInstall(ps1Path, gitTag, newVersion) {
|
|||
checkFileExists(ps1Path, "chocolateyinstall.ps1");
|
||||
let content = fs.readFileSync(ps1Path, "utf8");
|
||||
|
||||
// For 64-bit:
|
||||
// if ([Environment]::Is64BitOperatingSystem) {
|
||||
// $packageArgs['url'] = 'https://github.com/Zaarrg/stremio-desktop-v5/releases/download/<GIT_TAG>/Stremio.<SHELL_VERSION>-x64.exe'
|
||||
// }
|
||||
const new64Url = `if ([Environment]::Is64BitOperatingSystem) {\n $packageArgs['url'] = 'https://github.com/Zaarrg/stremio-desktop-v5/releases/download/${gitTag}/Stremio.${newVersion}-x64.exe'`;
|
||||
content = content.replace(
|
||||
/if\s*\(\[Environment\]::Is64BitOperatingSystem\)\s*\{\s*\$packageArgs\['url'\]\s*=\s*'[^']+/m,
|
||||
new64Url
|
||||
// Regex for the 64-bit block:
|
||||
const pattern64 = /(\[Environment\]::Is64BitOperatingSystem\)\s*\{\s*\$packageArgs\['url'\]\s*=\s*')([^']+)(')/m;
|
||||
content = content.replace(pattern64,
|
||||
`$1https://github.com/Zaarrg/stremio-desktop-v5/releases/download/${gitTag}/Stremio.${newVersion}-x64.exe$3`
|
||||
);
|
||||
|
||||
// For 32-bit:
|
||||
// } else {
|
||||
// $packageArgs['url'] = 'https://github.com/Zaarrg/stremio-desktop-v5/releases/download/<GIT_TAG>/Stremio.<SHELL_VERSION>-x86.exe'
|
||||
// }
|
||||
const new86Url = `} else {\n $packageArgs['url'] = 'https://github.com/Zaarrg/stremio-desktop-v5/releases/download/${gitTag}/Stremio.${newVersion}-x86.exe'`;
|
||||
content = content.replace(
|
||||
/}\s*else\s*\{\s*\$packageArgs\['url'\]\s*=\s*'[^']+/m,
|
||||
new86Url
|
||||
// Regex for the 32-bit block:
|
||||
const pattern86 = /(\}\s*else\s*\{\s*\$packageArgs\['url'\]\s*=\s*')([^']+)(')/m;
|
||||
content = content.replace(pattern86,
|
||||
`$1https://github.com/Zaarrg/stremio-desktop-v5/releases/download/${gitTag}/Stremio.${newVersion}-x86.exe$3`
|
||||
);
|
||||
|
||||
fs.writeFileSync(ps1Path, content, "utf8");
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
|
||||
<metadata>
|
||||
<id>stremio-desktop-v5</id>
|
||||
<version>5.0.7</version>
|
||||
<version>5.0.8</version>
|
||||
<title>Stremio Desktop v5</title>
|
||||
<authors>Zaarrg</authors>
|
||||
<owners>Zaarrg</owners>
|
||||
|
|
|
|||
|
|
@ -8,9 +8,9 @@ $packageArgs = @{
|
|||
}
|
||||
|
||||
if ([Environment]::Is64BitOperatingSystem) {
|
||||
$packageArgs['url'] = 'https://github.com/Zaarrg/stremio-desktop-v5/releases/download/5.0.0-beta.7/Stremio.5.0.7-x64.exe'''
|
||||
$packageArgs['url'] = 'https://github.com/Zaarrg/stremio-desktop-v5/releases/download/5.0.0-beta.8/Stremio.5.0.8-x64.exe'
|
||||
} else {
|
||||
$packageArgs['url'] = 'https://github.com/Zaarrg/stremio-desktop-v5/releases/download/5.0.0-beta.7/Stremio.5.0.7-x86.exe'''
|
||||
$packageArgs['url'] = 'https://github.com/Zaarrg/stremio-desktop-v5/releases/download/5.0.0-beta.8/Stremio.5.0.8-x86.exe'
|
||||
}
|
||||
|
||||
Install-ChocolateyPackage @packageArgs
|
||||
|
|
|
|||
|
|
@ -1,12 +1,12 @@
|
|||
{
|
||||
"version": "5.0.7",
|
||||
"version": "5.0.8",
|
||||
"description": "Stremio Desktop v5 Community",
|
||||
"homepage": "https://github.com/Zaarrg/stremio-desktop-v5",
|
||||
"license": "GPL-3.0",
|
||||
"architecture": {
|
||||
"64bit": {
|
||||
"url": "https://github.com/Zaarrg/stremio-desktop-v5/releases/download/5.0.0-beta.7/Stremio.5.0.7-x64.exe",
|
||||
"hash": "a7b71844a12f23272f8a5658fefd0d94bdf9f7e3c9a820e7d1a07436b8927bdb",
|
||||
"url": "https://github.com/Zaarrg/stremio-desktop-v5/releases/download/5.0.0-beta.8/Stremio.5.0.8-x64.exe",
|
||||
"hash": "058470dbdaf180fb54f5221c4c06b5c1811a8058796649a103bb17bfb18eea77",
|
||||
"installer": {
|
||||
"args": [
|
||||
"/S"
|
||||
|
|
@ -20,8 +20,8 @@
|
|||
}
|
||||
},
|
||||
"32bit": {
|
||||
"url": "https://github.com/Zaarrg/stremio-desktop-v5/releases/download/5.0.0-beta.7/Stremio.5.0.7-x86.exe",
|
||||
"hash": "65bf17a67c22d67bf602a8023ac94ae63f8a685f32e63d1d28d3a6b0cb0932ef",
|
||||
"url": "https://github.com/Zaarrg/stremio-desktop-v5/releases/download/5.0.0-beta.8/Stremio.5.0.8-x86.exe",
|
||||
"hash": "3d68ff9e3e34c16dc5a97c950295237cfae8bd241ec40a42fffe260d558b49e3",
|
||||
"installer": {
|
||||
"args": [
|
||||
"/S"
|
||||
|
|
|
|||
|
|
@ -1,13 +1,13 @@
|
|||
{
|
||||
"shellVersion": "5.0.7",
|
||||
"shellVersion": "5.0.8",
|
||||
"files": {
|
||||
"windows-x64": {
|
||||
"url": "https://github.com/Zaarrg/stremio-desktop-v5/releases/download/5.0.0-beta.7/Stremio.5.0.7-x64.exe",
|
||||
"checksum": "a7b71844a12f23272f8a5658fefd0d94bdf9f7e3c9a820e7d1a07436b8927bdb"
|
||||
"url": "https://github.com/Zaarrg/stremio-desktop-v5/releases/download/5.0.0-beta.8/Stremio.5.0.8-x64.exe",
|
||||
"checksum": "058470dbdaf180fb54f5221c4c06b5c1811a8058796649a103bb17bfb18eea77"
|
||||
},
|
||||
"windows-x86": {
|
||||
"url": "https://github.com/Zaarrg/stremio-desktop-v5/releases/download/5.0.0-beta.7/Stremio.5.0.7-x86.exe",
|
||||
"checksum": "65bf17a67c22d67bf602a8023ac94ae63f8a685f32e63d1d28d3a6b0cb0932ef"
|
||||
"url": "https://github.com/Zaarrg/stremio-desktop-v5/releases/download/5.0.0-beta.8/Stremio.5.0.8-x86.exe",
|
||||
"checksum": "3d68ff9e3e34c16dc5a97c950295237cfae8bd241ec40a42fffe260d558b49e3"
|
||||
},
|
||||
"server.js": {
|
||||
"url": "https://dl.strem.io/server/v4.20.8/desktop/server.js",
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"upToDate": false,
|
||||
"versionDesc": "https://raw.githubusercontent.com/Zaarrg/stremio-desktop-v5/refs/heads/master/version/version-details.json",
|
||||
"signature": "f5b4X5+QImy0SmCyU3iVGTnqX/xbg7B/d55G7YN/96dLnV0d0vmXU+OijfNA6pq8mw21uolrUQmkPnyPuASVxx4x98AyjVFQVYoulPfArR/ME1UnNDbfdyWZBKhR5EXuCeCqmIHGjFgH59kOp1hHsCaKhTqPFcwE/L9PLvGy0RxL3IhTSgNnadg6BRhf0izcOusc+xRFKIKQuAc3/eYLTGTJTYjHykAdl/ok1ufttHv6ZCEhjo2ki44VsnanSeYmXa3vlFriUsdhrschxrE4RApE/fqQl4VhZh/3PRwUNJX/E25b7Yyqxy1hLJd4mkaY0Ag98KsynQBdmJp8zWSYPA=="
|
||||
"signature": "D6eFThbf/nU7r9U5cepK7nANnYQ4jtZy1Ph6U3GhzN2n8G02hZ02fh9o/hZlt3zC5Pbzmp+NgzyHB4G+XFVw39Mm3VCw9LXJLEZoysCpFMtyv876fUM32jQHRUHIC5eKfMgWTtUxvaz6z9Vg/3MHg1KKrDgQWQcHgqkLkWX7ppMH7FjfEr7jw2yVzbv2k/QNFXCLVo1sFP8xXP4tjIoKSanL3IDFOtFBYkAfQlUjQem+BSYWBquwu0ulW3hmBtzOSU/9di09IScUp/yKcydhcOf3PWY9w2+IJP1LMAiHGFv1Wu1PRB83qUKxbUHcsCuN8ObLFHUqcSozjW8hhmykdg=="
|
||||
}
|
||||
Loading…
Reference in a new issue