https://github.com/atnartur/electron-build-image
Image for building crossplatform (win, ios, linux) apps on Linux CI
https://github.com/atnartur/electron-build-image
build docker electron gitlab-ci gulp
Last synced: about 2 months ago
JSON representation
Image for building crossplatform (win, ios, linux) apps on Linux CI
- Host: GitHub
- URL: https://github.com/atnartur/electron-build-image
- Owner: atnartur
- Created: 2017-07-16T08:20:58.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-07-16T08:28:56.000Z (almost 9 years ago)
- Last Synced: 2025-02-02T00:45:23.281Z (over 1 year ago)
- Topics: build, docker, electron, gitlab-ci, gulp
- Homepage: https://hub.docker.com/r/atnartur/electron-build
- Size: 1000 Bytes
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# electron build image
Image for building crossplatform (win, ios, linux) apps on Linux CI
## Usage (Gitlab CI example)
### .gitlab.ci.yml
```yml
image: atnartur/electron-build:latest
stages:
- build
build:
stage: build
script:
- npm i
- gulp build
```
### gulpfile.js
```js
const gulp = require('gulp');
const packager = require('electron-packager');
const gutil = require('gulp-util');
const packageJson = require('package.json');
gulp.task('build', (done) => {
packager({
arch: 'all', // Allowed values: ia32, x64, all
dir: './cache/app',
platform: 'all', // Allowed values: linux, win32, darwin, all
appVersion: packageJson.version,
cache: './cache',
name: packageJson.name,
out: './build',
electronVersion: '1.6.2',
overwrite: true
}, function (err, appPath) {
if(err)
throw err;
gutil.log(appPath);
done();
});
});
```
### npm
`npm i gulp gulp-util electron-packager --save-dev`