Skip to content

图标更新

图标更新 #112

Workflow file for this run

name: Build .NET Framework Application
on:
push:
paths:
- ".cpl/**"
- ".github/workflows/Build.yml"
pull_request:
paths:
- ".cpl/**"
- ".github/workflows/Build.yml"
workflow_dispatch:
jobs:
build:
name: Build
runs-on: windows-latest
strategy:
matrix:
configuration: [Release]
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set Describe & Version
shell: bash
run: |
describe=`git describe --tags --always`
version=$(grep 'AssemblyVersion("' ".cpl/Properties/AssemblyInfo.cs" | sed -E 's/.*AssemblyVersion\("([^"]+)".*/\1/')
echo "describe=$describe" >> $GITHUB_ENV
echo "version=$version" >> $GITHUB_ENV
- name: Setup MSBuild.exe
uses: microsoft/setup-msbuild@v2
- name: Build
run: msbuild "ChmlFrp_Professional_Launcher.sln" -p:Configuration=${{ matrix.configuration }}
- name: Move Executable to Root
run: |
Move-Item -Path ".cpl\bin\${{ matrix.configuration }}\ChmlFrp Professional Launcher.exe" -Destination .\
- name: Upload a Build Artifact to GitHub
uses: actions/upload-artifact@v4
with:
name: ChmlFrp Professional Launcher-${{ env.version }}-${{ matrix.configuration }}-Windows-Pre-alpha-${{ env.describe }}
path: |
ChmlFrp Professional Launcher.exe
README.md
LICENSE.md