diff --git a/package.json b/package.json index 93ab00c..33a1dfc 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "hardwario-playground", - "productName": "Hardwario Playground", + "productName": "HARDWARIO Playground", "author": { "name": "HARDWARIO s.r.o.", "email": "karel.blavka@hardwario.com", @@ -28,9 +28,9 @@ "package-mac": "npm run webpack && electron-builder build --mac" }, "build": { - "productName": "Hardwario Playground", + "productName": "HARDWARIO Playground", "appId": "com.electron.hio-playground", - "artifactName": "hio-playground-${version}-${os}-${arch}.${ext}", + "artifactName": "hio-playground-v${version}-${os}-${arch}.${ext}", "files": [ "dist/", "node_modules/", @@ -48,11 +48,11 @@ "electronVersion": "7.1.9", "publish": null, "mac": { - "artifactName": "hio-playground-${version}-macos-${arch}.${ext}", + "artifactName": "hio-playground-v${version}-macos-${arch}.${ext}", "category": "public.app-category.utilities" }, "win": { - "artifactName": "hio-playground-${version}-windows-${arch}.${ext}", + "artifactName": "hio-playground-v${version}-windows-${arch}.${ext}", "target": [ "nsis", "portable" @@ -60,7 +60,7 @@ "publisherName": "HARDWARIO s.r.o." }, "linux": { - "artifactName": "hio-playground-${version}-linux-${arch}.${ext}", + "artifactName": "hio-playground-v${version}-linux-${arch}.${ext}", "target": [ "deb", "snap", @@ -69,7 +69,7 @@ "category": "Utility" }, "nsis": { - "artifactName": "hio-playground-${version}-${os}-setup-${arch}.${ext}" + "artifactName": "hio-playground-v${version}-${os}-setup-${arch}.${ext}" }, "dmg": { "contents": [ diff --git a/src/render/components/Firmware.js b/src/render/components/Firmware.js index 91c1955..f3cbff0 100644 --- a/src/render/components/Firmware.js +++ b/src/render/components/Firmware.js @@ -123,7 +123,7 @@ export default class extends Component { this.setState({ports:ports}); if ((this.state.port === "") && (ports.length > 0)) { - this.setState({port:ports[0].comName}); + this.setState({port:ports[0].path}); } this.timer = setTimeout(() => { @@ -243,7 +243,7 @@ export default class extends Component { diff --git a/src/render/components/Gateway.js b/src/render/components/Gateway.js index 6769e1f..5e52ff1 100644 --- a/src/render/components/Gateway.js +++ b/src/render/components/Gateway.js @@ -55,7 +55,7 @@ export default class extends Component { if (this.state.ports.length == ports.length){ for (let i=0, l=ports.length; i < l; i++) { - if (this.state.ports[i].comName != ports[i].comName) { + if (this.state.ports[i].path != ports[i].path) { change = true; break; } @@ -67,7 +67,8 @@ export default class extends Component { if (change) { if ((this.state.selectedPort == "") && (ports.length > 0)) { - this.setState({ selectedPort: ports[0].comName }); + this.setState({ selectedPort: ports[0].path }); + console.log(this.state.selectedPort); } else if (ports.length == 0) { @@ -103,6 +104,8 @@ export default class extends Component { if (this.state.selectedPort == "") return; + console.log(this.state.selectedPort); + ipcRenderer.send("gateway/connect", this.state.selectedPort) } @@ -116,7 +119,7 @@ export default class extends Component { diff --git a/src/render/components/GatewayList.js b/src/render/components/GatewayList.js index 2930b63..39b1917 100644 --- a/src/render/components/GatewayList.js +++ b/src/render/components/GatewayList.js @@ -31,9 +31,9 @@ export default class extends Component {