Skip to content

Commit a604eb0

Browse files
committed
修改项目文件以支持arm架构
2 parents f7b0f05 + b665918 commit a604eb0

File tree

3 files changed

+10
-11
lines changed

3 files changed

+10
-11
lines changed

.github/workflows/build.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ jobs:
88
name: build
99
runs-on: windows-latest
1010
strategy:
11+
fail-fast: false
1112
matrix:
12-
architecture: [x64, arm64]
1313
edition: [CommandLine, Universal]
14-
15-
14+
architecture: [x64, arm64]
15+
1616
steps:
1717
- name: Checkout code
1818
uses: actions/checkout@v4
@@ -31,10 +31,10 @@ jobs:
3131
PublishDir: ./publish/win-${{ matrix.architecture }}
3232
run: |
3333
cd ./FluentLauncher.${{ matrix.edition }}Installer
34-
dotnet publish --configuration Release --self-contained true --runtime win-${{ matrix.architecture }} --output $PublishDir --nologo
34+
dotnet publish --configuration Release --self-contained true --output $env:PublishDir -p:PlatformTarget=${{matrix.architecture}} --nologo
3535
36-
- name: upload to artifacts
36+
- name: Upload to Artifacts
3737
uses: actions/upload-artifact@v4
3838
with:
39-
name: win-${{ matrix.architecture }}
39+
name: ${{ matrix.edition }}Installer-win-${{ matrix.architecture }}
4040
path: "FluentLauncher.${{ matrix.edition }}Installer\\publish\\win-${{ matrix.architecture }}\\FluentLauncher.${{ matrix.edition }}Installer.exe"

FluentLauncher.UniversalInstaller/FluentLauncher.UniversalInstaller.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22

33
<PropertyGroup>
44
<OutputType>WinExe</OutputType>
5-
<TargetFramework>net48</TargetFramework>
5+
<TargetFramework>net481</TargetFramework>
66
<UseWPF>true</UseWPF>
77
<RootNamespace>FluentLauncher.UniversalInstaller</RootNamespace>
88
<AssemblyName>FluentLauncher.UniversalInstaller</AssemblyName>
99
<LangVersion>preview</LangVersion>
10-
<PlatformTarget>x64</PlatformTarget>
10+
<PlatformTarget>AnyCPU</PlatformTarget>
1111
<ApplicationIcon>Assets\2.ico</ApplicationIcon>
1212
</PropertyGroup>
1313

FluentLauncher.UniversalInstaller/Properties/PublishProfiles/FolderProfile.pubxml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,9 @@
44
<PropertyGroup>
55
<Configuration>Release</Configuration>
66
<Platform>Any CPU</Platform>
7-
<PublishDir>bin\Release\net48\publish\</PublishDir>
7+
<PublishDir>bin\Release\net481\publish\</PublishDir>
88
<PublishProtocol>FileSystem</PublishProtocol>
99
<_TargetId>Folder</_TargetId>
10-
<TargetFramework>net48</TargetFramework>
11-
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
10+
<TargetFramework>net481</TargetFramework>
1211
</PropertyGroup>
1312
</Project>

0 commit comments

Comments
 (0)