From 712e8300068c3dbd28d5d7160baa55c60bc81474 Mon Sep 17 00:00:00 2001 From: Tw93 Date: Mon, 23 Dec 2024 20:06:00 +0800 Subject: [PATCH] :sparkles: Actions support setting full screen --- .github/workflows/pake-cli.yaml | 14 +++++++++----- script/build_with_pake_cli.js | 4 ++-- 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/.github/workflows/pake-cli.yaml b/.github/workflows/pake-cli.yaml index 48292b0..4fb4ca9 100644 --- a/.github/workflows/pake-cli.yaml +++ b/.github/workflows/pake-cli.yaml @@ -18,7 +18,7 @@ on: description: 'Name, English, Linux no capital' required: true icon: - description: 'Icon, Optional, Image URL' + description: 'Icon, Image URL, Optional' required: false width: description: 'Width, Optional' @@ -28,18 +28,23 @@ on: description: 'Height, Optional' required: false default: '780' + fullscreen: + description: 'Fullscreen, At startup, Optional' + required: false + type: boolean + default: false hide_title_bar: - description: 'Hide TitleBar, Optional, MacOS only' + description: 'Hide TitleBar, MacOS only, Optional' required: false type: boolean default: false multi_arch: - description: 'MultiArch, Optional, MacOS only' + description: 'MultiArch, MacOS only, Optional' required: false type: boolean default: false targets: - description: 'Targets, Optional, Linux only' + description: 'Targets, Linux only, Optional' required: false default: 'deb' type: choice @@ -126,7 +131,6 @@ jobs: WIDTH: ${{ inputs.width }} HIDE_TITLE_BAR: ${{ inputs.hide_title_bar }} FULLSCREEN: ${{ inputs.fullscreen }} - RESIZE: ${{ inputs.resize }} MULTI_ARCH: ${{ inputs.multi_arch }} TARGETS: ${{ inputs.targets }} diff --git a/script/build_with_pake_cli.js b/script/build_with_pake_cli.js index 895a3d2..9017bd1 100644 --- a/script/build_with_pake_cli.js +++ b/script/build_with_pake_cli.js @@ -13,8 +13,8 @@ console.log('name: ', process.env.NAME); console.log('icon: ', process.env.ICON); console.log('height: ', process.env.HEIGHT); console.log('width: ', process.env.WIDTH); +console.log('fullscreen: ', process.env.FULLSCREEN); console.log('hide-title-bar: ', process.env.HIDE_TITLE_BAR); -console.log('resize: ', process.env.RESIZE); console.log('is multi arch? only for Mac: ', process.env.MULTI_ARCH); console.log('targets type? only for Linux: ', process.env.TARGETS); console.log('===========================\n'); @@ -27,7 +27,7 @@ if (process.env.HIDE_TITLE_BAR === 'true') { } if (process.env.FULLSCREEN === 'true') { - params = `${params} --resize`; + params = `${params} --fullscreen`; } if (process.env.MULTI_ARCH === 'true') {