question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

build with platform and arch arguments doesn't build package

See original GitHub issue

electron-builder versions: at least 3.0.1 and 2.10.1.

windows 7 x64
npm v 2.14.20
node v 4.4.0

two package.json layout, outer package.json:

{
  "license": "proprietary",
  "private": true,
  "build": {
    "win": {
      "extraResources": [
        "./*.dll",
        "printsupport",
        "platforms"
      ],
      "noMsi": true,
      "app-bundle-id": "ru.orbilet.orbiletClient",
      "app-category-type": "public.app-category.business",
      "iconUrl": "http://rghost.net/download/private/8MZF2wPky/4b51dc91c2b4c7d0a27417e384c26080/60f3daf2eb6a28a2c3402ab4ad0f98346bf61660/60f3daf2eb6a28a2c3402ab4ad0f98346bf61660/OrbiletClient.ico"      
    }
  },
  "scripts": {
    "postinstall": "install-app-deps",
    "start": "./node_modules/.bin/electron app",
    "dist": "./node_modules/.bin/build",
    "dist:win": "./node_modules/.bin/build --platform win32",
    "dist:x64": "./node_modules/.bin/build --arch x64",
    "dist:win64": "./node_modules/.bin/build --platform win32 --arch x64"
  },
  "devDependencies": {
    "babel-cli": "^6.6.4",
    "babel-core": "^6.6.4",
    "babel-preset-es2015": "^6.6.0",
    "babel-preset-react": "^6.5.0",
    "babel-preset-stage-0": "^6.5.0",
    "babelify": "^7.2.0",
    "browserify": "^12.0.1",
    "electron-builder": "^3.0.1",
    "electron-prebuilt": "^0.36.0",
    "gulp": "^3.9.1",
    "gulp-babel": "^6.1.2",
    "gulp-concat": "^2.6.0",
    "gulp-notify": "^2.2.0",
    "gulp-sourcemaps": "^1.6.0",
    "gulp-util": "^3.0.7",
    "vinyl-source-stream": "^1.1.0",
    "watchify": "^3.6.1",
    "winreg": "0.0.13"
  }
}

npm run dist builds ./dist/MyApp-win32-ia32, ./dist/MyApp-win32-x64 with unpackaged version and ./dist/win, ./dist/win-x64 with packaged.

npm run dist:win64 ("build --platform win32 --arch x64") builds directory ./dist/MyApp-win32-x64 only, where non-packaged app is located.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

4reactions
develarcommented, Mar 25, 2016

It is not a bug. If script is not named as dist, --dist flag is not implied, and, so, you must pass it explicitly. Well, I will improve lifecycle event support — prefix dist: will be also as marker to package in a distributable format.

2reactions
develarcommented, Mar 25, 2016

Well, yes, it seems it is a bug. Will be investigated and fixed.

I agree

Ok, so, it will be implemented. win 32/linux 32 in any case doesn’t make any sense in most cases.

Read more comments on GitHub >

github_iconTop Results From Across the Web

makepkg(8) - Arch Linux
Description. makepkg is a script to automate the building of packages. The requirements for using the script are a build-capable *nix platform ......
Read more >
dotnet build command - .NET CLI | Microsoft Learn
Arguments. The project or solution file to build. If a project or solution file isn't specified, MSBuild searches the current working directory ...
Read more >
How To Build Go Executables for Multiple Platforms on ...
The script will take the package import path as an argument, iterate through a predefined list of operating system and platform pairs, and ......
Read more >
Multi-arch build and images, the simple way | Docker
This includes references to each of its layers, their corresponding sizes, the hash of the image, its size and also the platform it's...
Read more >
Common Configuration - electron-builder
in the package.json file of your project using the build key on the top level: ... Additional command line arguments to use when...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found