Skip to content

Commit 2a26b46

Browse files
committed
ElectronNET.WebApp: Add builder.json, launchsettings and publish profiles
1 parent 78b59f6 commit 2a26b46

4 files changed

Lines changed: 88 additions & 20 deletions

File tree

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<!-- https://go.microsoft.com/fwlink/?LinkID=208121. -->
3+
<Project>
4+
<PropertyGroup>
5+
<DeleteExistingFiles>true</DeleteExistingFiles>
6+
<ExcludeApp_Data>false</ExcludeApp_Data>
7+
<LaunchSiteAfterPublish>true</LaunchSiteAfterPublish>
8+
<LastUsedBuildConfiguration>Release</LastUsedBuildConfiguration>
9+
<PublishProvider>FileSystem</PublishProvider>
10+
<PublishUrl>publish\$(Configuration)\$(TargetFramework)\$(RuntimeIdentifier)\</PublishUrl>
11+
<WebPublishMethod>FileSystem</WebPublishMethod>
12+
<_TargetId>Folder</_TargetId>
13+
<SiteUrlToLaunchAfterPublish />
14+
<TargetFramework>net8.0</TargetFramework>
15+
<RuntimeIdentifier>linux-x64</RuntimeIdentifier>
16+
<ProjectGuid>6ea447d9-343f-46b8-b456-66557bddbb9f</ProjectGuid>
17+
<SelfContained>true</SelfContained>
18+
<LastUsedPlatform>Any CPU</LastUsedPlatform>
19+
</PropertyGroup>
20+
</Project>
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<!-- https://go.microsoft.com/fwlink/?LinkID=208121. -->
3+
<Project>
4+
<PropertyGroup>
5+
<DeleteExistingFiles>true</DeleteExistingFiles>
6+
<ExcludeApp_Data>false</ExcludeApp_Data>
7+
<LaunchSiteAfterPublish>true</LaunchSiteAfterPublish>
8+
<LastUsedBuildConfiguration>Release</LastUsedBuildConfiguration>
9+
<PublishProvider>FileSystem</PublishProvider>
10+
<PublishUrl>publish\$(Configuration)\$(TargetFramework)\$(RuntimeIdentifier)\</PublishUrl>
11+
<WebPublishMethod>FileSystem</WebPublishMethod>
12+
<_TargetId>Folder</_TargetId>
13+
<SiteUrlToLaunchAfterPublish />
14+
<TargetFramework>net8.0</TargetFramework>
15+
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
16+
<ProjectGuid>6ea447d9-343f-46b8-b456-66557bddbb9f</ProjectGuid>
17+
<SelfContained>true</SelfContained>
18+
<LastUsedPlatform>Any CPU</LastUsedPlatform>
19+
</PropertyGroup>
20+
</Project>
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{
2+
"$schema": "https://raw.githubusercontent.com/electron-userland/electron-builder/refs/heads/master/packages/app-builder-lib/scheme.json",
3+
"compression": "maximum",
4+
//"afterPack": "bin/Assets/afterPack.js",
5+
//"beforePack": "bin/Assets/beforePack.js",
6+
"buildNumber": "",
7+
"linux": {
8+
"target": [
9+
"tar.xz"
10+
//"AppImage",
11+
//"rpm",
12+
//"deb",
13+
//"pacman"
14+
],
15+
"executableArgs": [ "--no-sandbox" ],
16+
"icon": "bin/Assets/icon.png",
17+
"artifactName": "${name}-${arch}-${version}.${ext}"
18+
},
19+
"win": {
20+
"target": [
21+
{
22+
"target": "portable",
23+
"arch": "x64"
24+
}
25+
],
26+
"icon": "bin/Assets/icon.ico"
27+
},
28+
"mac": {
29+
"icon": "bin/Assets/icon.icns"
30+
}
31+
}
Lines changed: 17 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,29 @@
11
{
2-
"iisSettings": {
3-
"windowsAuthentication": false,
4-
"anonymousAuthentication": true,
5-
"iisExpress": {
6-
"applicationUrl": "http://localhost:50394/",
7-
"sslPort": 0
8-
}
9-
},
102
"profiles": {
11-
"Electron.NET App": {
12-
"commandName": "Executable",
13-
"executablePath": "$(SolutionDir)ElectronNET.CLI\\bin\\Debug\\netcoreapp3.1\\dotnet-electronize.exe",
14-
"commandLineArgs": "start",
15-
"workingDirectory": "$(SolutionDir)ElectronNET.WebApp"
3+
"ASP.Net (unpackaged)": {
4+
"commandName": "Project",
5+
"environmentVariables": {
6+
"ASPNETCORE_ENVIRONMENT": "Development"
7+
},
8+
"applicationUrl": "http://localhost:8001/"
169
},
17-
"IIS Express": {
18-
"commandName": "IISExpress",
10+
"Electron (unpackaged)": {
11+
"commandName": "Executable",
12+
"executablePath": "node",
13+
"commandLineArgs": "node_modules/electron/cli.js main.js -unpackedelectron",
14+
"workingDirectory": "$(TargetDir).electron",
1915
"environmentVariables": {
2016
"ASPNETCORE_ENVIRONMENT": "Development"
2117
}
2218
},
23-
"ElectronNET.WebApp": {
24-
"commandName": "Project",
25-
"launchBrowser": true,
19+
"WSL": {
20+
"commandName": "WSL2",
21+
"launchUrl": "http://localhost:8001/",
2622
"environmentVariables": {
27-
"ASPNETCORE_ENVIRONMENT": "Development"
23+
"ASPNETCORE_ENVIRONMENT": "Development",
24+
"ASPNETCORE_URLS": "http://localhost:8001/"
2825
},
29-
"applicationUrl": "http://localhost:50395/"
26+
"distributionName": ""
3027
}
3128
}
3229
}

0 commit comments

Comments
 (0)