Skip to content

Commit

Permalink
Modify the build windows script
Browse files Browse the repository at this point in the history
  • Loading branch information
2dust committed Dec 25, 2024
1 parent 7375e1a commit eafa200
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 83 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/build-windows.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: release Windows

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

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

runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Build
run: |
cd v2rayN
OutputPath='./bin/v2rayN'
OutputPath64="${OutputPath}/win-x64"
OutputPathArm64="${OutputPath}/win-arm64"
dotnet publish ./v2rayN/v2rayN.csproj -c Release -r win-x64 --self-contained false -p:PublishReadyToRun=false -p:PublishSingleFile=true -p:EnableWindowsTargeting=true -o $OutputPath64
dotnet publish ./v2rayN/v2rayN.csproj -c Release -r win-arm64 --self-contained false -p:PublishReadyToRun=false -p:PublishSingleFile=true -p:EnableWindowsTargeting=true -o $OutputPathArm64
- name: Upload build artifacts
uses: actions/upload-artifact@v4
with:
name: v2rayN-windows
path: |
./v2rayN/bin/v2rayN
41 changes: 0 additions & 41 deletions .github/workflows/build.yml

This file was deleted.

42 changes: 0 additions & 42 deletions v2rayN/build.ps1

This file was deleted.

0 comments on commit eafa200

Please sign in to comment.