✨ 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'
|
description: 'Name, English, Linux no capital'
|
||||||
required: true
|
required: true
|
||||||
icon:
|
icon:
|
||||||
description: 'Icon, Optional, Image URL'
|
description: 'Icon, Image URL, Optional'
|
||||||
required: false
|
required: false
|
||||||
width:
|
width:
|
||||||
description: 'Width, Optional'
|
description: 'Width, Optional'
|
||||||
@@ -28,18 +28,23 @@ on:
|
|||||||
description: 'Height, Optional'
|
description: 'Height, Optional'
|
||||||
required: false
|
required: false
|
||||||
default: '780'
|
default: '780'
|
||||||
|
fullscreen:
|
||||||
|
description: 'Fullscreen, At startup, Optional'
|
||||||
|
required: false
|
||||||
|
type: boolean
|
||||||
|
default: false
|
||||||
hide_title_bar:
|
hide_title_bar:
|
||||||
description: 'Hide TitleBar, Optional, MacOS only'
|
description: 'Hide TitleBar, MacOS only, Optional'
|
||||||
required: false
|
required: false
|
||||||
type: boolean
|
type: boolean
|
||||||
default: false
|
default: false
|
||||||
multi_arch:
|
multi_arch:
|
||||||
description: 'MultiArch, Optional, MacOS only'
|
description: 'MultiArch, MacOS only, Optional'
|
||||||
required: false
|
required: false
|
||||||
type: boolean
|
type: boolean
|
||||||
default: false
|
default: false
|
||||||
targets:
|
targets:
|
||||||
description: 'Targets, Optional, Linux only'
|
description: 'Targets, Linux only, Optional'
|
||||||
required: false
|
required: false
|
||||||
default: 'deb'
|
default: 'deb'
|
||||||
type: choice
|
type: choice
|
||||||
@@ -126,7 +131,6 @@ jobs:
|
|||||||
WIDTH: ${{ inputs.width }}
|
WIDTH: ${{ inputs.width }}
|
||||||
HIDE_TITLE_BAR: ${{ inputs.hide_title_bar }}
|
HIDE_TITLE_BAR: ${{ inputs.hide_title_bar }}
|
||||||
FULLSCREEN: ${{ inputs.fullscreen }}
|
FULLSCREEN: ${{ inputs.fullscreen }}
|
||||||
RESIZE: ${{ inputs.resize }}
|
|
||||||
MULTI_ARCH: ${{ inputs.multi_arch }}
|
MULTI_ARCH: ${{ inputs.multi_arch }}
|
||||||
TARGETS: ${{ inputs.targets }}
|
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('icon: ', process.env.ICON);
|
||||||
console.log('height: ', process.env.HEIGHT);
|
console.log('height: ', process.env.HEIGHT);
|
||||||
console.log('width: ', process.env.WIDTH);
|
console.log('width: ', process.env.WIDTH);
|
||||||
|
console.log('fullscreen: ', process.env.FULLSCREEN);
|
||||||
console.log('hide-title-bar: ', process.env.HIDE_TITLE_BAR);
|
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('is multi arch? only for Mac: ', process.env.MULTI_ARCH);
|
||||||
console.log('targets type? only for Linux: ', process.env.TARGETS);
|
console.log('targets type? only for Linux: ', process.env.TARGETS);
|
||||||
console.log('===========================\n');
|
console.log('===========================\n');
|
||||||
@@ -27,7 +27,7 @@ if (process.env.HIDE_TITLE_BAR === 'true') {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (process.env.FULLSCREEN === 'true') {
|
if (process.env.FULLSCREEN === 'true') {
|
||||||
params = `${params} --resize`;
|
params = `${params} --fullscreen`;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (process.env.MULTI_ARCH === 'true') {
|
if (process.env.MULTI_ARCH === 'true') {
|
||||||
|
|||||||
Reference in New Issue
Block a user