✨ Actions support setting full screen
This commit is contained in:
14
.github/workflows/pake-cli.yaml
vendored
14
.github/workflows/pake-cli.yaml
vendored
@@ -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 }}
|
||||
|
||||
|
||||
4
script/build_with_pake_cli.js
vendored
4
script/build_with_pake_cli.js
vendored
@@ -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') {
|
||||
|
||||
Reference in New Issue
Block a user