Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

237
Vistas
Electronforge build app for other platform

I'm currently building a cross platform app with electron(-forge) for mac, linux and windows. I'm on mac and with npm run make the app gets packaged and built for mac.

Is there any way (flag in build command or something) to build the app on mac for linux and windows as well?

Thank you in advance for any help!

over 4 years ago · Santiago Trujillo
1 Respuestas
Responde la pregunta

0

Yes, it is possible as indicated in the Electron forge makers documentation:

  • Squirrel.windows You can only build the Squirrel.Windows target on a Windows machine or on a macOS /Linux machine with mono and wine installed
  • Deb (linux) You can only build the deb target on Linux or macOS machines with the fakeroot and dpkg packages installed.
  makers: [
    {
      name: '@electron-forge/maker-dmg',
      config: {
        icon: `${iconPath}.icns`,
      },
    },
    {
      name: '@electron-forge/maker-squirrel',
      config: {
        authors: 'YOU',
        iconUrl: 'https://your_site/favicon.ico',
        exe: `${BUILD_NAME}.exe`,
        name: BUILD_NAME,
      },
    },
    {
      name: '@electron-forge/maker-deb',
      config: {
        options: {
          bin: BUILD_NAME,
          maintainer: 'YOU',
          homepage: 'https://you home page',
        },
      },
    },
  ],

Personally, I run the build in a Gitlab CI.

This allows the Windows shared runners use rather than a docker (linux) image with Mono because that was causing me some problems on Windows execution.

For the mac part I register a gitlab runner on my machine before launching the publish phase on gitlab.

I think you can achieve the same result very quickly with Travis who already has mac and windows runners available.

I hope I helped you. Good luck

over 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda