Merge pull request #717 from YangguangZhou/master
Add Safe Domain in Github Action and Optimize imgs
4
.github/workflows/pake-cli.yaml
vendored
@@ -28,6 +28,9 @@ on:
|
|||||||
description: '[Height, Optional]'
|
description: '[Height, Optional]'
|
||||||
required: false
|
required: false
|
||||||
default: '780'
|
default: '780'
|
||||||
|
safe_domain:
|
||||||
|
description: '[Safe Domain, Optional]'
|
||||||
|
required: false
|
||||||
hide_title_bar:
|
hide_title_bar:
|
||||||
description: '[Hide TitleBar, Optional, MacOS only]'
|
description: '[Hide TitleBar, Optional, MacOS only]'
|
||||||
required: false
|
required: false
|
||||||
@@ -129,6 +132,7 @@ jobs:
|
|||||||
RESIZE: ${{ inputs.resize }}
|
RESIZE: ${{ inputs.resize }}
|
||||||
MULTI_ARCH: ${{ inputs.multi_arch }}
|
MULTI_ARCH: ${{ inputs.multi_arch }}
|
||||||
TARGETS: ${{ inputs.targets }}
|
TARGETS: ${{ inputs.targets }}
|
||||||
|
SAFE_DOMAIN: ${{ inputs.safe_domain }}
|
||||||
|
|
||||||
- name: Upload archive
|
- name: Upload archive
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
|
|||||||
7
script/build_with_pake_cli.js
vendored
@@ -17,6 +17,7 @@ console.log('hide-title-bar: ', process.env.HIDE_TITLE_BAR);
|
|||||||
console.log('resize: ', process.env.RESIZE);
|
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('safe-domain: ', process.env.SAFE_DOMAIN);
|
||||||
console.log('===========================\n');
|
console.log('===========================\n');
|
||||||
|
|
||||||
cd('node_modules/pake-cli');
|
cd('node_modules/pake-cli');
|
||||||
@@ -39,11 +40,11 @@ if (process.env.TARGETS) {
|
|||||||
params = `${params} --targets ${process.env.TARGETS}`;
|
params = `${params} --targets ${process.env.TARGETS}`;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (process.platform === 'win32') {
|
if (process.env.SAFE_DOMAIN) {
|
||||||
params = `${params} --show-system-tray`;
|
params = `${params} --safe-domain ${process.env.SAFE_DOMAIN}`;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (process.platform === 'linux') {
|
if (process.platform === 'win32' || process.platform === 'linux') {
|
||||||
params = `${params} --show-system-tray`;
|
params = `${params} --show-system-tray`;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 106 KiB After Width: | Height: | Size: 102 KiB |
|
Before Width: | Height: | Size: 140 KiB After Width: | Height: | Size: 132 KiB |
|
Before Width: | Height: | Size: 80 KiB After Width: | Height: | Size: 76 KiB |
|
Before Width: | Height: | Size: 72 KiB After Width: | Height: | Size: 71 KiB |
|
Before Width: | Height: | Size: 287 KiB After Width: | Height: | Size: 284 KiB |
|
Before Width: | Height: | Size: 69 KiB After Width: | Height: | Size: 62 KiB |
|
Before Width: | Height: | Size: 58 KiB After Width: | Height: | Size: 56 KiB |
|
Before Width: | Height: | Size: 149 KiB After Width: | Height: | Size: 136 KiB |
|
Before Width: | Height: | Size: 55 KiB After Width: | Height: | Size: 49 KiB |
|
Before Width: | Height: | Size: 38 KiB After Width: | Height: | Size: 37 KiB |
|
Before Width: | Height: | Size: 71 KiB After Width: | Height: | Size: 68 KiB |
|
Before Width: | Height: | Size: 27 KiB After Width: | Height: | Size: 26 KiB |
|
Before Width: | Height: | Size: 24 KiB After Width: | Height: | Size: 23 KiB |
|
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 15 KiB |
|
Before Width: | Height: | Size: 19 KiB After Width: | Height: | Size: 18 KiB |