Skip to content

v1.0.0: 图片插入、链接处理、文件关联修复、独立图片文件夹 #2

v1.0.0: 图片插入、链接处理、文件关联修复、独立图片文件夹

v1.0.0: 图片插入、链接处理、文件关联修复、独立图片文件夹 #2

Workflow file for this run

name: Release
on:
push:
tags:
- 'v*'
workflow_dispatch:
jobs:
publish-tauri:
permissions:
contents: write
strategy:
fail-fast: false
matrix:
include:
- platform: 'macos-latest'
args: '--target aarch64-apple-darwin'
- platform: 'macos-latest'
args: '--target x86_64-apple-darwin'
- platform: 'ubuntu-22.04'
args: ''
- platform: 'windows-latest'
args: ''
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
- name: Setup Rust
uses: dtolnay/rust-toolchain@stable
with:
targets: ${{ matrix.platform == 'macos-latest' && 'aarch64-apple-darwin,x86_64-apple-darwin' || '' }}
- name: Install dependencies (Ubuntu only)
if: matrix.platform == 'ubuntu-22.04'
run: |
sudo apt-get update
sudo apt-get install -y libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf
- name: Install frontend dependencies
run: npm install
- name: Build Tauri
uses: tauri-apps/tauri-action@v0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# macOS signing is optional; without it users must right-click → Open
# To enable signed builds, add these secrets in repo Settings:
# APPLE_CERTIFICATE, APPLE_CERTIFICATE_PASSWORD, APPLE_SIGNING_IDENTITY,
# APPLE_ID, APPLE_PASSWORD, APPLE_TEAM_ID
with:
tagName: ${{ github.ref_name }}
releaseName: 'Light MD ${{ github.ref_name }}'
releaseBody: |
**Light MD ${{ github.ref_name }}**
### 安装说明
- **macOS**: 下载 `.dmg`,双击安装后拖入 Applications。首次打开需在右键菜单选择"打开"(未签名应用)。
- **Windows**: 下载 `.msi` 或 `.exe` 安装包,双击安装。Windows Defender 可能会提示,点击"更多信息" →"仍要运行"。
- **Linux**: 下载 `.deb` 或 `.AppImage`,双击运行。
### 系统要求
- macOS 11+ (Intel / Apple Silicon)
- Windows 10+
- Ubuntu 20.04+ / 其他支持 AppImage 的 Linux 发行版
releaseDraft: true
prerelease: false
args: ${{ matrix.args }}