Vue-cli-plugin-electron-builder: How to use my own App Icon .ico

Created on 15 Sep 2018  路  6Comments  路  Source: nklayman/vue-cli-plugin-electron-builder

Is your feature request related to a problem? Please describe.
A way to provide .ico file to be used as the App Icon. Currently the App uses the default electron icon

Describe the solution you'd like
After building, The new app uses the default electron icon

Describe alternatives you've considered
I have tried to place the .ico files in different location, but the plugin failed to pick it up to be used as an App Icon

Most helpful comment

@mrin9 Just copy your icon to project root, then add vue.config.js:

module.exports = {
  pluginOptions: {
    electronBuilder: {
      builderOptions: {
        win: {
          icon: './icon.ico'
        }
      }
    }
  }
}

All 6 comments

@mrin9 Just copy your icon to project root, then add vue.config.js:

module.exports = {
  pluginOptions: {
    electronBuilder: {
      builderOptions: {
        win: {
          icon: './icon.ico'
        }
      }
    }
  }
}

thanks !!!
Are these, electron-builder configurations ?

thanks !!!
Are these, electron-builder configurations ?

yes

@mrin9 Just copy your icon to project root, then add vue.config.js:

module.exports = {
  pluginOptions: {
    electronBuilder: {
      builderOptions: {
        win: {
          icon: './icon.ico'
        }
      }
    }
  }
}

not working for me

@ibalaji777 see the icon guide (check toc for link).

Thanks @nklayman...

Was this page helpful?
0 / 5 - 0 ratings