Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use projectDir instead of project #2633

Closed
tangb opened this issue Feb 23, 2018 · 5 comments · Fixed by Thorium-Sim/thorium-kiosk#40 · May be fixed by qcif/data-curator#563
Closed

Use projectDir instead of project #2633

tangb opened this issue Feb 23, 2018 · 5 comments · Fixed by Thorium-Sim/thorium-kiosk#40 · May be fixed by qcif/data-curator#563
Labels

Comments

@tangb
Copy link

tangb commented Feb 23, 2018

  • Version:
    20.0.8
  • Target:
    linux 64bits

When executing on linux debian stable amd64 (8.10):

./node_modules/.bin/electron-builder --linux --x64 --projectDir "build/myproject_tree"

I got this error:

Use projectDir instead of project

Is this option deprecated? => EDIT: yes --project is deprecated but not --projectDir (according to changelog v20.0.0)
I tryed with --project instead of --projectDir and it did the same. => EDIT: yes it is the same option ;-)

I used it 6 months ago and it works, is the option changed?

Thank you very much ;-)

@tangb
Copy link
Author

tangb commented Feb 23, 2018

Here is the build part of my package.json:

    "build": {
        "appId": "com.cleep.cleepdesktop",
        "productName": "CleepDesktop",
        "asar": false,
        "linux": {
            "icon": "resources/",
            "target": [
                "tar.gz",
                "AppImage",
                "deb"
            ],
            "maintainer": "me <me@me.com>",
            "category": "Network",
            "executableName": "cleepdesktop",
            "synopsis": "Cleep devices manager"
        },
        "AppImage": {
            "systemIntegration": "ask"
        },
        "deb": {
            "icon": "resources/256x256.png",
            "packageCategory": "misc",
            "priority": "optional",
            "depends": []
        },
        "win": {
            "icon": "resources/icon",
            "target": "nsis"
        },
        "nsis": {
            "menuCategory": "Cleep",
            "shortcutName": "CleepDesktop"
        },
        "mac": {
            "category": "public.app-category.utilities",
            "target": "dmg",
            "icon": "resources/icon",
            "extendInfo": "Info.plist"
       },
        "dmg": {
            "icon": "resources/icon.icns"
        }
    }

@stefanedberg
Copy link

I'm having the same problem.

electron-builder 20.2.0
npm 5.6.0
node.js v8.9.1

build -mw --projectDir dist/

@cybertim
Copy link

cybertim commented Mar 5, 2018

--projectDir does not work since version 19.56.2
My work around is running the electron-builder inside the correct folder.
It is probably due to the

check on the name project that also matches with projectDir.

@stefanedberg
Copy link

To be able to run in the root my solution was this (two package-json structure):

package.json

...
"scripts": {
    "dist": "cd dist/ && build -mw"
}
...

@develar develar added the bug label Mar 6, 2018
@develar develar closed this as completed in 0fcc99c Mar 6, 2018
@tangb
Copy link
Author

tangb commented Mar 6, 2018

@develar you're the best, thank you very much for the fix 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment