Skip to content

Electron issues #73

@thorakmedichi

Description

@thorakmedichi

Step 2: Describe your environment

  • template name : re-start
  • template version : Unsure... what existed a Feb 2019
  • react-native version: 55.4 (as per what the template had)
  • OS :Linux
  • Platform causing error: Electron

Step 3: Describe the problem (try to include screenshots):

Running yarn electron-builder produces my AppImage but the screen is blank
Running yarn electron-pack (yarn build -c.extraMetadata.main=build/electron.js) errors out with a ton of errors. Top of the list is

Application entry file "build/electron.js" in the "/home/thorakmedichi/Development/Projects/stormfree/day-tracer/dist/linux-unpacked/resources/app.asar" does not exist. Seems like a wrong configuration.
    at error (/home/thorakmedichi/Development/Projects/stormfree/day-tracer/node_modules/app-builder-lib/out/asar/asarFileChecker.js:44:14)

Am I missing something not outlined in your documentation?

Expected Results:

An electron app that works, dev or production.

package.json

{
  "name": "testing",
  "version": "0.1.12",
  "author": "thorakmedichi",
  "main": "./index.electron.js",
  "homepage": "./",
  "scripts": {
    "android": "./node_modules/.bin/react-native run-android",
    "ios": "./node_modules/.bin/react-native run-ios",
    "web": "node scripts/start.js",
    "build": "node scripts/build.js",
    "lint": "eslint . --ext .js",
    "electron-dev": "concurrently \"BROWSER=none yarn react-scripts start\" \"wait-on http://localhost:3000 && electron .\"",
    "electron-pack": "build -c.extraMetadata.main=build/electron.js",
    "electron-build": "electron-builder",
    "preelectron-pack": "yarn build",
   },
  "build": {
    "appId": "com.example.electron-cra",
    "files": [
      "build/**/*",
      "node_modules/**/*",
      "public/*",
      "./index.electron.js"
    ],
    "directories": {
      "buildResources": "assets"
    }
  },

  ....etc

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions