File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -321,3 +321,12 @@ MacUtilGUI/bin/
321321MacUtilGUI /obj /
322322MacUtilGUI /dist /
323323MacUtilGUI /publish /
324+
325+ # macOS specific files
326+ .DS_Store
327+ .DS_Store ?
328+ ._ *
329+ .Spotlight-V100
330+ .Trashes
331+ ehthumbs.db
332+ Thumbs.db
Original file line number Diff line number Diff line change 77 <BuiltInComInteropSupport >true</BuiltInComInteropSupport >
88 <ApplicationManifest >app.manifest</ApplicationManifest >
99 <AvaloniaUseCompiledBindingsByDefault >true</AvaloniaUseCompiledBindingsByDefault >
10+
11+ <!-- Self-contained single file configuration -->
12+ <PublishSingleFile >true</PublishSingleFile >
13+ <SelfContained >true</SelfContained >
14+ <PublishTrimmed >true</PublishTrimmed >
15+ <TrimMode >link</TrimMode >
16+ <IncludeNativeLibrariesForSelfExtract >true</IncludeNativeLibrariesForSelfExtract >
17+ <PublishReadyToRun >true</PublishReadyToRun >
18+ <EnableCompressionInSingleFile >true</EnableCompressionInSingleFile >
19+ <IncludeAllContentForSelfExtract >true</IncludeAllContentForSelfExtract >
20+ <DebugType >embedded</DebugType >
1021 </PropertyGroup >
1122
1223 <ItemGroup >
3041 <PackageReference Include =" Tomlyn" Version =" 0.17.0" />
3142 </ItemGroup >
3243
44+ <!-- Trim-friendly settings for Avalonia -->
45+ <ItemGroup >
46+ <TrimmerRootAssembly Include =" Avalonia" />
47+ <TrimmerRootAssembly Include =" Avalonia.Desktop" />
48+ <TrimmerRootAssembly Include =" Avalonia.Themes.Fluent" />
49+ </ItemGroup >
50+
3351 <ItemGroup >
3452 <AvaloniaResource Include =" Assets\**" />
3553 </ItemGroup >
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ mkdir -p ./bin/Release/net9.0/publish/
1818
1919# Publish for Intel x64 Macs
2020echo " 🔨 Building for Intel x64 Macs..."
21- dotnet publish -c Release -r osx-x64 --self-contained true -p:PublishSingleFile=true - o ./bin/Release/net9.0/publish/osx-x64/
21+ dotnet publish -c Release -r osx-x64 -o ./bin/Release/net9.0/publish/osx-x64/
2222if [ $? -eq 0 ]; then
2323 echo " ✅ Intel x64 build successful"
2424else
2929
3030# Publish for Apple Silicon ARM64 Macs
3131echo " 🔨 Building for Apple Silicon ARM64 Macs..."
32- dotnet publish -c Release -r osx-arm64 --self-contained true -p:PublishSingleFile=true - o ./bin/Release/net9.0/publish/osx-arm64/
32+ dotnet publish -c Release -r osx-arm64 -o ./bin/Release/net9.0/publish/osx-arm64/
3333if [ $? -eq 0 ]; then
3434 echo " ✅ Apple Silicon ARM64 build successful"
3535else
You can’t perform that action at this time.
0 commit comments