💄 format

This commit is contained in:
Tw93
2025-08-23 20:49:42 +08:00
parent 34a0419c83
commit ae2c5e0a17
5 changed files with 70 additions and 70 deletions

View File

@@ -1,16 +1,16 @@
name: 'Test Pake Action'
name: "Test Pake Action"
on:
workflow_dispatch:
inputs:
url:
description: 'URL to package'
description: "URL to package"
required: true
default: 'https://weekly.tw93.fun'
default: "https://weekly.tw93.fun"
name:
description: 'App name'
description: "App name"
required: true
default: 'TestApp'
default: "TestApp"
jobs:
test:
@@ -22,7 +22,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
node-version: "20"
- name: Build Pake App
id: build

View File

@@ -8,26 +8,26 @@ Transform any webpage into a lightweight desktop app with a single GitHub Action
- name: Build Pake App
uses: tw93/Pake@v3
with:
url: 'https://example.com'
name: 'MyApp'
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` |
| 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 |
|--------|-------------|
| Output | Description |
| -------------- | ----------------------------- |
| `package-path` | Path to the generated package |
## Examples
@@ -45,8 +45,8 @@ jobs:
- uses: actions/checkout@v4
- uses: tw93/Pake@v3
with:
url: 'https://weekly.tw93.fun'
name: 'WeeklyApp'
url: "https://weekly.tw93.fun"
name: "WeeklyApp"
```
### With Custom Icon
@@ -54,9 +54,9 @@ jobs:
```yaml
- uses: tw93/Pake@v3
with:
url: 'https://example.com'
name: 'MyApp'
icon: 'https://example.com/icon.png'
url: "https://example.com"
name: "MyApp"
icon: "https://example.com/icon.png"
width: 1400
height: 900
```
@@ -74,8 +74,8 @@ jobs:
- uses: actions/checkout@v4
- uses: tw93/Pake@v3
with:
url: 'https://example.com'
name: 'CrossPlatformApp'
url: "https://example.com"
name: "CrossPlatformApp"
```
## How It Works

View File

@@ -1,49 +1,49 @@
name: 'Pake Web App Builder'
description: 'Transform any webpage into a lightweight desktop app using Rust and Tauri'
author: 'tw93'
name: "Pake Web App Builder"
description: "Transform any webpage into a lightweight desktop app using Rust and Tauri"
author: "tw93"
branding:
icon: 'package'
color: 'blue'
icon: "package"
color: "blue"
inputs:
url:
description: 'Target URL to package'
description: "Target URL to package"
required: true
name:
description: 'Application name'
description: "Application name"
required: true
output-dir:
description: 'Output directory for packages'
description: "Output directory for packages"
required: false
default: 'dist'
default: "dist"
icon:
description: 'Custom app icon URL or path'
description: "Custom app icon URL or path"
required: false
width:
description: 'Window width'
description: "Window width"
required: false
default: '1200'
default: "1200"
height:
description: 'Window height'
description: "Window height"
required: false
default: '780'
default: "780"
debug:
description: 'Enable debug mode'
description: "Enable debug mode"
required: false
default: 'false'
default: "false"
outputs:
package-path:
description: 'Path to the generated package'
description: "Path to the generated package"
runs:
using: 'composite'
using: "composite"
steps:
- name: Setup Environment
shell: bash

2
bin/cli.ts vendored
View File

@@ -151,7 +151,7 @@ program
if (!url) {
program.help({
error: false
error: false,
});
return;
}

View File

@@ -319,8 +319,8 @@ StartupNotify=true
tauriConf.app.security = {
headers: {
'Cross-Origin-Opener-Policy': 'same-origin',
'Cross-Origin-Embedder-Policy': 'require-corp'
}
'Cross-Origin-Embedder-Policy': 'require-corp',
},
};
}