Skip to content

完善双设备连接,修改图标 #12

完善双设备连接,修改图标

完善双设备连接,修改图标 #12

Workflow file for this run

name: Build Windows x64
on:
push:
tags: ['**']
workflow_dispatch:
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Setup MSBuild
uses: microsoft/setup-msbuild@v2
- name: Setup NuGet
uses: nuget/setup-nuget@v2
with:
nuget-version: latest
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: 3.13
- name: Configure Git to use HTTPS
run: git config --global url."https://github.com/".insteadOf git://github.com/
- name: Generate resources
shell: pwsh
run: |
cd translate
pip install -r requirements.txt
python po2ymo.py ./source/zh_CN.po ./generated/zh_CN.ymo
python po2ymo.py ./source/zh_TW.po ./generated/zh_TW.ymo
@"
#include "../../targetver.h"
#include "windows.h"
LANGUAGE LANG_CHINESE, SUBLANG_CHINESE_SIMPLIFIED
1 YMO "zh_CN.ymo"
LANGUAGE LANG_CHINESE, SUBLANG_CHINESE_TRADITIONAL
1 YMO "zh_TW.ymo"
"@ | Out-File -FilePath ./generated/translate.rc -Encoding utf8
- name: Restore NuGet packages
run: nuget restore AudioPlaybackConnector.sln
- name: Build x64 Release
shell: powershell
run: |
msbuild AudioPlaybackConnector.sln `
-p:Configuration=Release `
-p:Platform=x64
- name: Upload x64 artifact
uses: actions/upload-artifact@v4
with:
name: AudioPlaybackConnector-x64
path: x64/Release/AudioPlaybackConnector64.exe
- name: Release
uses: softprops/action-gh-release@v2
if: github.ref_type == 'tag'
with:
files: |
x64/Release/AudioPlaybackConnector64.exe
tag_name: ${{ github.ref }}
release_name: ${{ github.ref }}
draft: true
prerelease: false