GithubHelp home page GithubHelp logo

Can you support to add icon? about warp HOT 9 OPEN

sorainnosia avatar sorainnosia commented on May 30, 2024 9
Can you support to add icon?

from warp.

Comments (9)

AdmiringWorm avatar AdmiringWorm commented on May 30, 2024 4

If you do mean that, I think it's out of the capability of Warp, since you need a windows-x64.warp-packer.exe won't run on Unix.

True, you can't run the exe on Unix, but you can run the platform specific packer and just pass in --arch windows-x64 to create a packed windows executable. I have been using that way myself to create windows binary on linux using warp.

from warp.

VitoVan avatar VitoVan commented on May 30, 2024 3

If you do mean that, I think it's out of the capability of Warp, since you need a windows-x64.warp-packer.exe won't run on Unix.

True, you can't run the exe on Unix, but you can run the platform specific packer and just pass in --arch windows-x64 to create a packed windows executable. I have been using that way myself to create windows binary on linux using warp.

Oh, I think that's what @Ruffo324 really mean, I totally missed the point.

Like on Linux using something like --arch windows-x64 --icon iconfile.ico to create a packed Windows executable with icon.

from warp.

VitoVan avatar VitoVan commented on May 30, 2024 1

It would be great if this is supported by nature.

But, in the mean time, you can use Resource Hacker to achieve this.

http://www.angusj.com/resourcehacker/

If you prefer to automate the ICON adding process, you can also use the command line:

rh.exe -open old.exe -save new.exe -action addskip -res my.ico -mask ICONGROUP,MAINICON,

from warp.

Ruffo324 avatar Ruffo324 commented on May 30, 2024

It would be great if this is supported by nature.

But, in the mean time, you can use Resource Hacker to achieve this.

http://www.angusj.com/resourcehacker/

If you prefer to automate the ICON adding process, you can also use the command line:

rh.exe -open old.exe -save new.exe -action addskip -res my.ico -mask ICONGROUP,MAINICON,

Yea, but's thats not an option if u working on a mac or linux system. Or (in my case) builded and packed from a unix based CI.

from warp.

VitoVan avatar VitoVan commented on May 30, 2024

In my personal experience, macOS and Linux executables DO NOT have an ICON by nature.

  • On macOS, you will have icons when you get a "app", which is called "Package Bundles", it ends with .app extension, which basically a directory that contains the whole files of your application, such as executables / pictures / icons and othere resources you may need.

    You can define your icon file for macOS app like this in Info.plist file:

        <key>CFBundleIconFile</key>
        <string>iconfile</string>

    and put the iconfile.icns into you-application.app/Contents/Resources/ directory, then you'll get it.

  • On Linux, application icon is usually provide through a.desktop file, which you can read about it here.

    If you prefer to ship your application as one single file like Windows, you may be interested in AppImage which may do you a good job.

That's what in my mind, maybe it's wrong, I don't know. If you find something else, I'm glad to learn. Have fun, btw.

from warp.

VitoVan avatar VitoVan commented on May 30, 2024

It would be great if this is supported by nature.
But, in the mean time, you can use Resource Hacker to achieve this.
http://www.angusj.com/resourcehacker/
If you prefer to automate the ICON adding process, you can also use the command line:

rh.exe -open old.exe -save new.exe -action addskip -res my.ico -mask ICONGROUP,MAINICON,

Yea, but's thats not an option if u working on a mac or linux system. Or (in my case) builded and packed from a unix based CI.

Or, do you mean you wanna compile Windows binary through a Unix based CI?

If you do mean that, I think it's out of the capability of Warp, since you need a windows-x64.warp-packer.exe won't run on Unix.

from warp.

mardukbp avatar mardukbp commented on May 30, 2024

There is a go package for this: rsrc. I guess it is a good resource for learning how to implement this feature in warp.

from warp.

BrainSlugs83 avatar BrainSlugs83 commented on May 30, 2024

It would be nice if it just picked up the original app's icon by default...

from warp.

maxbrito500 avatar maxbrito500 commented on May 30, 2024

Ping. Just to bring up this feature on warp4j.

All construction is made on linux, difficult to change the icon manually. Would be great to have syntax for specifying an .ico file. Thanks.

from warp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.