Skip to content

armgit / Pake

Public Imported from GitHub
0

Turn any website into a lightweight desktop app with one command, on macOS, Windows and Linux.

feat: add min-width, min-height, and app-version to pake-cli workflow

a5677746shdh3ebe77fbc75d
diff --git a/.github/workflows/pake-cli.yaml b/.github/workflows/pake-cli.yaml
index e8caab6b..80dc92a1 100644
--- a/.github/workflows/pake-cli.yaml
+++ b/.github/workflows/pake-cli.yaml
@@ -33,6 +33,16 @@ on:
description: "Window height (px)"
required: false
default: "780"
+ min_width:
+ description: "Minimum window width (px)"
+ required: false
+ min_height:
+ description: "Minimum window height (px)"
+ required: false
+ app_version:
+ description: "App version"
+ required: false
+ default: "1.0.0"
fullscreen:
description: "Start in fullscreen mode"
required: false
@@ -112,6 +122,18 @@ jobs:
ARGS+=("--height" "${{ inputs.height }}")
fi
+ if [ -n "${{ inputs.min_width }}" ]; then
+ ARGS+=("--min-width" "${{ inputs.min_width }}")
+ fi
+
+ if [ -n "${{ inputs.min_height }}" ]; then
+ ARGS+=("--min-height" "${{ inputs.min_height }}")
+ fi
+
+ if [ -n "${{ inputs.app_version }}" ]; then
+ ARGS+=("--app-version" "${{ inputs.app_version }}")
+ fi
+
if [ "${{ inputs.fullscreen }}" == "true" ]; then
ARGS+=("--fullscreen")
fi
@@ -150,6 +172,18 @@ jobs:
$args += "--height", "${{ inputs.height }}"
}
+ if ("${{ inputs.min_width }}" -ne "") {
+ $args += "--min-width", "${{ inputs.min_width }}"
+ }
+
+ if ("${{ inputs.min_height }}" -ne "") {
+ $args += "--min-height", "${{ inputs.min_height }}"
+ }
+
+ if ("${{ inputs.app_version }}" -ne "") {
+ $args += "--app-version", "${{ inputs.app_version }}"
+ }
+
if ("${{ inputs.fullscreen }}" -eq "true") {
$args += "--fullscreen"
}