Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

274
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda