Skip to content

Commit f148fe6

Browse files
authored
Merge pull request #983 from markatosi/develop
Wiki Package building macOS sections added
2 parents c53a5a9 + f32a40f commit f148fe6

File tree

1 file changed

+86
-0
lines changed

1 file changed

+86
-0
lines changed

docs/Using/Package-Building.md

Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,52 @@ Add publish profiles to `Properties/PublishProfiles/`:
6262
</Project>
6363
```
6464

65+
#### ASP.NET Application Profile (macOS Apple Silicon ARM64)
66+
67+
**osx-arm64.pubxml:**
68+
69+
```xml
70+
<?xml version="1.0" encoding="utf-8"?>
71+
<Project>
72+
<PropertyGroup>
73+
<Configuration>Release</Configuration>
74+
<Platform>Any CPU</Platform>
75+
<DeleteExistingFiles>true</DeleteExistingFiles>
76+
<PublishProvider>FileSystem</PublishProvider>
77+
<PublishUrl>publish\$(Configuration)\$(TargetFramework)\$(RuntimeIdentifier)\</PublishUrl>
78+
<WebPublishMethod>FileSystem</WebPublishMethod>
79+
<_TargetId>Folder</_TargetId>
80+
<TargetFramework>net10.0</TargetFramework>
81+
<RuntimeIdentifier>osx-arm64</RuntimeIdentifier>
82+
<ProjectGuid>48eff821-2f4d-60cc-aa44-be0f1d6e5f35</ProjectGuid>
83+
<SelfContained>true</SelfContained>
84+
</PropertyGroup>
85+
</Project>
86+
```
87+
88+
#### ASP.NET Application Profile (macOS Intel x64)
89+
90+
**osx-x64.pubxml:**
91+
92+
```xml
93+
<?xml version="1.0" encoding="utf-8"?>
94+
<Project>
95+
<PropertyGroup>
96+
<Configuration>Release</Configuration>
97+
<Platform>Any CPU</Platform>
98+
<DeleteExistingFiles>true</DeleteExistingFiles>
99+
<PublishProvider>FileSystem</PublishProvider>
100+
<PublishUrl>publish\$(Configuration)\$(TargetFramework)\$(RuntimeIdentifier)\</PublishUrl>
101+
<WebPublishMethod>FileSystem</WebPublishMethod>
102+
<_TargetId>Folder</_TargetId>
103+
<TargetFramework>net10.0</TargetFramework>
104+
<RuntimeIdentifier>osx-x64</RuntimeIdentifier>
105+
<ProjectGuid>48eff821-2f4d-60cc-aa44-be0f1d6e5f35</ProjectGuid>
106+
<SelfContained>true</SelfContained>
107+
</PropertyGroup>
108+
</Project>
109+
```
110+
65111
#### Console Application Profile (Windows)
66112

67113
**win-x64.pubxml:**
@@ -103,6 +149,46 @@ Add publish profiles to `Properties/PublishProfiles/`:
103149
</Project>
104150
```
105151

152+
#### Console Application Profile (macOS Apple Silicon ARM64)
153+
154+
**osx-arm64.pubxml:**
155+
156+
```xml
157+
<?xml version="1.0" encoding="utf-8"?>
158+
<Project>
159+
<PropertyGroup>
160+
<Configuration>Release</Configuration>
161+
<Platform>Any CPU</Platform>
162+
<PublishDir>publish\$(Configuration)\$(TargetFramework)\$(RuntimeIdentifier)\</PublishDir>
163+
<PublishProtocol>FileSystem</PublishProtocol>
164+
<TargetFramework>net10.0</TargetFramework>
165+
<RuntimeIdentifier>osx-arm64</RuntimeIdentifier>
166+
<SelfContained>false</SelfContained>
167+
<PublishSingleFile>false</PublishSingleFile>
168+
</PropertyGroup>
169+
</Project>
170+
```
171+
172+
#### Console Application Profile (macOS Intel x64)
173+
174+
**osx-x64.pubxml:**
175+
176+
```xml
177+
<?xml version="1.0" encoding="utf-8"?>
178+
<Project>
179+
<PropertyGroup>
180+
<Configuration>Release</Configuration>
181+
<Platform>Any CPU</Platform>
182+
<PublishDir>publish\$(Configuration)\$(TargetFramework)\$(RuntimeIdentifier)\</PublishDir>
183+
<PublishProtocol>FileSystem</PublishProtocol>
184+
<TargetFramework>net10.0</TargetFramework>
185+
<RuntimeIdentifier>osx-x64</RuntimeIdentifier>
186+
<SelfContained>false</SelfContained>
187+
<PublishSingleFile>false</PublishSingleFile>
188+
</PropertyGroup>
189+
</Project>
190+
```
191+
106192
### Step 2: Configure Electron Builder
107193

108194
ElectronNET.Core automatically adds a default `electron-builder.json` file under `Properties\electron-builder.json`.

0 commit comments

Comments
 (0)