Merge pull request #101 from ElectronNET/better-cwd

https://github.com/ElectronNET/Electron.NET/issues/72
This commit is contained in:
Gregor Biswanger
2018-07-22 17:46:14 +02:00
committed by GitHub
3 changed files with 4 additions and 6 deletions

View File

@@ -518,8 +518,6 @@ namespace ElectronNET.API
/// stored under the userData directory.If you want to change this location, you
/// have to override the userData path before the ready event of the app module is emitted.
/// </summary>
/// <param name="name"></param>
/// <param name="path"></param>
public void SetPath(string name, string path)
{
BridgeConnector.Socket.Emit("appSetPath", name, path);
@@ -618,7 +616,6 @@ namespace ElectronNET.API
/// Windows you can visit the list from the task bar, and on macOS you can visit it
/// from dock menu.
/// </summary>
/// <param name="path"></param>
public void AddRecentDocument(string path)
{
BridgeConnector.Socket.Emit("appAddRecentDocument", path);
@@ -1213,7 +1210,6 @@ namespace ElectronNET.API
/// launcher, Note: Unity launcher requires the existence of a.desktop file to
/// work, for more information please read Desktop Environment Integration.
/// </summary>
/// <param name="count"></param>
/// <returns>Whether the call succeeded.</returns>
public async Task<bool> SetBadgeCountAsync(int count, CancellationToken cancellationToken = default(CancellationToken))
{

View File

@@ -78,7 +78,8 @@ function startAspCoreBackend(electronPort) {
}
const binFilePath = path.join(__dirname, 'bin', binaryFile);
apiProcess = process(binFilePath, parameters);
var options = { cwd: path.join(__dirname, 'bin') };
apiProcess = process(binFilePath, parameters, options);
apiProcess.stdout.on('data', (data) => {
var text = data.toString();

View File

@@ -1,7 +1,7 @@
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
VisualStudioVersion = 15.0.27130.2024
VisualStudioVersion = 15.0.27130.2027
MinimumVisualStudioVersion = 10.0.40219.1
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ElectronNET.WebApp", "ElectronNET.WebApp\ElectronNET.WebApp.csproj", "{7C048379-401C-4345-B5E7-BE232DEA8157}"
EndProject
@@ -35,6 +35,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
buildAll.cmd = buildAll.cmd
buildAll.sh = buildAll.sh
buildReleaseNuGetPackages.cmd = buildReleaseNuGetPackages.cmd
Changelog.md = Changelog.md
EndProjectSection
EndProject
Global