#Build and app with electron and React

10 messages · Page 1 of 1 (latest)

wooden wave
#

I dont want to publish it i juste want to make myself an app for whatsApp and other stuff

#

And when i run it in dev mod, the app run perfectly

timber coral
wooden wave
#

in my build or on my computer ?

timber coral
#

Maybe both

wooden wave
#

on my linux it's good, because in dev mod the app run.
But when i build it that don't work anymore

#
"scripts": {
    "new-version": "npm version --git-tag-version=false",
    "version": "echo 'starting postversion script'",
    "postversion": "LAST_VERSION=$(npm pkg get version | sed 's/\"//g')$REACT_APP_ENV_UPDATE_CHANNEL_SUFFIX && echo $LAST_VERSION && sed -i.bak \"s/\\\"version\\\": \\\"[0-9]\\.[0-9]\\.[0-9]\\\"/\\\"version\\\": \\\"$LAST_VERSION\\\"/g\" package.json",
    "start": "export BROWSER=none && react-scripts start",
    "build:dev": "env-cmd -f .env.dev npm run version && react-scripts build",
    "build:qa": "env-cmd -f .env.qa npm run version && react-scripts build",
    "build:prod": "env-cmd -f .env.prod npm run version && react-scripts build",
    "test": "react-scripts test",
    "eject": "react-scripts eject",
    "start-electron": "export ELECTRON_START_URL=http://127.0.0.1:3000/ && electron .",
    "package:win": "electron-builder build --win -c.extraMetadata.main=build/electron.js --publish never ",
    "publish:win": "electron-builder build --win --publish always --icon /public/img/92d6ac4a64b012d72b9c495d0ac48f41.png",
    "package:lin": "electron-builder build --linux -c.extraMetadata.main=build/electron.js --publish never",
    "publish:lin": "electron-builder build --linux --publish always "
  },
timber coral
#

That part you will need some expert in Electron to help you

wooden wave
#

I found a temporary solution by indicating the path to google-chrome but my application is not entirely portable as a result

#

thanks anyway