Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
53 changes: 53 additions & 0 deletions bucket/moonlight-nightly.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
{
"version": "2580",
Copy link
Member

Choose a reason for hiding this comment

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

After a year, the $buildNumber has only reached 2587.

I'm afraid it's not appropriate to use it directly as a version number for nightly build.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

You would have to make multiple requests in order to get the stable versioning, which isn't really applicable to this CI anyway, so it doesn't make a whole lot sense to do that Imo.

Copy link
Member

Choose a reason for hiding this comment

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

You would have to make multiple requests in order to get the stable versioning,

Most nightly builds have this issue. How about simply adding a commit ID or a timestamp?

Or do you think we should merge or close this PR directly?

"description": "GameStream client for PCs (Windows, Mac, Linux, and Steam Link)",
"homepage": "https://moonlight-stream.org",
"license": "GPL-3.0-only",
"suggest": {
"vcredist": "extras/vcredist2022"
},
"architecture": {
"64bit": {
"url": "https://ci.appveyor.com/api/buildjobs/57s294gg9s6rbinq/artifacts/MoonlightPortable-x64-r2580.zip",
"hash": "e2f9b2afeb8feee3186a9ba049e7e5510dbd74605aaf4b0869f74e90fe2450e4"
},
"arm64": {
"url": "https://ci.appveyor.com/api/buildjobs/57s294gg9s6rbinq/artifacts/MoonlightPortable-arm64-r2580.zip",
"hash": "37813c7ef8566785c5a68599775c674d6e491f6717ff889129cc4fd88cb441be"
}
},
"pre_install": "if (!(Test-Path \"$persist_dir$($cfg = '/Moonlight Game Streaming Project')\")) { $null = New-Item -ItemType Directory \"$dir$cfg\" }",
"bin": "Moonlight.exe",
"shortcuts": [
[
"Moonlight.exe",
"Moonlight"
]
],
"persist": "Moonlight Game Streaming Project",
"checkver": {
"script": [
"$build = (Invoke-RestMethod https://ci.appveyor.com/api/projects/cgutman/moonlight-qt).Build",
"$buildNumber = $build.buildNumber",
"foreach ($job in $build.Jobs) {",
" if ($job.osType -eq 'Windows') {",
" if ($job.status -ne 'success') { return '' }",
" $jobId = $job.jobId",
" break",
" }",
"}",
"$buildNumber, $jobId -join ' '"
],
"regex": "\\A(\\d+) (?<job>[a-z\\d]+)\\Z"
},
"autoupdate": {
"architecture": {
"64bit": {
"url": "https://ci.appveyor.com/api/buildjobs/$matchJob/artifacts/MoonlightPortable-x64-r$version.zip"
},
"arm64": {
"url": "https://ci.appveyor.com/api/buildjobs/$matchJob/artifacts/MoonlightPortable-arm64-r$version.zip"
}
}
}
}