update pake-cli.yml
This commit is contained in:
10
.github/workflows/pake-cli.yaml
vendored
10
.github/workflows/pake-cli.yaml
vendored
@@ -48,6 +48,15 @@ on:
|
||||
required: false
|
||||
type: boolean
|
||||
default: false
|
||||
targets:
|
||||
description: "[Targets, Optional, Linux only]"
|
||||
required: false
|
||||
default: "deb"
|
||||
type: choice
|
||||
options:
|
||||
- "deb"
|
||||
- "appimage"
|
||||
- "all"
|
||||
|
||||
|
||||
jobs:
|
||||
@@ -131,6 +140,7 @@ jobs:
|
||||
FULLSCREEN: ${{ inputs.fullscreen }}
|
||||
RESIZE: ${{ inputs.resize }}
|
||||
MULTI_ARCH: ${{ inputs.multi_arch }}
|
||||
TARGETS: ${{ inputs.targets }}
|
||||
|
||||
- name: Upload archive
|
||||
uses: actions/upload-artifact@v3
|
||||
|
||||
8
script/build_with_pake_cli.ps1
vendored
8
script/build_with_pake_cli.ps1
vendored
@@ -18,6 +18,7 @@ Write-Host "transparent: " $env:TRANSPARENT
|
||||
Write-Host "fullscreen: " $env:FULLSCREEN
|
||||
Write-Host "resize: " $env:RESIZE
|
||||
Write-Host "is multi arch? only for Mac: " $env:MULTI_ARCH
|
||||
Write-Host "targets type? only for Linux: " $env:TARGETS
|
||||
Write-Host "===========================`n"
|
||||
|
||||
# init params
|
||||
@@ -57,12 +58,17 @@ if ("$env:FULLSCREEN" -eq "true" ) {
|
||||
${Params}="${Params} --resize"
|
||||
}
|
||||
|
||||
# multi-arch
|
||||
# multi-arch only for mac
|
||||
if (($env:MULTI_ARCH -eq "true") -and ($IsMacOS)) {
|
||||
rustup target add aarch64-apple-darwin
|
||||
${Params}="${Params} --multi-arch"
|
||||
}
|
||||
|
||||
# targets type, only for linux
|
||||
if (($null -ne $env:TARGETS) -and ($env:TARGETS -ne "") -and ($IsLinux)) {
|
||||
${Params}="${Params} --targets $env:TARGETS"
|
||||
}
|
||||
|
||||
Write-Host "Pake parameters is: ${Params}"
|
||||
Write-Host "compile...."
|
||||
Invoke-Expression $Params
|
||||
|
||||
Reference in New Issue
Block a user