change "Fields" query parameter to array (#1733)

* change "Fields" query parameter to array

* platformToTarget.key() -> to array
This commit is contained in:
Alexander Welsing
2026-02-18 03:45:31 +01:00
committed by GitHub
parent 9dad934a40
commit 2c546867a8
3 changed files with 38 additions and 15 deletions
+3 -3
View File
@@ -15,9 +15,9 @@ const __dirname = path.dirname(__filename);
// eslint-disable-next-line @typescript-eslint/explicit-function-return-type
export default async function afterAllArtifactBuild(buildResult) {
// Check if this build includes Linux as a target
const isLinux = buildResult.platformToTargets
.keys()
.some((platform) => platform.name === 'linux');
const isLinux = Array.from(buildResult.platformToTargets.keys()).some(
(platform) => platform.name === 'linux',
);
if (isLinux) {
const updateScriptPath = path.join(__dirname, 'update-app-stream.mjs');