Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add example CI files to the template #30

Closed
malept opened this issue Dec 17, 2016 · 10 comments
Closed

Add example CI files to the template #30

malept opened this issue Dec 17, 2016 · 10 comments

Comments

@malept
Copy link
Member

malept commented Dec 17, 2016

Add example Travis and AppVeyor CI files to the template, to make it easy for someone to automatically build (and release?) their Electron apps for all supported target platforms/arches.

@MarshallOfSound
Copy link
Member

Working CI files with publish calls for all three platforms can be found here. With a bit of clean up we can probably use these.

https://github.com/MarshallOfSound/electron-forge-demo123

@imolorhe
Copy link

@MarshallOfSound That example looks out of date. Do we still need to checkout the publish-cmd branch of the electron-forge repo?

@malept
Copy link
Member Author

malept commented Aug 13, 2017

No, it's been in released versions for a while now.

@imolorhe
Copy link

@MarshallOfSound Been struggling with making the release using travis CI with little success. Some fakeroot spawn ENOENT error keeps popping up when building for linux.

@imolorhe
Copy link

An unhandled error has occurred inside Forge:
An error occured while making for target: deb
Error executing command (spawn fakeroot ENOENT): 
fakeroot dpkg-deb --build /tmp/electron-117713-5501-1k4mcvf.1zm730udi/altair_1.4.0_amd64
Error: Error executing command (spawn fakeroot ENOENT): 
fakeroot dpkg-deb --build /tmp/electron-117713-5501-1k4mcvf.1zm730udi/altair_1.4.0_amd64
    at ChildProcess.<anonymous> (/home/travis/.nvm/versions/node/v6.11.2/lib/node_modules/electron-forge/node_modules/electron-installer-debian/src/installer.js:67:23)
    at emitTwo (events.js:106:13)
    at ChildProcess.emit (events.js:191:7)
    at maybeClose (internal/child_process.js:891:16)
    at Socket.<anonymous> (internal/child_process.js:342:11)
    at emitOne (events.js:96:13)
    at Socket.emit (events.js:188:7)
    at Pipe._handle.close [as _onclose] (net.js:497:12)

@malept
Copy link
Member Author

malept commented Aug 13, 2017

You're building a .deb file, so you need Debian packaging packages installed. See electron-installer-debian's README for details.

@imolorhe
Copy link

@MarshallOfSound Here's the .travis.yml file I am working with: https://github.com/imolorhe/altair/blob/add-compilerc.6/.travis.yml

@malept
Copy link
Member Author

malept commented Aug 13, 2017

At any rate, you will probably have better support in the community forums rather than enhancement request issues.

@imolorhe
Copy link

@malept Sorry, I wasn't seeing your comments. 😅 I specified linux as an os option in the .travis.yml file, so I assume the required packages should be available already. Also I had already checked the README of electron-installer-debian and they only specified installation instructions for Mac devices, and not linux, so I assumed that it should be available by default for linux.

@imolorhe
Copy link

@malept So installing fakeroot fixed it for me. Thanks for mentioning it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants