[GH-ISSUE #166] Unsupported platform "windows"? #108

Closed
opened 2026-05-05 11:43:03 -06:00 by gitea-mirror · 11 comments
Owner

Originally created by @Bizarrus on GitHub (Jul 13, 2018).
Original GitHub issue: https://github.com/kusti8/proton-native/issues/166

info@DESKTOP-B1MR61C MINGW64 ~/Documents/GitHub/RIDE
$ npm run dist

> RIDE@0.0.1 dist C:\Users\info\Documents\GitHub\RIDE
> electron-builder

  • electron-builder version=20.20.4
  • loaded configuration file=package.json ("build" field)
  • description is missed in the package.json appPackageFile=C:\Users\info\Documents\GitHub\RIDE\package.json
  • author is missed in the package.json appPackageFile=C:\Users\info\Documents\GitHub\RIDE\package.json
  • packaging       platform=win32 arch=x64 proton=10.6.0 appOutDir=dist\win-unpacked
Error: Unsupported platform: windows
    at C:\Users\info\Documents\GitHub\RIDE\node_modules\electron-builder-lib\src\ProtonFramework.ts:115:10
    at Generator.next (<anonymous>)
    at deleteItem (C:\Users\info\Documents\GitHub\RIDE\node_modules\fs-extra\lib\empty\index.js:20:25)
    at fs.readdir (C:\Users\info\Documents\GitHub\RIDE\node_modules\fs-extra\lib\empty\index.js:16:5)
    at FSReqWrap.oncomplete (fs.js:145:20)
From previous event:
    at ProtonFramework.prepareApplicationStageDirectory (C:\Users\info\Documents\GitHub\RIDE\node_modules\electron-builder-lib\src\ProtonFramework.ts:117:6)
    at C:\Users\info\Documents\GitHub\RIDE\node_modules\electron-builder-lib\src\platformPackager.ts:172:21
    at Generator.next (<anonymous>)
From previous event:
    at WinPackager.doPack (C:\Users\info\Documents\GitHub\RIDE\node_modules\electron-builder-lib\src\platformPackager.ts:157:165)
    at C:\Users\info\Documents\GitHub\RIDE\node_modules\electron-builder-lib\src\platformPackager.ts:112:16
    at Generator.next (<anonymous>)
From previous event:
    at WinPackager.pack (C:\Users\info\Documents\GitHub\RIDE\node_modules\electron-builder-lib\src\platformPackager.ts:110:95)
    at C:\Users\info\Documents\GitHub\RIDE\node_modules\electron-builder-lib\src\packager.ts:369:24
    at Generator.next (<anonymous>)
    at xfs.stat (C:\Users\info\Documents\GitHub\RIDE\node_modules\fs-extra\lib\mkdirs\mkdirs.js:56:16)
    at C:\Users\info\Documents\GitHub\RIDE\node_modules\graceful-fs\polyfills.js:287:18
    at FSReqWrap.oncomplete (fs.js:159:5)
From previous event:
    at Packager.doBuild (C:\Users\info\Documents\GitHub\RIDE\node_modules\electron-builder-lib\src\packager.ts:337:39)
    at C:\Users\info\Documents\GitHub\RIDE\node_modules\electron-builder-lib\src\packager.ts:313:52
From previous event:
    at Packager._build (C:\Users\info\Documents\GitHub\RIDE\node_modules\electron-builder-lib\src\packager.ts:290:133)
    at C:\Users\info\Documents\GitHub\RIDE\node_modules\electron-builder-lib\src\packager.ts:286:23
    at Generator.next (<anonymous>)
    at runCallback (timers.js:696:18)
    at tryOnImmediate (timers.js:667:5)
    at processImmediate (timers.js:649:5)
From previous event:
    at Packager.build (C:\Users\info\Documents\GitHub\RIDE\node_modules\electron-builder-lib\src\packager.ts:243:14)
    at C:\Users\info\Documents\GitHub\RIDE\node_modules\electron-builder-lib\src\index.ts:52:40
    at Generator.next (<anonymous>)
From previous event:
    at build (C:\Users\info\Documents\GitHub\RIDE\node_modules\electron-builder-lib\out\index.js:220:17)
    at build (C:\Users\info\Documents\GitHub\RIDE\node_modules\electron-builder\src\builder.ts:224:10)
    at then (C:\Users\info\Documents\GitHub\RIDE\node_modules\electron-builder\src\cli\cli.ts:42:48)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! RIDE@0.0.1 dist: `electron-builder`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the RIDE@0.0.1 dist script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\info\AppData\Roaming\npm-cache\_logs\2018-07-13T23_07_03_783Z-debug.log

Originally created by @Bizarrus on GitHub (Jul 13, 2018). Original GitHub issue: https://github.com/kusti8/proton-native/issues/166 ``` info@DESKTOP-B1MR61C MINGW64 ~/Documents/GitHub/RIDE $ npm run dist > RIDE@0.0.1 dist C:\Users\info\Documents\GitHub\RIDE > electron-builder • electron-builder version=20.20.4 • loaded configuration file=package.json ("build" field) • description is missed in the package.json appPackageFile=C:\Users\info\Documents\GitHub\RIDE\package.json • author is missed in the package.json appPackageFile=C:\Users\info\Documents\GitHub\RIDE\package.json • packaging platform=win32 arch=x64 proton=10.6.0 appOutDir=dist\win-unpacked Error: Unsupported platform: windows at C:\Users\info\Documents\GitHub\RIDE\node_modules\electron-builder-lib\src\ProtonFramework.ts:115:10 at Generator.next (<anonymous>) at deleteItem (C:\Users\info\Documents\GitHub\RIDE\node_modules\fs-extra\lib\empty\index.js:20:25) at fs.readdir (C:\Users\info\Documents\GitHub\RIDE\node_modules\fs-extra\lib\empty\index.js:16:5) at FSReqWrap.oncomplete (fs.js:145:20) From previous event: at ProtonFramework.prepareApplicationStageDirectory (C:\Users\info\Documents\GitHub\RIDE\node_modules\electron-builder-lib\src\ProtonFramework.ts:117:6) at C:\Users\info\Documents\GitHub\RIDE\node_modules\electron-builder-lib\src\platformPackager.ts:172:21 at Generator.next (<anonymous>) From previous event: at WinPackager.doPack (C:\Users\info\Documents\GitHub\RIDE\node_modules\electron-builder-lib\src\platformPackager.ts:157:165) at C:\Users\info\Documents\GitHub\RIDE\node_modules\electron-builder-lib\src\platformPackager.ts:112:16 at Generator.next (<anonymous>) From previous event: at WinPackager.pack (C:\Users\info\Documents\GitHub\RIDE\node_modules\electron-builder-lib\src\platformPackager.ts:110:95) at C:\Users\info\Documents\GitHub\RIDE\node_modules\electron-builder-lib\src\packager.ts:369:24 at Generator.next (<anonymous>) at xfs.stat (C:\Users\info\Documents\GitHub\RIDE\node_modules\fs-extra\lib\mkdirs\mkdirs.js:56:16) at C:\Users\info\Documents\GitHub\RIDE\node_modules\graceful-fs\polyfills.js:287:18 at FSReqWrap.oncomplete (fs.js:159:5) From previous event: at Packager.doBuild (C:\Users\info\Documents\GitHub\RIDE\node_modules\electron-builder-lib\src\packager.ts:337:39) at C:\Users\info\Documents\GitHub\RIDE\node_modules\electron-builder-lib\src\packager.ts:313:52 From previous event: at Packager._build (C:\Users\info\Documents\GitHub\RIDE\node_modules\electron-builder-lib\src\packager.ts:290:133) at C:\Users\info\Documents\GitHub\RIDE\node_modules\electron-builder-lib\src\packager.ts:286:23 at Generator.next (<anonymous>) at runCallback (timers.js:696:18) at tryOnImmediate (timers.js:667:5) at processImmediate (timers.js:649:5) From previous event: at Packager.build (C:\Users\info\Documents\GitHub\RIDE\node_modules\electron-builder-lib\src\packager.ts:243:14) at C:\Users\info\Documents\GitHub\RIDE\node_modules\electron-builder-lib\src\index.ts:52:40 at Generator.next (<anonymous>) From previous event: at build (C:\Users\info\Documents\GitHub\RIDE\node_modules\electron-builder-lib\out\index.js:220:17) at build (C:\Users\info\Documents\GitHub\RIDE\node_modules\electron-builder\src\builder.ts:224:10) at then (C:\Users\info\Documents\GitHub\RIDE\node_modules\electron-builder\src\cli\cli.ts:42:48) npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! RIDE@0.0.1 dist: `electron-builder` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the RIDE@0.0.1 dist script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\info\AppData\Roaming\npm-cache\_logs\2018-07-13T23_07_03_783Z-debug.log ```
Author
Owner

@maciek134 commented on GitHub (Jul 14, 2018):

Shouldn't platform be win32 or win64 instead of windows?

<!-- gh-comment-id:405005513 --> @maciek134 commented on GitHub (Jul 14, 2018): Shouldn't platform be `win32` or `win64` instead of `windows`?
Author
Owner

@mischnic commented on GitHub (Jul 14, 2018):

No, electron-packager electron-builder doesn't support Windows for proton-native (yet - @develar ?)

<!-- gh-comment-id:405006416 --> @mischnic commented on GitHub (Jul 14, 2018): No, ~electron-packager~ [electron-builder](https://github.com/electron-userland/electron-builder) doesn't support Windows for proton-native (yet - @develar ?)
Author
Owner

@develar commented on GitHub (Jul 14, 2018):

Ok, I guess it is a first user report and I need definitely finish support Windows.

<!-- gh-comment-id:405006643 --> @develar commented on GitHub (Jul 14, 2018): Ok, I guess it is a first user report and I need definitely finish support Windows.
Author
Owner

@nicostuhlfauth commented on GitHub (Aug 2, 2018):

Same problem here. @develar Is there any workaround? Otherwise, how long will it take to get it running?

<!-- gh-comment-id:409880332 --> @nicostuhlfauth commented on GitHub (Aug 2, 2018): Same problem here. @develar Is there any workaround? Otherwise, how long will it take to get it running?
Author
Owner

@mischnic commented on GitHub (Aug 2, 2018):

@nicostuhlfauth You could try using launchui-packager.
I've set up an example repo for proton-native: https://github.com/mischnic/proton-launchui

<!-- gh-comment-id:409987096 --> @mischnic commented on GitHub (Aug 2, 2018): @nicostuhlfauth You could try using [launchui-packager](https://github.com/mimecorg/launchui-packager). I've set up an example repo for proton-native: https://github.com/mischnic/proton-launchui
Author
Owner

@nicostuhlfauth commented on GitHub (Aug 3, 2018):

@mischnic Doesn't work for me with create-proton-app. Even the blank project throws a "Module did not self-register" error. Any idea?

<!-- gh-comment-id:410159245 --> @nicostuhlfauth commented on GitHub (Aug 3, 2018): @mischnic Doesn't work for me with `create-proton-app`. Even the blank project throws a "Module did not self-register" error. Any idea?
Author
Owner

@mischnic commented on GitHub (Aug 3, 2018):

Doesn't work for me with create-proton-app. Even the blank project throws a "Module did not self-register" error.

What do you mean by that? Please try cloning proton-launchui, copying your source files into the src folder and running npm run package.

<!-- gh-comment-id:410170433 --> @mischnic commented on GitHub (Aug 3, 2018): > Doesn't work for me with create-proton-app. Even the blank project throws a "Module did not self-register" error. What do you mean by that? Please try cloning proton-launchui, copying your source files into the src folder and running `npm run package`.
Author
Owner

@nicostuhlfauth commented on GitHub (Aug 3, 2018):

Ah ok I got it running. Switched from the default build script that create-proton-app created to webpack with babel-loader. Thanks @mischnic 😄

<!-- gh-comment-id:410177878 --> @nicostuhlfauth commented on GitHub (Aug 3, 2018): Ah ok I got it running. Switched from the default build script that `create-proton-app` created to webpack with babel-loader. Thanks @mischnic 😄
Author
Owner

@ateshuseyin commented on GitHub (Sep 28, 2018):

windows 10
node: v8.12.0
npm: 6.4.1

the same problem :(

<!-- gh-comment-id:425430485 --> @ateshuseyin commented on GitHub (Sep 28, 2018): windows 10 node: v8.12.0 npm: 6.4.1 the same problem :(
Author
Owner

@icyJoseph commented on GitHub (Oct 13, 2018):

I guess the windows support is not out yet? I am also getting the
Error: Unsupported platform: windows,
error, when running yarn dist.

<!-- gh-comment-id:429515148 --> @icyJoseph commented on GitHub (Oct 13, 2018): I guess the windows support is not out yet? I am also getting the `Error: Unsupported platform: windows`, error, when running `yarn dist`.
Author
Owner

@mischnic commented on GitHub (Dec 9, 2018):

Windows is now supported by electron-builder!

<!-- gh-comment-id:445572271 --> @mischnic commented on GitHub (Dec 9, 2018): Windows is now supported by electron-builder!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/proton-native#108
No description provided.