Electron update and Linux support#23
Open
GuillaumeDelorme wants to merge 7 commits intopotree:masterfrom
Open
Conversation
|
Nice to see a PR for the Linux support, too bad it has not been merged yet. I have also done a small patch that I was about to propose as a PR but this one is nicer. diff --git a/src/desktop.js b/src/desktop.js
index 1406c11..6d14299 100644
--- a/src/desktop.js
+++ b/src/desktop.js
@@ -1,4 +1,3 @@
-
import * as THREE from "../libs/three.js/build/three.module.js"
import JSON5 from "../libs/json5-2.1.3/json5.mjs";
@@ -82,7 +81,10 @@ export function convert_17(inputPaths, chosenPath, pointcloudName){
const { spawn } = require('child_process');
- let exe = './libs/PotreeConverter/PotreeConverter.exe';
+ let exe = './libs/PotreeConverter/PotreeConverter';
+ if(process.platform === 'win32'){
+ exe += '.exe';
+ }
let parameters = [
...inputPaths,
"-o", chosenPath,
@@ -179,7 +181,10 @@ export function convert_20(inputPaths, chosenPath, pointcloudName){
const { spawn, fork, execFile } = require('child_process');
- let exe = './libs/PotreeConverter2/PotreeConverter.exe';
+ let exe = './libs/PotreeConverter2/PotreeConverter';
+ if(process.platform === 'win32'){
+ exe += '.exe';
+ }
let parameters = [
...inputPaths,
"-o", chosenPath
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.