diff --git a/src/ElectronNET.IntegrationTests/ElectronNET.IntegrationTests.csproj b/src/ElectronNET.IntegrationTests/ElectronNET.IntegrationTests.csproj
index ad9d60c..4d2acf5 100644
--- a/src/ElectronNET.IntegrationTests/ElectronNET.IntegrationTests.csproj
+++ b/src/ElectronNET.IntegrationTests/ElectronNET.IntegrationTests.csproj
@@ -3,6 +3,7 @@
true
+ True
diff --git a/src/ElectronNET/build/ElectronNET.LateImport.targets b/src/ElectronNET/build/ElectronNET.LateImport.targets
index 0c7f521..398861a 100644
--- a/src/ElectronNET/build/ElectronNET.LateImport.targets
+++ b/src/ElectronNET/build/ElectronNET.LateImport.targets
@@ -213,6 +213,32 @@
+
+
+
+
+
+ $(ElectronDirName)\ElectronHostHook\%(RecursiveDir)%(FileName)%(Extension)
+ PreserveNewest
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -449,6 +475,10 @@
$(_OriginalPublishDir)
$(_NonIntermediatePublishDir)
$(_OriginalPublishDir)
+
+ $(ElectronPublishDir)app\
@@ -489,7 +519,7 @@ For more information, see: https://github.com/ElectronNET/Electron.NET/wiki/Migr
- $(ElectronPublishDir)%(RecursiveDir)%(FileName)%(Extension)
+ $(ElectronAppDir)%(RecursiveDir)%(FileName)%(Extension)
@@ -503,14 +533,55 @@ For more information, see: https://github.com/ElectronNET/Electron.NET/wiki/Migr
$([System.IO.Path]::GetFullPath('$(PublishUrl.TrimEnd("\"))'))
+
+ $([System.IO.Path]::GetFullPath('$(ElectronAppDir)'))
+
+
false
true
- <_NpmCmd>npm install electron-builder@$(ElectronBuilderVersion) --save-dev
- <_NpmCmd Condition="'$(IsLinuxWsl)' == 'true'">wsl bash -ic '$(_NpmCmd)'
+
+
+
+
+ <_NpmAppDepsCmd>npm install --omit=dev
+ <_NpmAppDepsCmd Condition="'$(IsLinuxWsl)' == 'true'">wsl bash -ic '$(_NpmAppDepsCmd)'
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <_NpmCmd>npm install electron-builder@$(ElectronBuilderVersion)
+ <_NpmCmd Condition="'$(IsLinuxWsl)' == 'true'">wsl bash -ic '$(_NpmCmd)'
+
@@ -529,6 +600,10 @@ For more information, see: https://github.com/ElectronNET/Electron.NET/wiki/Migr
$(ElectronPaParams) -c.buildVersion "$(Version)"
$(ElectronPaParams) -c.copyright "$(Copyright)"
$(ElectronPaParams) -c.extraResources "bin/**/*"
+
+ $(ElectronPaParams) -c.directories.app "app"
diff --git a/src/ElectronNET/build/package.dev.template.json b/src/ElectronNET/build/package.dev.template.json
new file mode 100644
index 0000000..86376be
--- /dev/null
+++ b/src/ElectronNET/build/package.dev.template.json
@@ -0,0 +1,19 @@
+{
+ "name": "electron-builder-host",
+ "version": "$(Version)",
+ "private": true,
+ "build": {
+ "appId": "$(ElectronPackageId)",
+ "linux": {
+ "desktop": {
+ "entry": { "Name": "$(Title)" }
+ },
+ "executableName": "$(ElectronPackageId)"
+ },
+ "deb": {
+ "desktop": {
+ "entry": { "Name": "$(Title)" }
+ }
+ }
+ }
+}
diff --git a/src/ElectronNET/build/package.template.json b/src/ElectronNET/build/package.template.json
index fa5bca1..2f9aa6a 100644
--- a/src/ElectronNET/build/package.template.json
+++ b/src/ElectronNET/build/package.template.json
@@ -1,20 +1,6 @@
{
"name": "$(ElectronPackageId)",
"productName": "$(ElectronTitle)",
- "build": {
- "appId": "$(ElectronPackageId)",
- "linux": {
- "desktop": {
- "entry": { "Name": "$(Title)" }
- },
- "executableName": "$(ElectronPackageId)"
- },
- "deb": {
- "desktop": {
- "entry": { "Name": "$(Title)" }
- }
- }
- },
"description": "$(Description)",
"version": "$(Version)",
"main": "main.js",