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.

The input package file targets no platform and cannot be transformed into a release package

See original GitHub issue

When building an installer on Debian stable (Debian GNU/Linux 8.3) I get the following error:

No dice: Failed with exit code: 255
Output:
System.InvalidOperationException: The input package file /mnt/data1/devel/electron-quick-start/installer/electron-quick-start.1.0.0.nupkg targets no platform and cannot be transformed into a release package.
  at Squirrel.ReleasePackage.CreateReleasePackage (System.String outputFile, System.String packagesRootDir, System.Func`2 releaseNotesProcessor, System.Action`1 contentsPostProcessHook) [0x00000] in <filename unknown>:0 
  at Squirrel.Update.Program.Releasify (System.String package, System.String targetDir, System.String packagesDir, System.String bootstrapperExe, System.String backgroundGif, System.String signingOpts, System.String baseUrl, System.String setupIcon, Boolean generateMsi) [0x00000] in <filename unknown>:0 
  at Squirrel.Update.Program.executeCommandLine (System.String[] args) [0x00000] in <filename unknown>:0 
  at Squirrel.Update.Program.main (System.String[] args) [0x00000] in <filename unknown>:0 

How to reproduce:

git clone https://github.com/electron/electron-quick-start.git
cd electron-quick-start
npm install --save-dev electron-winstaller
electron-packager . electron-quick-start --platform win32 --arch x64 --out dist --version 0.37.4 --overwrite
node electron-winstaller.js

electron-winstaller.js:

var electronInstaller = require('electron-winstaller');

resultPromise = electronInstaller.createWindowsInstaller({
  appDirectory: 'dist/electron-quick-start-win32-x64',
  outputDirectory: 'installer',
  authors: '',
  exe: 'electron-quick-start.exe'
});

resultPromise.then(() => console.log("It worked!"), (e) => console.log(`No dice: ${e.message}`));

electron-packager is in version 6.0.0. mono and wine are both installed on the system, but I am not sure if some other packages are required as well:

mono-runtime          3.2.8+dfsg-10
mono-devel            3.2.8+dfsg-10
mono-4.0-gac          3.2.8+dfsg-10
mono-utils            3.2.8+dfsg-10
wine                  1.6.2-20
wine32                1.6.2-20
wine32-dev-tools      1.6.2-20
wine32-development    1.7.29-4
wine32-tools          1.6.2-20

uname -a:

Linux localhost 4.3.0-0.bpo.1-amd64 #1 SMP Debian 4.3.5-1~bpo8+1 (2016-02-23) x86_64 GNU/Linux

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:7

github_iconTop GitHub Comments

4reactions
SWorthamcommented, Oct 18, 2016

I’m getting the same error when running on a Mac, “The input package file /mnt/data1/devel/electron-quick-start/installer/electron-quick-start.1.0.0.nupkg targets no platform and cannot be transformed into a release package.” But we’re on mono 4.6.0.

0reactions
weverb2commented, May 1, 2018

Getting this error on OSX with Mono version 5.4.1.6.

Read more comments on GitHub >

github_iconTop Results From Across the Web

squirrel.windows 1.7.8-1.9.0 Cannot produce Setup.exe and ...
So i feel like its starting to transoform the package into a squirrel versioned one, but its stopping after the powershell command exits....
Read more >
Package Deployer tool - Power Platform | Microsoft Learn
Learn about migrating configuration data, solutions, and more from one environment to another.
Read more >
Creating custom packages - Unity - Manual
Promotes Unity as an extendable and open platform. You can use the Package Manager to define project dependencies, resolve package dependencies, download ...
Read more >
Any Windows Target - electron-builder
AppX package can be built only on Windows 10. To use Squirrel.Windows please install electron-builder-squirrel-windows dependency. icon = build/icon ...
Read more >
"Build input file cannot be found" | Apple Developer Forums
I had this problem too. Basically, go to the main project at the top of the Project Navigator, select on the Target in...
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