Skip to content

Build Multi-Platform Release #4

Build Multi-Platform Release

Build Multi-Platform Release #4

Workflow file for this run

name: Build Multi-Platform Release
on:
push:
tags:
- '*'
workflow_dispatch:
inputs:
version:
description: 'Version to build'
required: true
default: '2.0.3'
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- os: windows-2022
platform: windows
build_cmd: |
pyinstaller --onefile --windowed ^
--name "AugmentCode-Free-v${{ github.event.inputs.version || github.ref_name }}-windows" ^
--add-data "languages;languages" ^
--add-data "config;config" ^
main.py
- os: macos-13
platform: macos
build_cmd: |
pyinstaller --onefile --windowed \
--name "AugmentCode-Free-v${{ github.event.inputs.version || github.ref_name }}-macos" \
--add-data "languages:languages" \
--add-data "config:config" \
main.py
- os: ubuntu-22.04
platform: linux
build_cmd: |
pyinstaller --onefile \
--name "AugmentCode-Free-v${{ github.event.inputs.version || github.ref_name }}-linux" \
--add-data "languages:languages" \
--add-data "config:config" \
main.py
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Install system dependencies (Linux)
if: matrix.platform == 'linux'
run: |
sudo apt-get update
sudo apt-get install -y \
libgl1-mesa-glx \
libegl1-mesa \
libxrandr2 \
libxss1 \
libxcursor1 \
libxcomposite1 \
libasound2 \
libxi6 \
libxtst6 \
libglib2.0-0 \
libgtk-3-0
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install pyinstaller
- name: Build application
run: ${{ matrix.build_cmd }}
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.platform }}-build
path: dist/*
retention-days: 30
release:
needs: build
runs-on: ubuntu-22.04
if: startsWith(github.ref, 'refs/tags/')
steps:
- name: Download all artifacts
uses: actions/download-artifact@v4
with:
merge-multiple: true
path: ./artifacts
- name: Display structure of downloaded files
run: ls -la ./artifacts
- name: Create Release
uses: softprops/action-gh-release@v2
with:
files: ./artifacts/*
tag_name: ${{ github.ref_name }}
name: AugmentCode-Free v${{ github.ref_name }}
body: |
## 🎉 AugmentCode-Free v${{ github.ref_name }} - 多平台发布
### 📦 下载文件
- **Windows**: `AugmentCode-Free-v${{ github.ref_name }}-windows.exe`
- **macOS**: `AugmentCode-Free-v${{ github.ref_name }}-macos`
- **Linux**: `AugmentCode-Free-v${{ github.ref_name }}-linux`
### 🚀 安装说明
**Windows:**
1. 下载 `.exe` 文件
2. 双击运行(可能需要管理员权限)
3. 首次运行可能需要允许Windows Defender
**macOS:**
1. 下载 macOS 版本
2. 添加执行权限: `chmod +x AugmentCode-Free-*-macos`
3. 运行: `./AugmentCode-Free-*-macos`
4. 如遇安全提示,请在系统偏好设置中允许
**Linux:**
1. 下载 Linux 版本
2. 添加执行权限: `chmod +x AugmentCode-Free-*-linux`
3. 运行: `./AugmentCode-Free-*-linux`
### 🔧 技术改进
- ✅ 修复按钮显示键名问题
- ✅ 完善国际化支持
- ✅ 修复语言文件缺失
- ✅ 支持多平台自动构建
### ⚠️ 重要提示
- 本项目完全开源免费!
- 如有人向您收费,请立即举报诈骗行为
- 项目地址:https://github.com/BasicProtein/AugmentCode-Free
draft: false
prerelease: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}