Turn any website into a lightweight desktop app with one command, on macOS, Windows and Linux.
Rust chatgptclaudeclidesktopdesktop-appelectron-alternativegeminilinuxmacosnativefierno-electronrusttauriweb-to-desktopwebsite-to-appwebviewwindowsyoutube
refactor: use bash arrays on macOS/Linux to support app names with spaces
Roybafaae40dfe7
diff --git a/.github/workflows/pake-cli.yaml b/.github/workflows/pake-cli.yamlindex dd977110..e8caab6b 100644--- a/.github/workflows/pake-cli.yaml+++ b/.github/workflows/pake-cli.yaml@@ -98,38 +98,38 @@ jobs:timeout-minutes: 25shell: bashrun: |- ARGS="${{ inputs.url }} --name ${{ inputs.name }}"+ ARGS=("${{ inputs.url }}" "--name" "${{ inputs.name }}")if [ -n "${{ inputs.icon }}" ]; then- ARGS="$ARGS --icon ${{ inputs.icon }}"+ ARGS+=("--icon" "${{ inputs.icon }}")fiif [ -n "${{ inputs.width }}" ]; then- ARGS="$ARGS --width ${{ inputs.width }}"+ ARGS+=("--width" "${{ inputs.width }}")fiif [ -n "${{ inputs.height }}" ]; then- ARGS="$ARGS --height ${{ inputs.height }}"+ ARGS+=("--height" "${{ inputs.height }}")fiif [ "${{ inputs.fullscreen }}" == "true" ]; then- ARGS="$ARGS --fullscreen"+ ARGS+=("--fullscreen")fiif [ "${{ inputs.hide_title_bar }}" == "true" ]; then- ARGS="$ARGS --hide-title-bar"+ ARGS+=("--hide-title-bar")fiif [ "${{ inputs.multi_arch }}" == "true" ]; then- ARGS="$ARGS --multi-arch"+ ARGS+=("--multi-arch")fiif [ -n "${{ inputs.targets }}" ] && [ "${{ runner.os }}" == "Linux" ]; then- ARGS="$ARGS --targets ${{ inputs.targets }}"+ ARGS+=("--targets" "${{ inputs.targets }}")fi- echo "Running: node dist/cli.js $ARGS"- node dist/cli.js $ARGS+ echo "Running: node dist/cli.js ${ARGS[@]}"+ node dist/cli.js "${ARGS[@]}"- name: Build App (Windows)if: runner.os == 'Windows'diff --git a/.github/workflows/single-app.yaml b/.github/workflows/single-app.yamlindex 162e101b..1f20a63d 100644--- a/.github/workflows/single-app.yaml+++ b/.github/workflows/single-app.yaml@@ -99,17 +99,17 @@ jobs:if: matrix.os == 'ubuntu-latest'timeout-minutes: 20run: |- ARGS="${{ inputs.url }} --name ${{ inputs.name }}"+ ARGS=("${{ inputs.url }}" "--name" "${{ inputs.name }}")# Auto-detect local icon or use provided iconif [ -n "${{ inputs.icon }}" ]; then- ARGS="$ARGS --icon ${{ inputs.icon }}"+ ARGS+=("--icon" "${{ inputs.icon }}")elif [ -f "src-tauri/png/${{ inputs.name }}_512.png" ]; then- ARGS="$ARGS --icon src-tauri/png/${{ inputs.name }}_512.png"+ ARGS+=("--icon" "src-tauri/png/${{ inputs.name }}_512.png")fi# Build once with multiple targets (faster than separate builds)- node dist/cli.js $ARGS --targets deb,appimage+ node dist/cli.js "${ARGS[@]}" --targets deb,appimagemkdir -p output/linux@@ -139,16 +139,16 @@ jobs:if: matrix.os == 'macos-latest'timeout-minutes: 25run: |- ARGS="${{ inputs.url }} --name ${{ inputs.name }} --hide-title-bar"+ ARGS=("${{ inputs.url }}" "--name" "${{ inputs.name }}" "--hide-title-bar")# Auto-detect local icon or use provided iconif [ -n "${{ inputs.icon }}" ]; then- ARGS="$ARGS --icon ${{ inputs.icon }}"+ ARGS+=("--icon" "${{ inputs.icon }}")elif [ -f "src-tauri/icons/${{ inputs.name }}.icns" ]; then- ARGS="$ARGS --icon src-tauri/icons/${{ inputs.name }}.icns"+ ARGS+=("--icon" "src-tauri/icons/${{ inputs.name }}.icns")fi- node dist/cli.js $ARGS --targets universal --multi-arch+ node dist/cli.js "${ARGS[@]}" --targets universal --multi-archmkdir -p output/macos