mirror of
https://github.com/ElectronNET/Electron.NET.git
synced 2026-02-03 21:25:13 +00:00
[PR #648] [MERGED] Support launching app with file for win and linux #1241
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/ElectronNET/Electron.NET/pull/648
Author: @schaveyt
Created: 12/29/2021
Status: ✅ Merged
Merged: 4/6/2022
Merged by: @GregorBiswanger
Base:
master← Head:feature/647-launching-app-w-file-win-linux📝 Commits (7)
8e1e184#647 process argv for open-file for win and linux1406fc1#647 add initial Process class to ElectronNET.API562cccb#647 add to ElectronNET.API Process member interfaces for argv and typeba82b9a#647 add to ElectronNET.API Process member interfaces for various fields5921481#647 correct to ElectronNET.API Process member for versions field24a2005#647 update XML documentation to ElectronNET.API Process members64e058b#647 make ProcessVersions Entity a record to ensure readonly access to props📊 Changes
11 files changed (+452 additions, -2 deletions)
View changed files
📝
ElectronNET.API/BridgeConnector.cs(+109 -1)📝
ElectronNET.API/Electron.cs(+5 -0)➕
ElectronNET.API/Entities/ProcessVersions.cs(+10 -0)➕
ElectronNET.API/Process.cs(+185 -0)📝
ElectronNET.API/ServiceCollectionExtensions.cs(+2 -1)📝
ElectronNET.CLI/Commands/Actions/DeployEmbeddedElectronFiles.cs(+1 -0)📝
ElectronNET.CLI/ElectronNET.CLI.csproj(+1 -0)➕
ElectronNET.Host/api/process.js(+62 -0)➕
ElectronNET.Host/api/process.js.map(+1 -0)➕
ElectronNET.Host/api/process.ts(+73 -0)📝
ElectronNET.Host/main.js(+3 -0)📄 Description
Status: Review Approved
Summary
Addresses #647 and remains compatible with existing behavior of passing arguments via /args commandline option.
This has been built and integration tested locally by invoking via electronize start as well as the compiled executable as described in the issue #647.
Change Summary
Verification Summary
I was not able to get the WebApp project running however I was able to get my target project running with the update API & CLI changes. I created a simple test method as follows:
The generated the following results with no issues.
Results:
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.