Skip to content

Commit

Permalink
Add Travis integration for app packaging
Browse files Browse the repository at this point in the history
  • Loading branch information
staniel359 committed May 11, 2021
1 parent f4191d9 commit 7c042cd
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 7 deletions.
22 changes: 22 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
language: node_js
node_js: '15'

os: osx
osx_image: xcode10.2

env:
global:
- ELECTRON_CACHE=$HOME/.cache/electron
- ELECTRON_BUILDER_CACHE=$HOME/.cache/electron-builder

cache:
directories:
- node_modules
- $HOME/.cache/electron
- $HOME/.cache/electron-builder

script:
- yarn release

before_cache:
- rm -rf $HOME/.cache/electron-builder/wine
7 changes: 5 additions & 2 deletions electron-builder.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,13 @@
"icon": "public/icon.ico"
},
"mac": {
"category": "public.app-category.music"
"category": "public.app-category.music",
"icon": "public/icon.icns",
"target": "pkg"
},
"linux": {
"category": "Audio"
"category": "Audio",
"target": "deb"
},
"compression": "store",
"nsis": {
Expand Down
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "muffon",
"version": "0.1.0-alpha",
"private": true,
"description": "muffon",
"homepage": "https://github.com/staniel359/muffon",
"author": {
"name": "staniel359",
"email": "[email protected]",
Expand All @@ -12,13 +12,13 @@
"main": "electron.js",
"scripts": {
"start": "vite",
"build": "vite build",
"preview": "vite preview",
"lint": "eslint src/**/*.{js,vue}",
"start:electron": "cross-env NODE_ENV=development electron .",
"lint": "eslint src/**/*.{js,vue}",
"build": "vite build",
"build:electron": "electron-builder --dir",
"package:electron": "electron-builder",
"build:all": "yarn build && yarn build:electron",
"release:electron": "electron-builder -mwl -p always",
"release": "yarn build && yarn release:electron",
"postinstall": "electron-builder install-app-deps",
"postuninstall": "electron-builder install-app-deps"
},
Expand Down
Binary file added public/icon.icns
Binary file not shown.

0 comments on commit 7c042cd

Please sign in to comment.