10
11

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

TravisCI 上で Electron のアプリをビルドする

Posted at

TL;DR

  • wine を入れる
  • electron-packager を使って各OSのパッケージを作る
  • https://docs.travis-ci.com/user/deployment からパッケージをアップロードしたいものに合わせて設定を書く

今回は、タグをつけたら Github Release にリリース作って、ビルドしたアプリのファイルをアップロードする

.travis.yml
before_deploy:
  - sudo add-apt-repository ppa:ubuntu-wine/ppa -y
  - sudo apt-get update -q
  - sudo apt-get install -y wine1.7
  - npm run package
deploy:
  provider: releases
  api_key:
    secure: 'xxxxxxxxx'
  file:
    - build/Release/app-darwin-x64.zip
    - build/Release/app-win32-x64.zip
  on:
    repo: [username]/[reponame]
    tags: true
10
11
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
10
11

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?