Skip to content

Commit

Permalink
✨ Actions support setting full screen
Browse files Browse the repository at this point in the history
  • Loading branch information
tw93 committed Dec 23, 2024
1 parent 9e347ee commit 712e830
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/pake-cli.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -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
Expand Down Expand Up @@ -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 }}

Expand Down
4 changes: 2 additions & 2 deletions script/build_with_pake_cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand All @@ -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') {
Expand Down

0 comments on commit 712e830

Please sign in to comment.