mirror of https://github.com/2dust/v2rayN
update build
parent
7470b8b6d3
commit
247b59985f
|
@ -18,43 +18,35 @@ jobs:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
# - name: 删除工作流运行
|
|
||||||
# uses: Mattraks/delete-workflow-runs@v2
|
|
||||||
# with:
|
|
||||||
# token: ${{ github.token }}
|
|
||||||
# repository: ${{ github.repository }}
|
|
||||||
# retain_days: 0
|
|
||||||
# keep_minimum_runs: 1
|
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: cd v2rayN &&
|
run: cd v2rayN &&
|
||||||
./build.ps1
|
./build.ps1
|
||||||
|
|
||||||
# - name: Package
|
- name: Upload build artifacts
|
||||||
# shell: pwsh
|
uses: actions/upload-artifact@v4
|
||||||
# run: |
|
with:
|
||||||
# 7z a -mx9 ..\v2rayN.7z $env:Wap_Project_Directory
|
name: v2rayN-windows-64
|
||||||
|
path: |
|
||||||
|
./v2rayN/v2rayN-windows-64.zip
|
||||||
|
|
||||||
- name: Upload build artifacts
|
- name: Upload build artifacts
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: v2rayN
|
name: v2rayN-windows-arm64
|
||||||
path: |
|
path: |
|
||||||
./v2rayN/v2rayN.zip
|
./v2rayN/v2rayN-windows-arm64.zip
|
||||||
|
|
||||||
# - name: Release
|
- name: Upload build artifacts
|
||||||
# uses: softprops/action-gh-release@v1
|
uses: actions/upload-artifact@v4
|
||||||
# env:
|
with:
|
||||||
# GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}
|
name: v2rayN-linux-64
|
||||||
# with:
|
path: |
|
||||||
# prerelease: ${{ contains(github.ref, '-') }}
|
./v2rayN/v2rayN-linux-64.zip
|
||||||
# draft: false
|
|
||||||
# files: |
|
- name: Upload build artifacts
|
||||||
# .\v2rayN\v2rayN.zip
|
uses: actions/upload-artifact@v4
|
||||||
# body: |
|
with:
|
||||||
# [](https://t.me/netch_channel) [](https://t.me/netch_group)
|
name: v2rayN-linux-arm64
|
||||||
# ## Changelogs
|
path: |
|
||||||
# * This is an automated deployment of GitHub Actions, the change log should be updated manually soon
|
./v2rayN/v2rayN-linux-arm64.zip
|
||||||
|
|
||||||
# ## 更新日志
|
|
||||||
# * 这是 GitHub Actions 自动化部署,更新日志应该很快会手动更新
|
|
||||||
|
|
|
@ -2,7 +2,10 @@ param (
|
||||||
[Parameter()]
|
[Parameter()]
|
||||||
[ValidateNotNullOrEmpty()]
|
[ValidateNotNullOrEmpty()]
|
||||||
[string]
|
[string]
|
||||||
$OutputPath = './bin/v2rayN'
|
$OutputPathWin64 = './bin/v2rayN/win-x64',
|
||||||
|
$OutputPathWinArm64 = './bin/v2rayN/win-arm64',
|
||||||
|
$OutputPathLinux64 = './bin/v2rayN/linux-x64',
|
||||||
|
$OutputPathLinuxArm64 = './bin/v2rayN/linux-arm64'
|
||||||
)
|
)
|
||||||
|
|
||||||
Write-Host 'Building'
|
Write-Host 'Building'
|
||||||
|
@ -14,7 +17,7 @@ dotnet publish `
|
||||||
--self-contained false `
|
--self-contained false `
|
||||||
-p:PublishReadyToRun=false `
|
-p:PublishReadyToRun=false `
|
||||||
-p:PublishSingleFile=true `
|
-p:PublishSingleFile=true `
|
||||||
-o "$OutputPath/win-x64"
|
-o $OutputPathWin64
|
||||||
|
|
||||||
dotnet publish `
|
dotnet publish `
|
||||||
./v2rayN/v2rayN.csproj `
|
./v2rayN/v2rayN.csproj `
|
||||||
|
@ -23,7 +26,7 @@ dotnet publish `
|
||||||
--self-contained false `
|
--self-contained false `
|
||||||
-p:PublishReadyToRun=false `
|
-p:PublishReadyToRun=false `
|
||||||
-p:PublishSingleFile=true `
|
-p:PublishSingleFile=true `
|
||||||
-o "$OutputPath/win-arm64"
|
-o $OutputPathWinArm64
|
||||||
|
|
||||||
dotnet publish `
|
dotnet publish `
|
||||||
./v2rayN.Desktop/v2rayN.Desktop.csproj `
|
./v2rayN.Desktop/v2rayN.Desktop.csproj `
|
||||||
|
@ -32,7 +35,7 @@ dotnet publish `
|
||||||
--self-contained true `
|
--self-contained true `
|
||||||
-p:PublishReadyToRun=false `
|
-p:PublishReadyToRun=false `
|
||||||
-p:PublishSingleFile=true `
|
-p:PublishSingleFile=true `
|
||||||
-o "$OutputPath/linux-x64"
|
-o $OutputPathLinux64
|
||||||
|
|
||||||
dotnet publish `
|
dotnet publish `
|
||||||
./v2rayN.Desktop/v2rayN.Desktop.csproj `
|
./v2rayN.Desktop/v2rayN.Desktop.csproj `
|
||||||
|
@ -41,7 +44,7 @@ dotnet publish `
|
||||||
--self-contained true `
|
--self-contained true `
|
||||||
-p:PublishReadyToRun=false `
|
-p:PublishReadyToRun=false `
|
||||||
-p:PublishSingleFile=true `
|
-p:PublishSingleFile=true `
|
||||||
-o "$OutputPath/linux-arm64"
|
-o $OutputPathLinuxArm64
|
||||||
|
|
||||||
|
|
||||||
if ( -Not $? ) {
|
if ( -Not $? ) {
|
||||||
|
@ -49,14 +52,16 @@ if ( -Not $? ) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( Test-Path -Path ./bin/v2rayN ) {
|
if ( Test-Path -Path ./bin/v2rayN ) {
|
||||||
rm -Force "$OutputPath/win-x64/*.pdb"
|
rm -Force "$OutputPathWin64/*.pdb"
|
||||||
rm -Force "$OutputPath/win-arm64/*.pdb"
|
rm -Force "$OutputPathWinArm64/*.pdb"
|
||||||
rm -Force "$OutputPath/linux-x64/*.pdb"
|
rm -Force "$OutputPathLinux64/*.pdb"
|
||||||
rm -Force "$OutputPath/linux-arm64/*.pdb"
|
rm -Force "$OutputPathLinuxArm64/*.pdb"
|
||||||
}
|
}
|
||||||
|
|
||||||
Write-Host 'Build done'
|
Write-Host 'Build done'
|
||||||
|
|
||||||
ls $OutputPath
|
7z a v2rayN-windows-64.zip $OutputPathWin64
|
||||||
7z a v2rayN.zip $OutputPath
|
7z a v2rayN-windows-arm64.zip $OutputPathWinArm64
|
||||||
|
7z a v2rayN-linux-64.zip $OutputPathLinux64
|
||||||
|
7z a v2rayN-linux-arm64.zip $OutputPathLinuxArm64
|
||||||
exit 0
|
exit 0
|
Loading…
Reference in New Issue