2.3 KiB
2.3 KiB
Pake GitHub Action
Transform any webpage into a lightweight desktop app with a single GitHub Actions step.
Quick Start
- name: Build Pake App
uses: tw93/Pake@v3
with:
url: "https://example.com"
name: "MyApp"
Inputs
| Parameter | Description | Required | Default |
|---|---|---|---|
url |
Target URL to package | ✅ | |
name |
Application name | ✅ | |
output-dir |
Output directory | dist |
|
icon |
Custom app icon URL/path | ||
width |
Window width | 1200 |
|
height |
Window height | 780 |
|
debug |
Enable debug mode | false |
Outputs
| Output | Description |
|---|---|
package-path |
Path to the generated package |
Examples
Basic Usage
name: Build Web App
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: tw93/Pake@v3
with:
url: "https://weekly.tw93.fun"
name: "WeeklyApp"
With Custom Icon
- uses: tw93/Pake@v3
with:
url: "https://example.com"
name: "MyApp"
icon: "https://example.com/icon.png"
width: 1400
height: 900
Multi-Platform Build
jobs:
build:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: tw93/Pake@v3
with:
url: "https://example.com"
name: "CrossPlatformApp"
How It Works
- Auto Setup: Installs Rust, Node.js dependencies, builds Pake CLI
- Build App: Runs
pakecommand with your parameters - Package Output: Finds and moves the generated package to output directory
Supported Platforms
- Linux:
.debpackages (Ubuntu runners) - macOS:
.appand.dmgpackages (macOS runners) - Windows:
.exeand.msipackages (Windows runners)
Use GitHub's matrix strategy to build for multiple platforms simultaneously.
Testing
Try the action with our test workflow: test-action.yml