Skip to content

Commit

Permalink
Added Avalonia UI Windows version compilation script
Browse files Browse the repository at this point in the history
  • Loading branch information
2dust committed Jan 24, 2025
1 parent 75df85f commit 0c38ebb
Showing 1 changed file with 50 additions and 0 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/build-windows-desktop.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: release Windows desktop (Avalonia UI)

on:
workflow_dispatch:
inputs:
release_tag:
required: false
type: string
push:
branches:
- master

env:
OutputArch: "windows-64"
OutputArchArm: "windows-arm64"
OutputPath64: "${{ github.workspace }}/v2rayN/Release/windows-64"
OutputPathArm64: "${{ github.workspace }}/v2rayN/Release/windows-arm64"

jobs:
build:
strategy:
matrix:
configuration: [Release]

runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/[email protected]

- name: Setup
uses: actions/[email protected]
with:
dotnet-version: '8.0.x'

- name: Build
run: |
cd v2rayN
dotnet publish ./v2rayN.Desktop/v2rayN.Desktop.csproj -c Release -r win-x64 --self-contained=true -p:PublishReadyToRun=false -p:PublishSingleFile=true -p:EnableWindowsTargeting=true -o $OutputPath64
dotnet publish ./v2rayN.Desktop/v2rayN.Desktop.csproj -c Release -r win-arm64 --self-contained=true -p:PublishReadyToRun=false -p:PublishSingleFile=true -p:EnableWindowsTargeting=true -o $OutputPathArm64
dotnet publish ./AmazTool/AmazTool.csproj -c Release -r win-x64 --self-contained=true -p:PublishReadyToRun=false -p:PublishSingleFile=true -p:PublishTrimmed=true -p:EnableWindowsTargeting=true -o $OutputPath64
dotnet publish ./AmazTool/AmazTool.csproj -c Release -r win-arm64 --self-contained=true -p:PublishReadyToRun=false -p:PublishSingleFile=true -p:PublishTrimmed=true -p:EnableWindowsTargeting=true -o $OutputPathArm64
- name: Upload build artifacts
uses: actions/[email protected]
with:
name: v2rayN-windows-desktop
path: |
${{ github.workspace }}/v2rayN/Release/windows*

0 comments on commit 0c38ebb

Please sign in to comment.