atom-custom-app-icon icon indicating copy to clipboard operation
atom-custom-app-icon copied to clipboard

Could not install plugin on Windows7 x64 (EBADPLATFORM)

Open radiocity opened this issue 7 years ago • 5 comments

Installation fails with on Win7x64(SP1):

npm ERR! Windows_NT 6.1.7601 npm ERR! argv "C:\Users\Home\AppData\Local\atom\app-1.8.0\resources\app\apm\bin\node.exe" "C:\Users\Home\AppData\Local\atom\app-1.8.0\resources\app\apm\node_modules\npm\bin\npm-cli.js" "--globalconfig" "C:\Users\Home.atom.apm.apmrc" "--userconfig" "C:\Users\Home.atom.apmrc" "install" "C:\Users\Home\AppData\Local\Temp\d-116519-4932-1dxvcl9\package.tgz" "--target=0.36.8" "--arch=ia32" npm ERR! node v0.10.40 npm ERR! npm v2.13.3 npm ERR! code EBADPLATFORM

npm ERR! notsup Unsupported npm ERR! notsup Not compatible with your operating system or architecture: [email protected] npm ERR! notsup Valid OS: darwin npm ERR! notsup Valid Arch: any npm ERR! notsup Actual OS: win32 npm ERR! notsup Actual Arch: ia32

radiocity avatar Jun 19 '16 06:06 radiocity

@radiocity From the README:

NOTE that this package is mac only for now; you couldn't pay me enough to use Windows… but pull requests are welcome.

PRs welcome from Windows users 😉

danielbayley avatar Jun 19 '16 18:06 danielbayley

It's a pity.

How to change atom`s icon for Windows platform

No any warranties provided. You follow next instruction on your own risks. It can cause application damage or data loss.

  1. Create or download single icon file with several demensions (16x16, 24x24, 32x32, 64x64)
  2. Replace it with C:\Users\<user name>\AppData\Local\atom\app.ico
  3. Download and run Resource Hacker
  4. Open C:\Users\<user name>\AppData\Local\atom\app-1.8.0\atom.exe with Resource Hacker
  5. Select Icon Group/1. Now you should see icon preview image
  6. Press CTRL+R. "Replace icon in" window will appear.
  7. Press "Open file with new icon" and locate icon you`ve create or download image
  8. Press Replace button. Window should close.
  9. Press CTRL+S in main Resource Hacker window. Executable should be saved anb backup silently created
  10. Restart the operating system in order to reset the system cache. image

radiocity avatar Jun 20 '16 08:06 radiocity

Seems like a lot of manual steps and a system restart! There must be a better way? Even on Windows! 😷

danielbayley avatar Jun 20 '16 08:06 danielbayley

May be a registry magic. Dont know, newbee with Atom.

radiocity avatar Jun 20 '16 11:06 radiocity

Well if you figure out a way that can be automated and incorporated into this package, then let me know or maybe do a PR. I don't have (or want) a copy of Windows to go hacking around myself… and with a different icon format (.ico) too!

danielbayley avatar Jun 20 '16 14:06 danielbayley