From 27e02e91ee4e84e6e06b9c8da96c1aed3effa637 Mon Sep 17 00:00:00 2001 From: Tw93 Date: Wed, 20 Aug 2025 15:19:03 +0800 Subject: [PATCH] :bug: update for cli actions --- .github/workflows/pake-cli.yaml | 3 --- script/build_with_pake_cli.js | 6 +++--- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/.github/workflows/pake-cli.yaml b/.github/workflows/pake-cli.yaml index a62a8cf..f4fe9a3 100644 --- a/.github/workflows/pake-cli.yaml +++ b/.github/workflows/pake-cli.yaml @@ -38,13 +38,11 @@ on: required: false type: boolean default: false - if: inputs.platform == 'macos-latest' multi_arch: description: "MultiArch, MacOS only, Optional" required: false type: boolean default: false - if: inputs.platform == 'macos-latest' targets: description: "Targets, Linux only, Optional" required: false @@ -54,7 +52,6 @@ on: - "deb" - "appimage" - "rpm" - if: inputs.platform == 'ubuntu-24.04' jobs: build: diff --git a/script/build_with_pake_cli.js b/script/build_with_pake_cli.js index 9a959a7..9a41985 100644 --- a/script/build_with_pake_cli.js +++ b/script/build_with_pake_cli.js @@ -34,7 +34,7 @@ const buildParameters = () => { process.env.WIDTH, ]; - if (process.env.HIDE_TITLE_BAR === "true") { + if (process.env.HIDE_TITLE_BAR === "true" && process.platform === "darwin") { params.push("--hide-title-bar"); } @@ -42,12 +42,12 @@ const buildParameters = () => { params.push("--fullscreen"); } - if (process.env.MULTI_ARCH === "true") { + if (process.env.MULTI_ARCH === "true" && process.platform === "darwin") { // We'll handle rustup separately since it's a different command params.push("--multi-arch"); } - if (process.env.TARGETS) { + if (process.env.TARGETS && process.platform === "linux") { params.push("--targets", process.env.TARGETS); }